User:Modestginger/vector-2022.css
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .js page for this skin is at User:Modestginger/vector-2022.js. |
:root {
font-size: 13px;
}
@media screen and (min-width: 600px) {
:root {
font-size: 14px;
}
}
@media screen and (min-width: 800px) {
:root {
font-size: 15px;
}
}
@media screen and (min-width: 1000px) {
:root {
font-size: 16px;
}
}
@media screen and (min-width: 1200px) {
:root {
font-size: 17px;
}
}
@media screen and (min-width: 1400px) {
:root {
font-size: 18px;
}
}
@media screen and (max-width: 999px) {
/* Prohibit article blocks from exceeding the width of the page, scrolling if needed */
:root .mw-parser-output > * {
max-width: 100%;
overflow: auto;
}
/* Make tables scrollable by turning their parent into a block */
:root .mw-parser-output > table {
display: block;
width: auto !important;
border: none;
}
/* Move the table background color to the table header, body, and footer */
.wikitable { background-color: transparent; }
.wikitable > thead, .wikitable > tbody, .wikitable > tfoot {
background-color: #f8f9fa;
}
/* Hide the "N languages" dropdown on the space-constrained article title area */
:root label#p-lang-btn-label .vector-dropdown-label-text {
display: none;
}
/* Remove the minimum width from the header and body areas */
:root .mw-page-container, :root .vector-header-container {
min-width: 0;
}
}
@media screen and (max-width: 500px) {
/* Hide logo text at small screen sizes, to fit the header */
:root header .mw-logo-container {
display: none;
}
/* Remove the header minimum width */
:root header .mw-logo {
min-width: 0;
}
/* At small screen sizes, infoboxes should fill */
:root .infobox {
float: none;
width: auto !important;
}
/* At small screen sizes, infobox images should be constrained to the screen */
:root .infobox-image img {
max-width: 100%;
max-height: 100%;
aspect-ratio: auto;
}
/* At small screen sizes all other images should be constrained (?) */
:root .mw-page-container img {
max-width: 100%;
max-height: 100%;
aspect-ratio: auto;
}
/* At small screen sizes, article floats should become blocks */
:root div.tright, :root div.floatright, :root table.floatright {
float: none;
width: auto !important;
}
}
/*
@media screen and (width: 1000px) {
html {
display: none;
}
}
@media screen and (width: 1000px) {
html.fixedViewport {
display: block;
}
}
.mw-logo {
min-width: unset;
}
.mw-page-container {
min-width: 0 !important;
}
*/