Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Text elements in white */
/*******************************************************************************
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, span, blockquote, pre, code, th, td, caption, label, input[type="text"], input[type="password"], input[type="email"], input[type="number"], textarea, select, button, .option, .mw-parser-output {
* MediaWiki Styles Override
     color: #ffffff !important;
*/
 
/* Recent changes legend */
div.mw-changeslist-legend {
     background-color: #27292d;
}
}


/* Page background */
/* Main page legend */
body {
div.mw-changeslist-legend dt {
     background-color: #27292d !important;
     float: left;
}
}


/* Content background */
/* Reference notes */
#content, #content #bodyContent, #content #mw-content-text, #content #mw-indicator-mw-helplink, #content #mw-panel, #content #footer, #content #footer #footer-info, #content #footer #footer-places, #content #footer #footer-icons, #content #footer #footer-copyright {
div.mw-references-wrap {
     background-color: #1f2024 !important;
    font-size: 0.9em;
    color: #ffffff;
}
div.mw-references-wrap:before {
    border-bottom: 1px solid #A2A9B1;
    content: 'Notes and References';
    display: block;
    font-family: monospace;
    font-size: 1.75em;
    margin: 3em auto 0.75em;
     color: #ffffff;
}
}


/* Links */
/* Navigation margin top */
a, a:visited {
#p-navigation {
     color: #ffffff !important;
     margin-top: -36px !important;
}
}


/* Hover effect for links */
/* Hide <h3>&nbsp;</h3> at the top of the category pages list */
a:hover {
.mw-category > .mw-category-group:only-child > h3 {
     color: #cccccc !important;
    display: none;
}
.mw-category > .mw-category-group:first-child > h3 {
     margin: 0;
}
}


/* Hover effect for buttons */
/* Table of contents */
button:hover {
.toc {
     background-color: #444444 !important;
    border-radius: 0.3rem;
     color: #ffffff !important;
     background-color: #1f2024;
     color: #ffffff;
}
}


/* Border color */
/* Content links */
.border {
#content a:link, #content a:visited, #content a:hover:link, #content a:hover:visited, #content a:focus:link, #content a:focus:visited {
     border-color: #ffffff !important;
    color: #ffffff;
}
#content a.new:link, #content a.new:visited, #content a.new:hover:link, #content a.new:hover:visited, #content a.new:focus:link, #content a.new:focus:visited {
     color: #BA0000;
}
#content a.oo-ui-buttonElement-button {
    color: #D33;
}
}


/* Header background */
/* Button focus inner */
#mw-head {
button::-moz-focus-inner {
     background-color: #27292d !important;
     padding: 0;
}
}


/* mw-code and mw-css background */
/* Edit section margin top */
.mw-code, .mw-css {
div.editsection {
     background-color: #131416 !important;
     margin-top: 2em;
}
}


/* mw-normal-catlinks background */
/* Heading margins and sizes */
.mw-normal-catlinks, .toc, .toccolours {
.mw-body-content h2 { margin-top: 1.75em; font-size: 1.75em; }
    background-color: #27292d !important;
.mw-body-content h3 { margin-top: 1.00em; font-size: 1.50em; }
    padding: 10px; /* Adjust padding as needed */
.mw-body-content h4 { font-size: 1.25em; }
.mw-body-content h5 { font-size: 1.00em; }
.mw-body-content h6 { font-size: 0.90em; }
 
/* Edit section in headings */
h1 > span.mw-editsection, h2 > span.mw-editsection {
    font-style: italic;
    font-size: 0.5em;
}
h1 > span.mw-editsection > span.mw-editsection-bracket, h2 > span.mw-editsection > span.mw-editsection-bracket {
    display: none;
}
}


/* Tabs */
/* Edit section floating */
.vector-menu-tabs-legacy a, .vector-menu-tabs-legacy .selected {
span.mw-editsection {
     background-color: #1f2024 !important; /* Background color */
     float: right;
    color: #ffffff !important; /* Text color */
}
}


.vector-menu-tabs-legacy a:hover {
/* Hide "Variants" tab */
     background-color: #4b4e54 !important; /* Hover color */
#p-variants {
     display: none;
}
}


/* Edit form */
/* Hide Vector 2022 Skin */
.mw-editform .editOptions {
.oo-ui-widget.oo-ui-widget-enabled.oo-ui-labelElement.oo-ui-optionWidget.oo-ui-radioOptionWidget:has( > span > input[value="vector-2022"]) {
     background-color: #1f2024 !important;
     display:none;
}
}


/* Text input widget */
/* Preformatted text and code block styling */
.oo-ui-textInputWidget.oo-ui-widget-enabled .oo-ui-inputWidget-input {
pre {
     background-color: #27292d !important;
    border-color: #DDD;
     color: #ffffff !important; /* Sets text color to white */
}
code:not(.mw-highlight), div:not(.mw-highlight) > pre {
    margin: 0.5em 0 0.5em 0.5em;
    padding: 0.5em;
    background-color: #1f2024;
    border: 1px dashed #2F6FAB;
    font-size: 0.9em;
    line-height: 1.4em;
    white-space: pre;
     overflow-x: auto;
     color: #ffffff;
}
}


