MediaWiki:Vector.css

From Structorica Wiki
Revision as of 11:27, 6 January 2026 by Ivan (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.
/* 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 ul li,
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,
nav.vector-menu-dropdown:hover,
nav.vector-menu-dropdown:focus {
    background-color: #6BA41E;
    position: relative;
}

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);*/
    background-position-y: bottom, 6px;
}

nav.vector-menu-tabs ul li:before,
nav.vector-menu-dropdown:before {
    content: "";
    position: absolute;
    left: 0;
    background-color: #729FCF;
    width: 6px;
    height: 100%;
    pointer-events: none;
}

#left-navigation nav.vector-menu-tabs li:first-child:before {
    background-color: #784c2a;
    height: 93px
}



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;
    }
}