Jump to content

MediaWiki:Vector-2022.css: Difference between revisions

From Red Letter Media Wiki
No edit summary
No edit summary
Tags: Mobile edit Mobile web edit
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
.vector-feature-zebra-design-disabled body {
/* Must be good in both dark and light mode. */
     background-color: #321616; /* @background-color-interactive-subtle */
 
}
body
{
     /*background: #222;
    color: white;
 
    --background-color-base: #222;
 
    --primary: white; */


.vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu {
    --link: #FF2020;
     background-color: #242424; /* @background-color-base */
    --link-new: #A00000;
    --link--visited: #FF6A6A;
    --link-new--visited: #A06060;
     --heading: #CCC;
}
}


h1, h2, h3, h4, h5, h6 {
a { color: var(--link); }
    color: #DDD; /* @color-base */
a:visited { color: var(--link--visited); }
}
a.new { color: var(--link-new); }
a.new:visited { color: var(--link-new--visited); }


.catlinks, figure[typeof~='mw:File/Thumb'], figure[typeof~='mw:File/Frame'], figure[typeof~='mw:File/Thumb'] > figcaption, figure[typeof~='mw:File/Frame'] > figcaption {
.vector-toc .vector-toc-list-item-active > .vector-toc-link,
     background: #161616;
.vector-toc .vector-toc-level-1-active:not(.vector-toc-list-item-expanded) > .vector-toc-link,
.vector-toc .vector-toc-list-item-active.vector-toc-level-1-active > .vector-toc-link
{
     font-weight: bold;
}
}


figure[typeof~='mw:File/Thumb'] > figcaption, figure[typeof~='mw:File/Frame'] > figcaption, figure[typeof~='mw:File/Thumb'], figure[typeof~='mw:File/Frame'], figure[typeof~='mw:File/Thumb'] > :not(figcaption) .mw-file-element, figure[typeof~='mw:File/Frame'] > :not(figcaption) .mw-file-element, .catlinks {
.vector-pinnable-element .mw-list-item a,
     border-color: #080808;
.vector-dropdown-content .mw-list-item a,
.vector-pinnable-element .mw-list-item a:not(.mw-selflink):visited,
.vector-dropdown-content .mw-list-item a:not(.mw-selflink):visited,
.vector-toc .vector-toc-link,
.vector-menu-tabs .mw-list-item a,
#pt-userpage-2 a:not(.mw-selflink),
.mw-parser-output a.extiw,
.mw-parser-output a.external
{
     color: var(--link)
}
}


.wikitable {
/* links with higher specificity */
   background: #242424;
.vector-menu-tabs .mw-list-item a {
   color: var(--link) !important;
}
}
.wikitable > tr > th, .wikitable > * > tr > th {
.vector-menu-tabs .mw-list-item a:visited {
    background-color: #331616;
  color: var(--link--visited) !important; /* complain where god can hear you, not here */
}
}


.wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td {
/*
  border-color: #494949;
.vector-pinnable-element .vector-menu-heading {
    color: var(--heading);
}
}


.mw-parser-output div.documentation, .mw-parser-output div.documentation-metadata {
.mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend {
     /* Over-qualifying this selector makes it take precedence */
     background-color: var(--background-color-base);
    background-color: #03130a;
} */
 
/* override: our wordmark is designed for dark mode */
 
html header.mw-header a.mw-logo span.mw-logo-container,
html header.mw-header a.mw-logo img.mw-logo-icon {
  color-scheme: dark;
  filter: none;
}
}


label.cdx-button:enabled, label.cdx-button.cdx-button--fake-button--enabled {
html.skin-theme-clientpref-day header.mw-header a.mw-logo span.mw-logo-container,
    color: #DDD;
html.skin-theme-clientpref-day header.mw-header a.mw-logo img.mw-logo-icon {
  filter: invert(1) hue-rotate(180deg) saturate(10) brightness(0.7);
}
}
.mw-parser-output a.extiw:visited, .mw-parser-output a.external:visited {
 
     color:#ff6464;
@media screen and (prefers-color-scheme: light) {
  html header.mw-header a.mw-logo span.mw-logo-container,
  html header.mw-header a.mw-logo img.mw-logo-icon {
     filter: invert(1) hue-rotate(180deg) saturate(10) brightness(0.7);
  }
}
}
.oo-ui-window-frame {
 
    color: #101010;
/* dumb hack to make our wordmark appear at different browser sizes */
 
.mw-logo-container { display: block; }
.mw-logo-icon { display: none; }
 
@media screen and (max-width:720px) {
  .mw-logo-container { display: none; }
  .mw-logo-icon { display: block; }
}
}


