MediaWiki:Vector.css: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 35: Line 35:


     --text-color: #a38d6d;
     --text-color: #a38d6d;
    --subdued-text-color: #5e4f45;
     --heading-color: #dfcf99;
     --heading-color: #dfcf99;
    --horizontal-rule-color: #5e4f45;


     /* Links */
     /* Links */
Line 91: Line 93:


/* ===== Headings ===== */
/* ===== Headings ===== */
.page-header__title,
@media screen {
.mw-body h1,
    .mw-body h1,
.mw-body h2,
    .mw-body h2,
.mw-body h3,
    .mw-body h3,
.mw-body h4,
    .mw-body h4,
.mw-body h5,
    .mw-body h5,
.mw-body h6 {
    .mw-body h6 {
    color: var(--heading-color);
        font-family: var(--stylized-font);
     border-bottom-color: #5e4f45;
        color: var(--heading-color);
     }
    .mw-body h1,
    .mw-body h2 {
        border-bottom-color: var(--horizontal-rule-color);
    }
}
}


/* ===== Other content elements ===== */
@media screen {
@media screen {
    pre,
     .mw-body hr {
    code,
        color: var(--horizontal-rule-color);
    tt,
         background-color: var(--horizontal-rule-color);
    kbd,
    samp,
     .mw-code,
    .mw-editfont-monospace,
    .wikiEditor-ui .ace_editor {
         font-family: var(--monospace-font);
     }
     }
}
}
Line 261: Line 263:
}
}


