MediaWiki:Common.CSS: Difference between revisions
Appearance
m Bigboss moved page MediaWiki:Common.css to MediaWiki:Common.CSS: Misspelled title: CASE SENSITIVE FILE NAME |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ========================================= | ||
GLOBAL WIKI STYLES | |||
Applied to all skins | |||
========================================= */ | |||
/* Link colors */ | |||
a { | a { | ||
color: #2f7fff !important; | color: #2f7fff !important; | ||
| Line 18: | Line 18: | ||
} | } | ||
/* Infobox styling */ | |||
.infobox { | .infobox { | ||
float: right; | float: right; | ||
| Line 40: | Line 30: | ||
} | } | ||
/* ========================= | /* Images */ | ||
img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
/* Tables */ | |||
table { | |||
max-width: 100%; | |||
border-collapse: collapse; | |||
} | |||
/* ========================================= | |||
MOBILE STYLES | MOBILE STYLES | ||
========================= */ | Vector 2022 + accessibility focused | ||
========================================= */ | |||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
| Line 50: | Line 53: | ||
-ms-text-size-adjust: 100%; | -ms-text-size-adjust: 100%; | ||
text-size-adjust: 100%; | text-size-adjust: 100%; | ||
font-size: 22px !important; | |||
} | } | ||
| Line 56: | Line 60: | ||
.mw-body, | .mw-body, | ||
.mw-parser-output { | .mw-parser-output { | ||
font-size: | font-size: 1rem !important; | ||
line-height: 1.8 !important; | line-height: 1.8 !important; | ||
padding-left: 14px; | padding-left: 14px; | ||
padding-right: 14px; | padding-right: 14px; | ||
overflow-x: hidden; | overflow-x: hidden; | ||
word-wrap: break-word; | |||
overflow-wrap: break-word; | |||
box-sizing: border-box; | |||
} | } | ||
| Line 73: | Line 80: | ||
h1 { | h1 { | ||
font-size: 2.2rem !important; | font-size: 2.2rem !important; | ||
line-height: 1.2; | |||
} | } | ||
h2 { | h2 { | ||
font-size: 1.8rem !important; | font-size: 1.8rem !important; | ||
line-height: 1.3; | |||
} | } | ||
h3 { | h3 { | ||
font-size: 1.4rem !important; | font-size: 1.4rem !important; | ||
line-height: 1.4; | |||
} | } | ||
| Line 86: | Line 96: | ||
float: none !important; | float: none !important; | ||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | |||
margin: 1em 0 !important; | margin: 1em 0 !important; | ||
} | } | ||
| Line 98: | Line 109: | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | |||
input, | |||
button, | |||
select, | |||
textarea { | |||
font-size: 1rem !important; | |||
} | } | ||
} | } | ||
Revision as of 00:03, 16 May 2026
/* =========================================
GLOBAL WIKI STYLES
Applied to all skins
========================================= */
/* Link colors */
a {
color: #2f7fff !important;
}
a:visited {
color: #7a5cff !important;
}
a:hover {
color: #5aa0ff !important;
text-decoration: underline;
}
/* Infobox styling */
.infobox {
float: right;
width: 300px;
max-width: 100%;
margin: 0 0 1em 1em;
padding: 10px;
border: 1px solid #aaa;
background: #f9f9f9;
box-sizing: border-box;
}
/* Images */
img {
max-width: 100%;
height: auto;
}
/* Tables */
table {
max-width: 100%;
border-collapse: collapse;
}
/* =========================================
MOBILE STYLES
Vector 2022 + accessibility focused
========================================= */
@media screen and (max-width: 768px) {
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
font-size: 22px !important;
}
body,
.vector-body,
.mw-body,
.mw-parser-output {
font-size: 1rem !important;
line-height: 1.8 !important;
padding-left: 14px;
padding-right: 14px;
overflow-x: hidden;
word-wrap: break-word;
overflow-wrap: break-word;
box-sizing: border-box;
}
p,
li,
td,
th {
font-size: 1rem !important;
line-height: 1.8 !important;
}
h1 {
font-size: 2.2rem !important;
line-height: 1.2;
}
h2 {
font-size: 1.8rem !important;
line-height: 1.3;
}
h3 {
font-size: 1.4rem !important;
line-height: 1.4;
}
.infobox {
float: none !important;
width: 100% !important;
max-width: 100% !important;
margin: 1em 0 !important;
}
table {
display: block;
width: 100%;
overflow-x: auto;
}
img {
max-width: 100%;
height: auto;
}
input,
button,
select,
textarea {
font-size: 1rem !important;
}
}