/* Calendar Viewer - styles.css */ /* ── Split pane layout ── */ .cal-view-root { display: flex; flex-direction: column; height: 100%; overflow: hidden; } .cal-pane-top { flex: 1 1 50%; min-height: 0; overflow-y: auto; position: relative; border-bottom: 1px solid var(--background-modifier-border); } .cal-pane-bottom { flex: 1 1 50%; min-height: 0; position: relative; } /* ── Calendar container ── */ .cal-container { padding: 8px; font-family: var(--font-interface); position: relative; } /* ── Header ── */ .cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0 4px; } .cal-nav-btn { background: none; border: 1px solid var(--background-modifier-border); border-radius: 4px; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 8px; color: var(--text-normal); } .cal-nav-btn:hover { background: var(--background-modifier-hover); } .cal-month-label { font-weight: 600; font-size: 14px; color: var(--text-normal); } /* ── Day-of-week row ── */ .cal-dow-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; margin-bottom: 2px; } .cal-dow-cell { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 2px 0; } /* ── Grid ── */ .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; } .cal-cell { min-height: 48px; border: 1px solid var(--background-modifier-border); border-radius: 3px; padding: 2px; display: flex; flex-direction: column; overflow: hidden; } .cal-cell-empty { border-color: transparent; } .cal-day-number { font-size: 11px; color: var(--text-muted); text-align: right; padding: 1px 3px 0 0; line-height: 1.2; } .cal-cell-today { background: var(--background-modifier-hover); } .cal-cell-today .cal-day-number { color: var(--text-accent); font-weight: 700; } .cal-cell-has-events { background: var(--background-primary); } /* ── Event chips ── */ .cal-cell-events { display: flex; flex-direction: column; gap: 1px; margin-top: 1px; overflow: hidden; } .cal-event-chip { font-size: 10px; line-height: 1.3; padding: 1px 3px; border-radius: 2px; background: var(--interactive-accent); color: var(--text-on-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; } .cal-event-chip:hover { opacity: 0.85; } .cal-event-sold-out { background: var(--text-muted); opacity: 0.6; } .cal-event-selected { outline: 2px solid var(--text-accent); outline-offset: 1px; opacity: 1 !important; } /* ── Popover ── */ .cal-popover { position: absolute; z-index: 100; background: var(--background-primary); border: 1px solid var(--background-modifier-border); border-radius: 6px; padding: 10px 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); max-width: 260px; font-size: 12px; line-height: 1.5; } .cal-popover-title { font-weight: 600; font-size: 13px; color: var(--text-normal); margin-bottom: 4px; } .cal-popover-title a { color: var(--text-accent); text-decoration: none; } .cal-popover-title a:hover { text-decoration: underline; } .cal-sold-out { color: var(--text-muted); font-weight: 400; font-size: 11px; } .cal-popover-date { color: var(--text-muted); margin-bottom: 4px; } .cal-popover-venue { color: var(--text-normal); margin-bottom: 4px; } .cal-popover-venue a { color: var(--text-accent); text-decoration: none; } .cal-popover-venue a:hover { text-decoration: underline; } .cal-popover-notes { color: var(--text-faint); font-style: italic; margin-top: 4px; } /* ── Map ── */ .cal-map { width: 100%; height: 100%; } /* SVG teardrop pin markers */ .cal-pin-icon { background: none !important; border: none !important; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); } /* Override Leaflet popup styles to match Obsidian theme */ .cal-map-popup .leaflet-popup-content-wrapper { background: var(--background-primary); color: var(--text-normal); border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); font-family: var(--font-interface); font-size: 12px; } .cal-map-popup .leaflet-popup-tip { background: var(--background-primary); } .cal-map-popup .leaflet-popup-content { margin: 8px 12px; line-height: 1.5; } .cal-popup-event { margin-bottom: 6px; } .cal-popup-event:last-child { margin-bottom: 0; } .cal-popup-event a { color: var(--text-accent); text-decoration: none; } .cal-popup-event a:hover { text-decoration: underline; } .cal-popup-venue { color: var(--text-muted); font-size: 11px; } /* Highlight ring around selected marker */ .cal-marker-highlight { animation: cal-pulse 1.5s ease-out; } @keyframes cal-pulse { 0% { stroke-opacity: 0.8; fill-opacity: 0.3; } 100% { stroke-opacity: 0.3; fill-opacity: 0.1; } } /* Leaflet zoom/attribution tweaks for sidebar */ .cal-pane-bottom .leaflet-control-zoom { margin-top: 6px; margin-right: 6px; } .cal-pane-bottom .leaflet-control-attribution { font-size: 9px; background: var(--background-primary-alt) !important; color: var(--text-faint); } .cal-pane-bottom .leaflet-control-attribution a { color: var(--text-muted); } /* Fix Leaflet container background for dark themes */ .cal-pane-bottom .leaflet-container { background: var(--background-primary-alt); }