Module:Sidebar/styles.css: Difference between revisions

Line 167: Line 167:
/* Fixes: T367463 */
/* Fixes: T367463 */
body.skin--responsive .sidebar a > img {
body.skin--responsive .sidebar a > img {
    max-width: none !important;
max-width: none !important;
}
}


/* Disable backgrounds via style attribute in night mode Eg.https://phabricator.wikimedia.org/F55243859 / https://en.wikipedia.org/w/index.php?title=Laissez-faire */
/* Disable backgrounds via style attribute in night mode Eg.https://phabricator.wikimedia.org/F55243859
@media screen {
* https://en.wikipedia.org/w/index.php?title=Laissez-faire
  html.skin-theme-clientpref-night .sidebar:not( .notheme ) .sidebar-list-title,
* Less the usual @media screen because of @media print below
  html.skin-theme-clientpref-night .sidebar:not( .notheme ) .sidebar-title-with-pretitle {
*/
    background: transparent !important;
html.skin-theme-clientpref-night .sidebar:not( .notheme ) .sidebar-list-title,
  }
html.skin-theme-clientpref-night .sidebar:not( .notheme ) .sidebar-title-with-pretitle {
background: transparent !important;
}
 
html.skin-theme-clientpref-night .sidebar .sidebar-title-with-pretitle a {
color: var( --color-progressive ) !important;
}


  html.skin-theme-clientpref-night .sidebar .sidebar-title-with-pretitle a {
@media (prefers-color-scheme: dark) {
    color: var( --color-progressive ) !important;
/* automatic mode */
  }
html.skin-theme-clientpref-os .sidebar:not( .notheme ) .sidebar-list-title,
html.skin-theme-clientpref-os .sidebar:not( .notheme ) .sidebar-title-with-pretitle {
background: transparent !important;
}
html.skin-theme-clientpref-os .sidebar .sidebar-title-with-pretitle a {
color: var( --color-progressive ) !important;
}
}
}
@media screen and (prefers-color-scheme: dark) {
 
    /* automatic mode */
@media print {
    html.skin-theme-clientpref-os .sidebar:not( .notheme ) .sidebar-list-title,
/* high specificity because Minerva */
    html.skin-theme-clientpref-os .sidebar:not( .notheme ) .sidebar-title-with-pretitle {
body.mediawiki.ns-0 .sidebar {
      background: transparent !important;
display: none !important;
    }
}
    html.skin-theme-clientpref-os .sidebar .sidebar-title-with-pretitle a {
      color: var( --color-progressive ) !important;
    }
}
}