@media (max-width: 720px) {
@media screen and (max-width: calc(639px)) {
    .mw-logo .mw-logo-container {
  .vector-header {
        display: none;
     flex-flow: row; /* fuck off and stay a row forever asshole */
    }
  }
     .mw-logo .mw-logo-icon {
        display: block;
    }
}
@media (min-width: 720px) {
    .mw-logo .mw-logo-icon {
        display: none;
    }
}
}


@media screen and (min-width: 1000px) {
.cdx-text-input { min-width: auto; } /* WHY IS THIS EVEN SET? WHO KLUDGED TOGETHER THIS AWFUL SKIN */
    .mw-logo .mw-logo-container {
 
        display: none;
@media all {
    }
  .mw-logo {
    .mw-logo .mw-logo-icon {
     min-width: auto; /* fixes width being too big on mobile */
        display: block;
  }
        width: 100%;
        object-fit: cover;
        overflow: visible;
        object-position: top;
     }
    .vector-main-menu-container {
        padding-top: 124px;
    }
}
}

Latest revision as of 15:29, 16 June 2025

/* Must be good in both dark and light mode. */

body
{
    /*background: #222;
    color: white;

    --background-color-base: #222;

    --primary: white; */

    --link: #FF2020;
    --link-new: #A00000;
    --link--visited: #FF6A6A;
    --link-new--visited: #A06060;
    --heading: #CCC;
}

a { color: var(--link); }
a:visited { color: var(--link--visited); }
a.new { color: var(--link-new); }
a.new:visited { color: var(--link-new--visited); }

.vector-toc .vector-toc-list-item-active > .vector-toc-link,
.vector-toc .vector-toc-level-1-active:not(.vector-toc-list-item-expanded) > .vector-toc-link,
.vector-toc .vector-toc-list-item-active.vector-toc-level-1-active > .vector-toc-link
{
    font-weight: bold;
}

.vector-pinnable-element .mw-list-item a,
.vector-dropdown-content .mw-list-item a,
.vector-pinnable-element .mw-list-item a:not(.mw-selflink):visited,
.vector-dropdown-content .mw-list-item a:not(.mw-selflink):visited,
.vector-toc .vector-toc-link,
.vector-menu-tabs .mw-list-item a,
#pt-userpage-2 a:not(.mw-selflink),
.mw-parser-output a.extiw,
.mw-parser-output a.external
{
    color: var(--link)
}

/* links with higher specificity */
.vector-menu-tabs .mw-list-item a {
  color: var(--link) !important;
}
.vector-menu-tabs .mw-list-item a:visited {
  color: var(--link--visited) !important; /* complain where god can hear you, not here */
}

/*
.vector-pinnable-element .vector-menu-heading {
    color: var(--heading);
}

.mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend {
    background-color: var(--background-color-base);
} */

/* override: our wordmark is designed for dark mode */

html header.mw-header a.mw-logo span.mw-logo-container,
html header.mw-header a.mw-logo img.mw-logo-icon {
  color-scheme: dark;
  filter: none;
}

html.skin-theme-clientpref-day header.mw-header a.mw-logo span.mw-logo-container,
html.skin-theme-clientpref-day header.mw-header a.mw-logo img.mw-logo-icon {
  filter: invert(1) hue-rotate(180deg) saturate(10) brightness(0.7);
}

@media screen and (prefers-color-scheme: light) {
  html header.mw-header a.mw-logo span.mw-logo-container,
  html header.mw-header a.mw-logo img.mw-logo-icon {
    filter: invert(1) hue-rotate(180deg) saturate(10) brightness(0.7);
  }
}

/* dumb hack to make our wordmark appear at different browser sizes */

.mw-logo-container { display: block; }
.mw-logo-icon { display: none; }

@media screen and (max-width:720px) {
  .mw-logo-container { display: none; }
  .mw-logo-icon { display: block; }
}

@media screen and (max-width: calc(639px)) {
  .vector-header {
    flex-flow: row; /* fuck off and stay a row forever asshole */
  }
}

.cdx-text-input { min-width: auto; } /* WHY IS THIS EVEN SET? WHO KLUDGED TOGETHER THIS AWFUL SKIN */

@media all {
  .mw-logo {
    min-width: auto; /* fixes width being too big on mobile */
  }
}