/* ===== Dark theme syntax highlighting ===== */
/* ===== Code-like elements, syntax highlighting, Ace editor ===== */
@media screen and (prefers-color-scheme: dark) {
@media screen {
    pre,
    code,
    tt,
    kbd,
    samp,
    .mw-code,
    .mw-editfont-monospace,
    .wikiEditor-ui .ace_editor {
        font-family: var(--monospace-font);
    }
    pre,
    code,
    .mw-code,
     .ace-tm,
     .ace-tm,
     .mw-highlight pre {
     .mw-highlight {
         color: #F8F8F2;
         color: #cecbc6;
         background-color: #272822;
         background-color: #242321;
    }
    pre,
    code,
    .mw-code {
        border: 1px solid #49483e;
     }
     }
     .ace-tm .ace_gutter {
     .ace-tm .ace_gutter {
        color: #8F908A;
         background: #2e2d2a;  
         background: #2F3129;
     }
     }
     .mw-content-ltr.mw-highlight-lines pre,
     .mw-content-ltr.mw-highlight-lines pre,
     .mw-content-ltr.content .mw-highlight-lines pre {
     .mw-content-ltr.content .mw-highlight-lines pre {
         box-shadow: inset 2.75em 0 0 #2F3129;
         box-shadow: inset 2.75em 0 0 #2e2d2a;
    }
    .ace-tm .ace_gutter-cell,
    .mw-highlight .linenos {
        color: #8f908a;
     }
     }
     .ace-tm .ace_print-margin {
     .ace-tm .ace_print-margin {
Line 281: Line 304:
     }
     }
     .ace-tm .ace_cursor {
     .ace-tm .ace_cursor {
         color: #F8F8F0
         color: #f8f8f0;
     }
     }
     .ace-tm .ace_marker-layer .ace_selection {
     .ace-tm .ace_marker-layer .ace_selection {
         background: #49483E
         background: #49483e;
     }
     }
     .ace-tm.ace_multiselect .ace_selection.ace_start {
     .ace-tm.ace_multiselect .ace_selection.ace_start {
Line 293: Line 316:
     }
     }
     .ace-tm .ace_marker-layer .ace_bracket {
     .ace-tm .ace_marker-layer .ace_bracket {
         border: 1px solid #49483E;
         border: 1px solid #49483e;
         margin: -1px 0 0 -1px;
         margin: -1px 0 0 -1px;
     }
     }
     .ace-tm .ace_marker-layer .ace_active-line {
     .ace-tm .ace_marker-layer .ace_active-line,
         background: #202020;
    .mw-highlight .hll {
        background: #1e1d1c;
    }
    .ace-tm .ace_gutter-active-line,
    .mw-highlight .hll a .linenos {
         background-color: #282725;
     }
     }
     .ace-tm .ace_gutter-active-line {
     .ace-tm .ace_gutter-active-line,
         background-color: #272727;
    .mw-highlight .hll a .linenos,
    .mw-highlight a:hover .linenos {
         color: #fff;
     }
     }
     .ace-tm .ace_marker-layer .ace_selected-word {
     .ace-tm .ace_marker-layer .ace_selected-word {
         border: 1px solid #49483E;
         border: 1px solid #49483e;
     }
     }
     .ace-tm .ace_invisible {
     .ace-tm .ace_invisible {
Line 317: Line 347:
     .mw-highlight .ow,
     .mw-highlight .ow,
     .mw-highlight .nt {
     .mw-highlight .nt {
         color: #F92672;
         color: #f92672;
     }
     }
     .ace-tm .ace_keyword.ace_operator,
     .ace-tm .ace_keyword.ace_operator,
Line 325: Line 355:
     .ace-tm .ace_punctuation,
     .ace-tm .ace_punctuation,
     .ace-tm .ace_punctuation.ace_tag,
     .ace-tm .ace_punctuation.ace_tag,
    .mw-highlight .p,
     .mw-highlight .nc,
     .mw-highlight .nc,
     .mw-highlight .nf,
     .mw-highlight .nf,
Line 339: Line 370:
     .mw-highlight .mh,
     .mw-highlight .mh,
     .mw-highlight .kc {
     .mw-highlight .kc {
         color: #AE81FF;
         color: #ae81ff;
     }
     }
     .ace-tm .ace_invalid {
     .ace-tm .ace_invalid {
         color: #F8F8F0;
         color: #f8f8f0;
         background-color: #F92672;
         background-color: #f92672;
     }
     }
     .ace-tm .ace_invalid.ace_deprecated {
     .ace-tm .ace_invalid.ace_deprecated {
         color: #F8F8F0;
         color: #f8f8f0;
         background-color: #AE81FF;
         background-color: #ae81ff;
     }
     }
     .ace-tm .ace_support.ace_constant,
     .ace-tm .ace_support.ace_constant,
     .ace-tm .ace_support.ace_function,
     .ace-tm .ace_support.ace_function,
     .mw-highlight .bp {
     .mw-highlight .bp {
         color: #66D9EF;
         color: #66d9ef;
     }
     }
     .ace-tm .ace_fold {
     .ace-tm .ace_fold {
         border-color: #F8F8F2;
         border-color: #f8f8f2;
         background-color: #A6E22E;
         background-color: #a6e22e;
     }
     }
     .ace-tm .ace_storage.ace_type,
     .ace-tm .ace_storage.ace_type,
Line 365: Line 396:
     .mw-highlight .kt {
     .mw-highlight .kt {
         font-style: italic;
         font-style: italic;
         color: #66D9EF;
         color: #66d9ef;
     }
     }
     .ace-tm .ace_entity.ace_name.ace_function,
     .ace-tm .ace_entity.ace_name.ace_function,
Line 375: Line 406:
     .mw-highlight .nb,
     .mw-highlight .nb,
     .mw-highlight .nn {
     .mw-highlight .nn {
         color: #A6E22E;
         color: #a6e22e;
     }
     }
     .ace-tm .ace_variable.ace_parameter,
     .ace-tm .ace_variable.ace_parameter,
     .mw-highlight .cp {
     .mw-highlight .cp {
         font-style: italic;
         font-style: italic;
         color: #FD971F;
         color: #fd971f;
     }
     }
     .ace-tm .ace_string,
     .ace-tm .ace_string,
Line 388: Line 419:
     .mw-highlight .se,
     .mw-highlight .se,
     .mw-highlight .sx {
     .mw-highlight .sx {
         color: #E6DB74;
         color: #e6db74;
     }
     }
     .ace-tm .ace_comment,
     .ace-tm .ace_comment,
Line 395: Line 426:
     .mw-highlight .c1,
     .mw-highlight .c1,
     .mw-highlight .cm {
     .mw-highlight .cm {
         color: #75715E;
         color: #75715e;
     }
     }
     .ace-tm .ace_indent-guide {
     .ace-tm .ace_indent-guide {

Revision as of 00:52, 3 October 2024

/*
 * This stylesheet modifies the Vector theme.
 * 
 * Common styles should go in [[MediaWiki:Common.css]].
 */

/* ===== Fonts ===== */
@font-face {
    font-family: 'Fontin';
    src: local('Fontin Regular'), url(/w/media/Fontin-Regular.ttf) format('truetype');
}
@font-face {
    font-family: 'Fontin';
    src: local('Fontin Bold'), url(/w/media/Fontin-Bold.ttf) format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'Fontin';
    src: local('Fontin Italic'), url(/w/media/Fontin-Italic.ttf) format('truetype');
    font-style: italic;
}
@font-face {
    font-family: 'FontinSmallCaps';
    src: local('Fontin SmallCaps'), url(/w/media/Fontin-SmallCaps.ttf) format('truetype');
}

/* ===== Variables ===== */
:root {
    color-scheme: dark;

    --default-font: Verdana, Arial, Helvetica, sans-serif;
    --stylized-font: Fontin, Verdana, Arial, Helvetica, sans-serif;
    --stylized-smallcaps-font: FontinSmallCaps, Verdana, Arial, Helvetica, sans-serif;
    --monospace-font: "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

    --text-color: #a38d6d;
    --subdued-text-color: #5e4f45;
    --heading-color: #dfcf99;
    --horizontal-rule-color: #5e4f45;

    /* Links */
    --link-color: #e4dc75;
    --link-active-color: #f2dcae;
    --red-link-color: #f25749;
    --red-link-active-color: #f2b4ae;

    /* Tables */
    --table-border-color: #1a1812;
    --table-text-color: var(--text-color);
    --table-background-color: #26231b;
    --table-background-color-alt: #211F18;
    --table-header-text-color: var(--text-color);
    --table-header-background-color: #332f24;

    /* Outside of main content area */
    --outer-text-color: #c6bbb3;
    --outer-link-color: #e8e6e3;
    --outer-link-text-shadow: 0 0 0.5rem rgba(0, 0, 0, 1), -1px -1px 0 rgba(0, 0, 0, 0.25), 1px -1px 0 rgba(0, 0, 0, 0.25), -1px 1px 0 rgba(0, 0, 0, 0.25), 1px 1px 0 rgba(0, 0, 0, 0.25);
}

/* ===== Body ===== */
@media screen {
    body {
        font-family: var(--default-font);
        background: #000 url(https://pw-test2.grindinggear.com/images/9/98/Bg.jpg) no-repeat fixed left top;
        background-size: contain;
    }
}

/* ===== Links ===== */
@media screen {
    a,
    a:visited,
    .mw-parser-output a.extiw,
    .mw-parser-output a.extiw:visited,
    .mw-parser-output a.external,
    .mw-parser-output a.external:visited {
        color: var(--link-color);
    }
    a:active,
    .mw-parser-output a.extiw:active,
    .mw-parser-output a.external:active {
        color: var(--link-active-color);
    }
    a.new,
    a.new:visited {
        color: var(--red-link-color);
    }
    a.new:active {
        color: var(--red-link-active-color);
    }
}

/* ===== Headings ===== */
@media screen {
    .mw-body h1,
    .mw-body h2,
    .mw-body h3,
    .mw-body h4,
    .mw-body h5,
    .mw-body h6 {
        font-family: var(--stylized-font);
        color: var(--heading-color);
    }
    .mw-body h1,
    .mw-body h2 {
        border-bottom-color: var(--horizontal-rule-color);
    }
}

/* ===== Other content elements ===== */
@media screen {
    .mw-body hr {
        color: var(--horizontal-rule-color);
        background-color: var(--horizontal-rule-color);
    }
}

/* ===== Header ===== */
#mw-page-base {
    background: transparent;
}

/* ===== User menu ===== */
@media screen {
    .vector-user-menu-legacy a,
    .vector-user-menu-legacy a:visited{
        color: var(--outer-link-color);
        text-shadow: var(--outer-link-text-shadow);
    }
    .vector-user-menu-legacy #pt-anonuserpage,
    .vector-user-menu-legacy #pt-userpage a {
        background-position: left bottom;
    }
}

/* ===== Sidebar menu ===== */
@media screen {
    .vector-legacy-sidebar .vector-menu-portal {
        background-color: rgba(0,0,0,0.3);
    }
    .vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
        color: var(--outer-text-color);
    }
    .vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a,
    .vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a:visited {
        color: var(--outer-link-color);
        text-shadow: var(--outer-link-text-shadow);
    }
}

/* ===== Footer ===== */
@media screen {
    .mw-footer li {
        color: var(--outer-text-color);
    }
    .mw-footer a {
        color: var(--outer-link-color);
        text-shadow: var(--outer-link-text-shadow);
    }
}

/* ===== Page content ===== */
@media screen {
    .mw-body {
        border: 2px solid #4c3c2c;
        border-image-source: radial-gradient(at top center, #736445, #3d3326, #402f27, #3f372a, #0c0b09);
        border-image-slice: 1;
        color: var(--text-color);
        background-color: #0f0f0f;
        box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.5);
    }
}

/* ===== Revision history ===== */
#pagehistory li {
    border: 1px solid transparent;
    padding: 0;
}
#pagehistory li.selected {
    outline: none;
    border: 1px dashed #16678a;
    color: inherit;
    background-color: #191b1c;
}

/* ===== Table of contents ===== */
@media screen {
    .toc,
    .toccolours {
        background: #141414;
        border-color: #a38d6d;
    }
    .toctogglelabel {
        color: var(--link-color);
    }
    .tocnumber {
        color: #72777d;
    }
}

/* ===== Standard tables ===== */
@media screen {
    .wikitable {
        color: var(--table-text-color);
        background-color: var(--table-background-color);
    }
    .wikitable > tr > th,
    .wikitable > * > tr > th {
        background-color: var(--table-header-background-color);
        color: var(--heading-color);
    }
    .wikitable > tr:nth-child(even) > td,
    .wikitable > * > tr:nth-child(even) > td {
        background-color: var(--table-background-color-alt);
    }
    .wikitable > tr > th,
    .wikitable > tr > td,
    .wikitable > * > tr > th,
    .wikitable > * > tr > td {
         border: 1px solid var(--table-border-color);
    }
}

/* ===== Revision comparison ===== */
.diff-lineno,
.diff td.diff-marker {
    color: #dfcf99;
}
.mw-diff-movedpara-left:after,
.mw-diff-movedpara-right:after {
    color: #dfcf99;
}
.diff td {
    padding: 0.15em 0.3em;
}
.diff-addedline,
.diff-deletedline,
.diff-context {
    border-radius: 0.3em;
    font-family: var(--monospace-font);
}
.diff-context {
    border-color: #2c2b2b;
    color: #5e4f45;
    background: #141414;
}
.diff-deletedline {
    border-color: #894a17;
    background: #191b1c;
}
.diff-deletedline .diffchange {
    color: #dfcf99;
    background: #4d3420;
}
.diff-addedline {
    border-color: #16678a;
    background: #191b1c;
}
.diff-addedline .diffchange {
    color: #dfcf99;
    background: #203f4c;
}

/* ===== Code-like elements, syntax highlighting, Ace editor ===== */
@media screen {
    pre,
    code,
    tt,
    kbd,
    samp,
    .mw-code,
    .mw-editfont-monospace,
    .wikiEditor-ui .ace_editor {
        font-family: var(--monospace-font);
    }
    pre,
    code,
    .mw-code,
    .ace-tm,
    .mw-highlight {
        color: #cecbc6;
        background-color: #242321;
    }
    pre,
    code,
    .mw-code {
        border: 1px solid #49483e;
    }
    .ace-tm .ace_gutter {
        background: #2e2d2a;    
    }
    .mw-content-ltr.mw-highlight-lines pre,
    .mw-content-ltr.content .mw-highlight-lines pre {
        box-shadow: inset 2.75em 0 0 #2e2d2a;
    }
    .ace-tm .ace_gutter-cell,
    .mw-highlight .linenos {
        color: #8f908a;
    }
    .ace-tm .ace_print-margin {
        width: 1px;
        background: #555651;
    }
    .ace-tm .ace_cursor {
        color: #f8f8f0;
    }
    .ace-tm .ace_marker-layer .ace_selection {
        background: #49483e;
    }
    .ace-tm.ace_multiselect .ace_selection.ace_start {
        box-shadow: 0 0 3px 0px #272822;
    }
    .ace-tm .ace_marker-layer .ace_step {
        background: rgb(102, 82, 0);
    }
    .ace-tm .ace_marker-layer .ace_bracket {
        border: 1px solid #49483e;
        margin: -1px 0 0 -1px;
    }
    .ace-tm .ace_marker-layer .ace_active-line,
    .mw-highlight .hll {
        background: #1e1d1c;
    }
    .ace-tm .ace_gutter-active-line,
    .mw-highlight .hll a .linenos {
        background-color: #282725;
    }
    .ace-tm .ace_gutter-active-line,
    .mw-highlight .hll a .linenos,
    .mw-highlight a:hover .linenos {
        color: #fff;
    }
    .ace-tm .ace_marker-layer .ace_selected-word {
        border: 1px solid #49483e;
    }
    .ace-tm .ace_invisible {
        color: #52524d;
    }
    .ace-tm .ace_constant,
    .ace-tm .ace_entity.ace_name.ace_tag,
    .ace-tm .ace_keyword,
    .ace-tm .ace_meta.ace_tag,
    .ace-tm .ace_storage,
    .mw-highlight .k,
    .mw-highlight .kr,
    .mw-highlight .ow,
    .mw-highlight .nt {
        color: #f92672;
    }
    .ace-tm .ace_keyword.ace_operator,
    .mw-highlight .o {
        color: #828282;
    }
    .ace-tm .ace_punctuation,
    .ace-tm .ace_punctuation.ace_tag,
    .mw-highlight .p,
    .mw-highlight .nc,
    .mw-highlight .nf,
    .mw-highlight .nv,
    .mw-highlight .nd {
        color: inherit;
    }
    .ace-tm .ace_constant.ace_character,
    .ace-tm .ace_constant.ace_language,
    .ace-tm .ace_constant.ace_numeric,
    .ace-tm .ace_constant.ace_other,
    .mw-highlight .mi,
    .mw-highlight .mf,
    .mw-highlight .mh,
    .mw-highlight .kc {
        color: #ae81ff;
    }
    .ace-tm .ace_invalid {
        color: #f8f8f0;
        background-color: #f92672;
    }
    .ace-tm .ace_invalid.ace_deprecated {
        color: #f8f8f0;
        background-color: #ae81ff;
    }
    .ace-tm .ace_support.ace_constant,
    .ace-tm .ace_support.ace_function,
    .mw-highlight .bp {
        color: #66d9ef;
    }
    .ace-tm .ace_fold {
        border-color: #f8f8f2;
        background-color: #a6e22e;
    }
    .ace-tm .ace_storage.ace_type,
    .ace-tm .ace_support.ace_class,
    .ace-tm .ace_support.ace_type,
    .mw-highlight .kd,
    .mw-highlight .kp,
    .mw-highlight .kt {
        font-style: italic;
        color: #66d9ef;
    }
    .ace-tm .ace_entity.ace_name.ace_function,
    .ace-tm .ace_entity.ace_other,
    .ace-tm .ace_entity.ace_other.ace_attribute-name,
    .ace-tm .ace_variable,
    .ace-tm .ace_comment.ace_doc.ace_tag,
    .ace-tm .ace_constant.ace_library,
    .mw-highlight .nb,
    .mw-highlight .nn {
        color: #a6e22e;
    }
    .ace-tm .ace_variable.ace_parameter,
    .mw-highlight .cp {
        font-style: italic;
        color: #fd971f;
    }
    .ace-tm .ace_string,
    .mw-highlight .s,
    .mw-highlight .s1,
    .mw-highlight .s2,
    .mw-highlight .se,
    .mw-highlight .sx {
        color: #e6db74;
    }
    .ace-tm .ace_comment,
    .ace-tm .ace_comment.ace_doc,
    .mw-highlight .c,
    .mw-highlight .c1,
    .mw-highlight .cm {
        color: #75715e;
    }
    .ace-tm .ace_indent-guide {
        filter: brightness(0.5);
    }
}