MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
Erin Umbreon (talk | contribs) also fix the "upload files" editor banner in dark theme |
No edit summary Tag: Reverted |
||
| Line 119: | Line 119: | ||
#n-Discord a::before { | #n-Discord a::before { | ||
content: ' | content: 'Wiki '; | ||
font-weight: normal; | font-weight: normal; | ||
opacity: 0.85; | opacity: 0.85; | ||
Revision as of 06:45, 25 May 2026
:root {
--link-color: #05f; /* default #0645ad */
--link-visited-color: #795cb2;
--link-redlink-color: #ba0000;
}
/* CSS placed here will affect users of the Vector skin */
a {
color: var(--link-color);
}
a:visited {
color: var(--link-visited-color);
}
a.new {
color: var(--link-redlink-color, #ba0000);
}
a.new:visited {
color: var(--link-redlink-visited-color, #a55858);
}
/* new header navigation tabs */
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown .vector-menu-heading {
background-image: none;
}
div#mw-head ul.vector-menu-content-list > li {
background-image: none;
}
div#mw-head ul.vector-menu-content-list > li.selected {
background-color: #eff8f9;
}
/* render some system links in bold black instead of using normal link styles */
#p-personal a, /* top right nav links */
div#mw-head .vector-menu-tabs li a, /* page tab links */
div#mw-panel ul.vector-menu-content-list > li > a, /* sidebar panel links */
footer.mw-footer ul#footer-places > li > a { /* site footer links */
color: var(--color-emphasized, #000000);
font-weight: bold;
}
div#simpleSearch {
background-color: #ffffff;
}
/* widen the sidebar */
div#mw-panel {
width: 12em;
}
div#footer,
#mw-head-base,
div#content {
margin-left: 12em;
}
#left-navigation {
left: 12em;
}
div#mw-panel div.portal {
padding-bottom: 5px;
}
div#p-namespaces {
margin-left: 1em;
}
div#mw-panel div.portal {
margin: 0 0.6em 0 0;
}
div#mw-panel div.portal div.body ul li {
margin-left: 1em;
}
div#mw-panel div.portal h3 {
margin-left: 2.4em;
}
/* background colors */
body {
background-color: #ebebeb;
}
/* gives makes the entire header section gray */
#mw-page-base {
background-color: transparent;
background-image: none;
}
/* gives header panel that blue look */
#mw-head-base {
background: rgba(215, 239, 242, 0.5);
border-top: 1px solid #a7d7f9;
border-left: 1px solid #a7d7f9;
border-right: 1px solid #a7d7f9;
border-bottom: 1px solid #a7d7f9;
bottom: 0;
height: 40px;
margin-top: -41px;
}
/* Discord link */
#n-Discord a {
color: #fff !important;
font-weight: bold;
border-radius: 4px;
border: 1px solid #4c57d0;
background-color: #5865f2;
display: block;
position: relative;
padding: 6px 4px 5px calc(17px + 6.5px * 2);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
transition: 0.2s;
width: 100px;
}
#n-Discord a::before {
content: 'Wiki ';
font-weight: normal;
opacity: 0.85;
}
#n-Discord a::after {
content: '';
background: url('/mediawiki/images/1/18/Discord_icon.png') no-repeat;
background-size: 13px 13px;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
position: absolute;
top: 5px;
left: 7px;
width: 17px;
height: 13px;
}
#mw-panel nav.sidebar-toc-heading h3 {
background: #FFF;
border: 1px solid #A7D7F9;
cursor: pointer;
}
#mw-panel nav.sidebar-toc-heading h3:before {
content: "";
display: inline-block;
background: 0 0;
position: relative;
width: 0;
height: 0;
border-style: solid;
border-color: #AAA transparent;
border-width: 6px 5px 0;
margin-left: 5px;
margin-bottom: 1px;
margin-right: 5px;
}
#mw-panel nav.sidebar-toc-heading.collapsed h3:before {
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg)
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a {
color: var(--link-color);
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a:visited {
color: var(--link-visited-color);
}
/* edit page textbox */
#wpTextbox1 {
background: var(--background-color-base, #fff);
color: var(--color-base, #000);
border-color: var(--border-color-base, #a2a9b1);
}
/* fix editor "upload files" background in dark themes */
#msupload-div {
background: none;
}
/* fix editor toolbar icons in dark themes */
.view-dark {
.wikiEditor-ui-toolbar .oo-ui-iconElement-icon,
.wikiEditor-ui-toolbar .tabs span.tab a::before {
filter: invert(1) brightness(999);
}
}