MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 51: | Line 51: | ||
.mw-body { | .mw-body { | ||
padding-top: | margin-top: 5px; | ||
} | |||
/* Tabs styling */ | |||
nav.vector-menu-tabs, | |||
nav.vector-menu-dropdown { | |||
background: none; | |||
padding: 0; | |||
height: 36px; | |||
} | |||
nav.vector-menu-tabs li a { | |||
box-sizing: unset; | |||
} | |||
nav.vector-menu-tabs, | |||
nav.vector-menu-tabs a, | |||
.vector-menu-portal .vector-menu-heading, | |||
nav.vector-menu-tabs ul, | |||
nav.vector-menu-tabs ul li.selected, | |||
#mw-head .vector-menu-dropdown .vector-menu-heading { | |||
background: none; | |||
} | |||
nav.vector-menu-tabs li a { | |||
padding: 15px 14px 0 20px; | |||
height: 21px; | |||
margin-right: 8px; | |||
} | |||
nav.vector-menu-dropdown label { | |||
padding: 15px 14px 0 20px !important; | |||
} | |||
nav.vector-menu-dropdown .vector-menu-content { | |||
transition: none; | |||
margin-left: 6px; | |||
min-width: calc(100% - 14px); /* Subtract 14px from the minimum width so that it doesn't cross the grass border */ | |||
} | |||
nav.vector-menu { | |||
margin: 0 8px 0 6px; | |||
} | |||
#p-views, | |||
#p-cactions { | |||
margin: 0; | |||
} | |||
#p-cactions { | |||
padding-right: 8px; | |||
} | |||
#left-navigation nav.vector-menu { | |||
margin-left: 0; | |||
} | |||
nav.vector-menu h3 span { | |||
padding-left: 14px; | |||
font-weight: bold; | |||
} | |||
nav.vector-menu h3 a { | |||
height: 36px; | |||
margin-right: 8px; | |||
} | |||
nav.vector-menu div.vector-menu-content { | |||
top: 35px; | |||
} | } | ||
Revision as of 11:18, 6 January 2026
/* Structorica Vector Theme */
:root {
/* Width control */
--fixed-width: 1200px; /* Dynamicly changed by Hook */
}
/* Main page elements */
body {
background-color: var(--background-color-base);
color: var(--color-base);
}
#mw-page-base {
background: none;
height: 85px;
}
/* Remove excess spacing between the sidebar and the logo */
div#mw-panel {
padding-top: 0;
padding-bottom: 10px;
}
#p-logo,
#p-logo a {
margin: auto;
height: 8.75em; /* 140px */
}
#right-navigation,
#content {
margin-right: 0px;
}
#footer {
margin-right: 0px;
}
/* Position the tabs */
#left-navigation,
#right-navigation {
margin-top: 54px;
}
#mw-head-base {
height: 80px;
margin-top: -80px;
}
.mw-body {
margin-top: 5px;
}
/* Tabs styling */
nav.vector-menu-tabs,
nav.vector-menu-dropdown {
background: none;
padding: 0;
height: 36px;
}
nav.vector-menu-tabs li a {
box-sizing: unset;
}
nav.vector-menu-tabs,
nav.vector-menu-tabs a,
.vector-menu-portal .vector-menu-heading,
nav.vector-menu-tabs ul,
nav.vector-menu-tabs ul li.selected,
#mw-head .vector-menu-dropdown .vector-menu-heading {
background: none;
}
nav.vector-menu-tabs li a {
padding: 15px 14px 0 20px;
height: 21px;
margin-right: 8px;
}
nav.vector-menu-dropdown label {
padding: 15px 14px 0 20px !important;
}
nav.vector-menu-dropdown .vector-menu-content {
transition: none;
margin-left: 6px;
min-width: calc(100% - 14px); /* Subtract 14px from the minimum width so that it doesn't cross the grass border */
}
nav.vector-menu {
margin: 0 8px 0 6px;
}
#p-views,
#p-cactions {
margin: 0;
}
#p-cactions {
padding-right: 8px;
}
#left-navigation nav.vector-menu {
margin-left: 0;
}
nav.vector-menu h3 span {
padding-left: 14px;
font-weight: bold;
}
nav.vector-menu h3 a {
height: 36px;
margin-right: 8px;
}
nav.vector-menu div.vector-menu-content {
top: 35px;
}
nav.vector-menu-tabs ul li.selected,
nav.vector-menu-tabs ul li:hover,
nav.vector-menu-tabs ul li:focus,
nav.vector-menu-dropdown:hover,
nav.vector-menu-dropdown:focus {
--ca-background-color: var(--content-background-color);
}
.mw-body, .parsoid-body,
div#content {
background-color: var(--content-background-color);
border-top: 0px solid var(--content-background-color);
border-bottom: 0px solid var(--content-background-color);
border-left: 0px solid var(--content-background-color);
border-right: 0px solid var(--content-background-color);
}
.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame {
background-color: var(--content-background-color);
}
#preferences .mw-htmlform-submit-buttons {
background-color: var(--content-background-color);
}
/* ------------------------------------------- */
/* Theme and Width toggle buttons styling */
.theme-toggle-button,
.width-toggle-button {
display: block;
padding: 8px 12px;
text-decoration: none;
border-radius: 4px;
font-size: 14px;
margin: 4px 0;
}
body.stw-theme-dark .theme-toggle-button:hover,
body.stw-theme-dark .width-toggle-button:hover,
#p-personal .theme-toggle-button,
#p-personal .width-toggle-button {
display: inline-block;
margin: 0 0 0 10px;
padding: 0.5em;
font-size: 0.875em;
line-height: 1;
}
/* Width control */
@media screen and (min-width: 1200px) {
body {
max-width: var(--fixed-width); /* Dynamicly changed by Hook */
margin: auto;
}
}