/* Edit text box */
/* Obsolete <tt> tag styling */
.mw-editform #wpTextbox1 {
var, tt {
     background-color: #1f2024 !important;
    background-color: #1f2024;
    font-family: "Lucida Console", Consolas, monospace;
    font-size: 0.9em;
    font-style: normal;
    line-height: 1.4em;
    padding: 0.2em 0.3em;
    color: #ffffff;
}
tt:after {
     color: #D33;
    content: "<tt> is obsolete, use {{hl|text}} template";
    font-family: arial;
    font-size: 75%;
    font-weight: bold;
    line-height: 0;
    margin-left: 1em;
    position: relative;
        top: -0.5em;
    vertical-align: baseline;
}
}


/* Dropdown handle normal and hover effect */
/* Technical writing style */
.oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle,
pre, code, tt, kbd, samp, .mw-code {
.oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle:hover {
    font-family: "Lucida Console", monospace;
     background-color: #27292d !important; /* Dark color based on your color scheme */
    tab-size: 4;
    color: #ffffff;
}
#wpTextbox1 {
     tab-size: 4;
}
}


/* Indicator Down Element Color */
/*
.oo-ui-indicatorElement-indicator .oo-ui-indicator-down {
* Syntaxhighlight styling
     color: #ffffff !important; /* Sets color to white */
*/
div.mw-highlight > pre > span > .k, div.mw-highlight > pre > span > .kc, div.mw-highlight > pre > span > .nc, div.mw-highlight > pre > span > .nn, div.mw-highlight > pre > span > .nt {
    font-weight: normal;
    text-shadow: 0 0 0.075em;        /* fake bold */
}
div.mw-highlight.mw-highlight-lang-css .cp {
    background-color: #FF8;
     color: #D00;
    margin: -0.125em;
    padding: 0.125em;
    text-shadow: 0 0 0.075em;       /* fake bold */
}
div.mw-highlight > pre {
    font-size: 0.9em;
    line-height: 1.4em;
    margin: 0.5em 0;
    padding: 0.5em;
    overflow-x: auto;
    white-space: pre;
    background-color: #1f2024;
    color: #ffffff;
}
}


/* Dark background with white text for specific widget */
/*
.oo-ui-widget.oo-ui-widget-enabled.oo-ui-labelElement.oo-ui-optionWidget.oo-ui-decoratedOptionWidget.oo-ui-menuOptionWidget {
* Smaller Wiki-styled checkboxes, e.g [[Special:Search]] (after v1.39)
     background-color: #27292d !important; /* Dark background */
*/
     color: #ffffff !important; /* White text */
.oo-ui-checkboxInputWidget [type="checkbox"], .oo-ui-checkboxInputWidget [type="checkbox"] + span {
    height: 1.2em;
    min-height: unset;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
     width: 1.2em;
     min-width: unset;
}
}


/* Background color for search profile tabs */
.oo-ui-layout.oo-ui-labelElement.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline {
.mw-search-profile-tabs {
     line-height: 1.1em;
     background-color: #27292d !important; /* Setting the color to #27292d */
}
}


/* mw-changeslist-legend background and text color */
/*
.mw-changeslist-legend {
* Bigger native checkboxes, e.g [[Special:ReplaceText]]
     background-color: #1f2024 !important; /* Consistent dark background */
*/
     color: #ffffff !important; /* White text color */
input[type="checkbox"] {
     height: 1.2em;
     width: 1.2em;
}
}


/* Vector menu dropdown item background */
/* Hide subtitle and categories on Main Page */
.vector-menu-dropdown .mw-list-item a:not(.vector-icon) {
.page-Main_Page #contentSub {
     background-color: #1f2024 !important; /* Dark background */
    display: none;
     color: #ffffff !important; /* White text */
}
.page-Main_Page #catlinks {
     display: none;
}
.page-Main_Page #firstHeading {
     display: none;
}
}


/* Dark mode style for mw-widget-dateInputWidget-handle */
/* Continue with more custom styles... */
.mw-widget-dateInputWidget-handle {
    background-color: #1f2024 !important; /* Dark background */
    color: #ffffff !important; /* White text */
}

Revision as of 16:27, 18 March 2024

/* CSS placed here will be applied to all skins */

/*******************************************************************************
 * MediaWiki Styles Override
 */

/* Recent changes legend */
div.mw-changeslist-legend {
    background-color: #27292d;
}

/* Main page legend */
div.mw-changeslist-legend dt {
    float: left;
}

/* Reference notes */
div.mw-references-wrap {
    font-size: 0.9em;
    color: #ffffff;
}
div.mw-references-wrap:before {
    border-bottom: 1px solid #A2A9B1;
    content: 'Notes and References';
    display: block;
    font-family: monospace;
    font-size: 1.75em;
    margin: 3em auto 0.75em;
    color: #ffffff;
}

/* Navigation margin top */
#p-navigation {
    margin-top: -36px !important;
}

