MediaWiki:Common.css

From GrinderScape Wiki
Revision as of 08:38, 13 May 2024 by LadderGoat (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
:root {
    --bg-content: hsl(0, 0%, 15%);
    --bg-main: hsl(0, 0%, 10%);
    --bg-warningbox: hsla(64, 84%, 47%, 0.3);
    --bg-wikitable: hsl(0, 0%, 25%);
    --bg-wikitable-header: hsl(0, 0%, 20%);
    --border-color-warningbox: hsl(64, 84%, 47%);
    --border-light: hsl(205, 87%, 82%);
    --border-dark: hsl(206, 50%, 23%);
    --primary-text: hsl(197, 100%, 50%);
    --secondary-text: hsl(0, 0%, 100%);
    --wikitable-link: hsl(211, 63%, 60%);

}

body {
    background-color: var(--bg-main);
    font-size: 15px;
    line-height: 1.75;
}

h1,
h2,
h3 {
    border-bottom: 1px solid var(--bg-wikitable);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-text);
}

a:hover {
    text-shadow: 0 2px 15px;
}

a,
a.new,
a.new:visited,
a:hover,
a:visited {
    color: var(--primary-text);
}

.mw-body {
    border-color: var(--bg-wikitable);
    background-color: var(--bg-content);
    color: var(--secondary-text);
}

#mw-page-base {
    background: none;
}

.mw-editform #editpage-copywarn {
    padding: 1em;
}

.mw-content-ltr.mw-highlight-lines pre,
.mw-content-ltr.content .mw-highlight-lines pre {
    box-shadow: inset 1em 0 0 #0083ff1c;
    padding-left: 2em;
}

pre,
code,
.mw-code {
    background-color: var(--bg-wikitable-header);
    color: #ffffff;
    border-color: #0069b980;
}

.wikitable {
    color: var(--primary-text);
}

.toctogglelabel,
.mw-parser-output a.extiw,
.mw-parser-output a.external,
.mw-parser-output .wikitable tbody tr td a {
    color: var(--wikitable-link);
}

.wikitable tr {
    background-color: var(--bg-wikitable);
}

.wikitable>tr>th,
.wikitable>*>tr>th {
    background-color: var(--bg-wikitable-header);
}

.wikitable>tr>th,
.wikitable>tr>td,
.wikitable>*>tr>th,
.wikitable>*>tr>td {
    border: 1px solid var(--bg-content);
}

.vector-menu-tabs li {
    background-image: linear-gradient(to bottom, var(--bg-wikitable) 0, var(--bg-content) 1px, var(--bg-main) 100%);
}

.vector-user-menu-legacy #pt-userpage a {
    color: #54595d;
}

.vector-user-menu-legacy li {
    font-size: 0.75em;
}

.vector-menu-dropdown .mw-list-item a {
    border: none;
}

.vector-menu-portal .vector-menu-content li {
    font-size: 0.75em;
}

.vector-menu-portal .vector-menu-content li a,
.vector-menu-tabs-legacy li a,
.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(--secondary-text);
}

.vector-menu-tabs .selected {
    background: var(--bg-content);
}

.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a:visited {
    color: var(--primary-text);
}

.vector-menu-dropdown .vector-menu-heading::after {
    background: url(images/icon-dropdown-arrow.png);
    background-position: right;
    background-repeat: no-repeat;
}

.vector-menu-tabs,
.vector-menu-tabs a,
.vector-menu-dropdown .vector-menu-heading {
    background-image: linear-gradient(to bottom, rgba(167, 215, 249, 0) 0, var(--bg-wikitable) 100%);
}

.skin-vector-legacy .vector-menu-tabs .new a,
.skin-vector-legacy .vector-menu-tabs .new a:visited {
    color: #a55858;
}

.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
    background-image: linear-gradient(to right, rgba(200, 204, 209, 0) 0, var(--bg-wikitable) 33%, var(--bg-wikitable) 66%, rgba(200, 204, 209, 0) 100%);
    color: var(--primary-text);
    padding: 0.4em 0;
    font-weight: bold;
}

.oo-ui-icon-tray,
.mw-ui-icon-tray:before {
    background-image: url(images/icon-inbox.png);
}

.oo-ui-icon-bell,
.mw-ui-icon-bell:before {
    background-image: url(images/icon-bell.png);
}

#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge {
    background-repeat: round;
}

.toc {
    font-size: 0.9em;
    background: var(--bg-wikitable);
    margin-top: 1em;
    padding: 0;
    border: 1px solid var(--bg-content);
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
    clear: left;
}

.toc .toctitle {
    background: var(--bg-wikitable-header);
    height: 25px;
    padding-top: 3px;
}

.tocnumber {
    display: none;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc ul ul {
    border-left: 1px dotted #596e96;
    padding-left: 0.5em;
}

.toc>ul {
    line-height: 1.8em;
}

#filetoc {
    background-color: var(--bg-wikitable);
}

em {
    font-style: normal;
    background: #555555;
    color: white;
    border: 1px solid #979797;
    border-radius: 2px;
    font-size: 0.9em;
    margin: 0 0.1em;
    padding: 0.2em 0.5em;
    white-space: nowrap;
}

.mw-content-ltr .toc ul,
.mw-content-rtl .mw-content-ltr .toc ul {
    line-height: 20px;
    font-size: 13px;
    margin-left: 1em;
    padding-right: 10px;
}

.mw-message-box {
    color: var(--primary-text);
}

.mw-message-box-warning {
    background-color: var(--bg-warningbox);
    border-color: var(--border-color-warningbox);
}

.mw-message-box-error {
    background-color: #ff0b0038;
}

.vector-search-box-input {
    background-color: var(--bg-content);
    color: var(--secondary-text);
    border: 1px solid var(--bg-wikitable);
    height: 2em;
}

#n-Discord a::before {
    content: 'Join our ';
    font-weight: normal;
    opacity: 0.85;
}

#n-Discord a {
    color: white;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #4c57d0;
    background-color: #5865f2;
    display: block;
    position: relative;
    padding: 4px 0 5px calc(17px + 6.5px * 2);
    margin-top: 10px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    transition: 0.2s ease;
}

#n-Discord a::after {
    content: '';
    background: url(images/Discord_icon.png) no-repeat;
    background-size: 17px 13px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    position: absolute;
    left: 7px;
    width: 17px;
    height: 13px;
}

li#footer-poweredbyico {
    display: none;
}

.mw-footer li {
    color: gray;
}

.mw-notification,
.oo-ui-messageWidget>.oo-ui-labelElement-label {
    background-color: #292929;
}

ul {
    list-style-type: disc;
    list-style-image: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A);
}