/* * Stork dark-mode extras for Attila. * * The colours themselves come from the theme variables used in style.css * (--color-background-main, --color-content-lead, ...), which already switch * between light and dark. So the original Stork dark variables and the * @import are removed here; they would only fight with the theme. * * This file only adds dark-specific details: stronger shadows, a more visible * match highlight, and the focus ring. It follows the same switch as the * theme: the OS setting, or the .theme-dark / .theme-light class on . */ /* OS is dark, and the user has not forced the light theme */ @media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .stork-wrapper input.stork-input:focus { box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.28) } html:not(.theme-light) .stork-wrapper .stork-result:hover, html:not(.theme-light) .stork-wrapper .stork-result.selected { box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.7) } html:not(.theme-light) .stork-wrapper .stork-highlight, html:not(.theme-light) .stork-wrapper mark.stork-highlight { color: #93c5fd; background: rgba(96, 165, 250, 0.2) } html:not(.theme-light) .stork-wrapper .stork-result:hover .stork-title, html:not(.theme-light) .stork-wrapper .stork-result.selected .stork-title { color: #93c5fd } } /* User forced the dark theme with the theme switch */ html.theme-dark .stork-wrapper input.stork-input:focus { box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.28) } html.theme-dark .stork-wrapper .stork-result:hover, html.theme-dark .stork-wrapper .stork-result.selected { box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.7) } html.theme-dark .stork-wrapper .stork-highlight, html.theme-dark .stork-wrapper mark.stork-highlight { color: #93c5fd; background: rgba(96, 165, 250, 0.2) } html.theme-dark .stork-wrapper .stork-result:hover .stork-title, html.theme-dark .stork-wrapper .stork-result.selected .stork-title { color: #93c5fd }