/* Hide <h3>&nbsp;</h3> at the top of the category pages list */
.mw-category > .mw-category-group:only-child > h3 {
    display: none;
}
.mw-category > .mw-category-group:first-child > h3 {
    margin: 0;
}

/* Table of contents */
.toc {
    border-radius: 0.3rem;
    background-color: #1f2024;
    color: #ffffff;
}

/* Content links */
#content a:link, #content a:visited, #content a:hover:link, #content a:hover:visited, #content a:focus:link, #content a:focus:visited {
    color: #ffffff;
}
#content a.new:link, #content a.new:visited, #content a.new:hover:link, #content a.new:hover:visited, #content a.new:focus:link, #content a.new:focus:visited {
    color: #BA0000;
}
#content a.oo-ui-buttonElement-button {
    color: #D33;
}

/* Button focus inner */
button::-moz-focus-inner {
    padding: 0;
}

/* Edit section margin top */
div.editsection {
    margin-top: 2em;
}

/* Heading margins and sizes */
.mw-body-content h2 { margin-top: 1.75em; font-size: 1.75em; }
.mw-body-content h3 { margin-top: 1.00em; font-size: 1.50em; }
.mw-body-content h4 { font-size: 1.25em; }
.mw-body-content h5 { font-size: 1.00em; }
.mw-body-content h6 { font-size: 0.90em; }

/* Edit section in headings */
h1 > span.mw-editsection, h2 > span.mw-editsection {
    font-style: italic;
    font-size: 0.5em;
}
h1 > span.mw-editsection > span.mw-editsection-bracket, h2 > span.mw-editsection > span.mw-editsection-bracket {
    display: none;
}

/* Edit section floating */
span.mw-editsection {
    float: right;
}

/* Hide "Variants" tab */
#p-variants {
    display: none;
}

/* Hide Vector 2022 Skin */
.oo-ui-widget.oo-ui-widget-enabled.oo-ui-labelElement.oo-ui-optionWidget.oo-ui-radioOptionWidget:has( > span > input[value="vector-2022"]) {
    display:none;
}

/* Preformatted text and code block styling */
pre {
    border-color: #DDD;
}
code:not(.mw-highlight), div:not(.mw-highlight) > pre {
    margin: 0.5em 0 0.5em 0.5em;
    padding: 0.5em;
    background-color: #1f2024;
    border: 1px dashed #2F6FAB;
    font-size: 0.9em;
    line-height: 1.4em;
    white-space: pre;
    overflow-x: auto;
    color: #ffffff;
}

/* Obsolete <tt> tag styling */
var, tt {
    background-color: #1f2024;
    font-family: "Lucida Console", Consolas, monospace;
    font-size: 0.9em;
    font-style: normal;
    line-height: 1.4em;
    padding: 0.2em 0.3em;
    color: #ffffff;
}
tt:after {
    color: #D33;
    content: "<tt> is obsolete, use {{hl|text}} template";
    font-family: arial;
    font-size: 75%;
    font-weight: bold;
    line-height: 0;
    margin-left: 1em;
    position: relative;
        top: -0.5em;
    vertical-align: baseline;
}

/* Technical writing style */
pre, code, tt, kbd, samp, .mw-code {
    font-family: "Lucida Console", monospace;
    tab-size: 4;
    color: #ffffff;
}
#wpTextbox1 {
    tab-size: 4;
}

/*
 * Syntaxhighlight styling
 */
div.mw-highlight > pre > span > .k, div.mw-highlight > pre > span > .kc, div.mw-highlight > pre > span > .nc, div.mw-highlight > pre > span > .nn, div.mw-highlight > pre > span > .nt {
    font-weight: normal;
    text-shadow: 0 0 0.075em;        /* fake bold */
}
div.mw-highlight.mw-highlight-lang-css .cp {
    background-color: #FF8;
    color: #D00;
    margin: -0.125em;
    padding: 0.125em;
    text-shadow: 0 0 0.075em;        /* fake bold */
}
div.mw-highlight > pre {
    font-size: 0.9em;
    line-height: 1.4em;
    margin: 0.5em 0;
    padding: 0.5em;
    overflow-x: auto;
    white-space: pre;
    background-color: #1f2024;
    color: #ffffff;
}

/*
 * Smaller Wiki-styled checkboxes, e.g [[Special:Search]] (after v1.39)
 */
.oo-ui-checkboxInputWidget [type="checkbox"], .oo-ui-checkboxInputWidget [type="checkbox"] + span {
    height: 1.2em;
    min-height: unset;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
    width: 1.2em;
    min-width: unset;
}

.oo-ui-layout.oo-ui-labelElement.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline {
    line-height: 1.1em;
}

/*
 * Bigger native checkboxes, e.g [[Special:ReplaceText]]
 */
input[type="checkbox"] {
    height: 1.2em;
    width: 1.2em;
}

/* Hide subtitle and categories on Main Page */
.page-Main_Page #contentSub {
    display: none;
}
.page-Main_Page #catlinks {
    display: none;
}
.page-Main_Page #firstHeading {
    display: none;
}

/* Continue with more custom styles... */