Difference between revisions of "MediaWiki:Vector.css"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
--label-color: #ffd28f; | --label-color: #ffd28f; | ||
--line-color: #03611c; | --line-color: #03611c; | ||
--dark-mode-background: darkgrey; | |||
} | } | ||
Line 58: | Line 59: | ||
.wikitable > * > tr:nth-child(odd) > td { | .wikitable > * > tr:nth-child(odd) > td { | ||
background: var(--label-color); | background: var(--label-color); | ||
} | |||
/* ################################## */ | |||
/* Dark Mode */ | |||
/* ################################## */ | |||
.mw-dark-mode .mw-page-base { | |||
background: var(--dark-mode-background); | |||
} | |||
.mw-dark-mode .mw-body { | |||
background: var(--dark-mode-background); | |||
} | |||
.mw-dark-mode { | |||
background: var(--dark-mode-background); | |||
} | |||
.mw-dark-mode #mw-panel { | |||
background: var(--dark-mode-background); | |||
} | |||
.mw-dark-mode #mw-head { | |||
background: var(--dark-mode-background); | |||
} | } |
Revision as of 17:10, 18 February 2022
/* All CSS here will be loaded for users of the Vector skin */
:root {
--header: #9b6835;
--secondary-header: #fca349;
--label-color: #ffd28f;
--line-color: #03611c;
--dark-mode-background: darkgrey;
}
.wikitable > * > tr > th {
background: var(--header);
}
.infobox-title {
background: var(--header);
}
.infobox-header {
background: var(--secondary-header);
}
.header-box {
background: var(--header);
box-shadow: 2px 2px var(--line-color);
}
.mainpage-buttons ul li {
background: var(--header);
box-shadow: 2px 2px var(--line-color);
}
.infobox {
box-shadow: 2px 2px var(--line-color);
border: 1px solid var(--line-color);
}
.infobox-label {
background: var(--label-color);
}
.wikitable {
border:none;
}
.wikitable > tr, .wikitable > * > tr {
border: none;
border-bottom: 1px solid var(--line-color);
}
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
border: none;
}
.wikitable > tr > td,
.wikitable > * > tr:nth-child(odd) > td {
background: var(--label-color);
}
/* ################################## */
/* Dark Mode */
/* ################################## */
.mw-dark-mode .mw-page-base {
background: var(--dark-mode-background);
}
.mw-dark-mode .mw-body {
background: var(--dark-mode-background);
}
.mw-dark-mode {
background: var(--dark-mode-background);
}
.mw-dark-mode #mw-panel {
background: var(--dark-mode-background);
}
.mw-dark-mode #mw-head {
background: var(--dark-mode-background);
}