MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
:root { | :root { | ||
/* Width control */ | |||
--fixed-width: 1200px; /* Dynamicly changed by Hook */ | |||
} | } | ||
| Line 35: | Line 37: | ||
line-height: 1; | line-height: 1; | ||
} | } | ||
/* Width control */ | |||
@media screen and (min-width: 1200px) { | @media screen and (min-width: 1200px) { | ||
body { | body { | ||
max-width: | max-width: var(--fixed-width); /* Dynamicly changed by Hook */ | ||
margin: auto; | margin: auto; | ||
} | } | ||
} | } | ||
Revision as of 12:35, 30 December 2025
/* 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);
}
/* ------------------------------------------- */
/* 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;
}
}