Kontent qismiga oʻtish

Andoza:Thermodynamics sidebar/styles.css

ZiyoSfera, erkin ensiklopediya
/* ==========================================================================
   1. Universal configurations (applies to both light and dark modes)
   ========================================================================== */
.ts .sidebar-title {
    padding-bottom: 0.3em;
    border-bottom: 1px solid #aaa;
}

.ts .sidebar-image {
    display: block;
    margin: 0.3em 0 0.4em;
}

.ts-l4 {
    margin-top: 0.4em;
}

.ts-l4 .sidebar-content {
    padding-bottom: 0.7em;
}

.ts-l4-3 {
    padding-bottom: 0.4em;
}


/* ==========================================================================
   2.1 Light mode rules (Scenario: Operating system in light mode)
   ========================================================================== */
@media screen and (prefers-color-scheme: light) {
    /* Applies the sub-sidebar background only if Wikipedia is NOT forced into night mode */
    html:not(.skin-theme-clientpref-night) .ts-l .sidebar-heading {
        background: #eaeaff !important;
        font-style: italic;
        color: #202122 !important; /* Ensures readable dark text over the light background */
    }

    /* Main sidebar (prevents the blueish background of the list title from breaking) */
    html:not(.skin-theme-clientpref-night) .ts .sidebar-list-title {
        background: #ddf !important;
        color: #202122 !important;
    }
}


/* ==========================================================================
   2.2 Light mode rules (Scenario: Operating system in dark mode)
   ========================================================================== */
@media screen and (prefers-color-scheme: dark) {
    /* Applies background if the user manually selected light mode on Wikipedia,
       or if the site preference is NOT set to "os" (which follows dark OS) and NOT set to "night" */
    html.skin-theme-clientpref-light .ts-l .sidebar-heading,
    html:not(.skin-theme-clientpref-os):not(.skin-theme-clientpref-night) .ts-l .sidebar-heading {
        background: #eaeaff !important;
        font-style: italic;
        color: #202122 !important;
    }

    /* Main sidebar */
    html.skin-theme-clientpref-light .ts .sidebar-list-title,
    html:not(.skin-theme-clientpref-os):not(.skin-theme-clientpref-night) .ts .sidebar-list-title {
        background: #ddf !important;
        color: #202122 !important;
    }
}