MediaWiki:Mobile.css
Appearance
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.
/* =========================
ACCESSIBLE MOBILE WIKI CSS
Designed for readability
========================= */
/* Prevent iPhone text shrinking */
html {
-webkit-text-size-adjust: 100%;
}
/* Main body text */
body,
.mw-body,
.vector-body {
font-size: 22px;
line-height: 1.8;
font-family: sans-serif;
max-width: 100%;
overflow-x: hidden;
padding-left: 14px;
padding-right: 14px;
box-sizing: border-box;
word-wrap: break-word;
overflow-wrap: break-word;
}
/* Paragraphs */
p,
li,
td,
th {
font-size: 1rem;
line-height: 1.8;
}
/* Headings */
h1 {
font-size: 2.2rem;
line-height: 1.2;
margin-top: 0.5em;
}
h2 {
font-size: 1.8rem;
line-height: 1.3;
margin-top: 1em;
}
h3 {
font-size: 1.5rem;
line-height: 1.4;
}
/* Infobox */
.infobox {
float: none;
width: 100%;
max-width: 100%;
margin: 1em 0;
padding: 14px;
border: 1px solid #aaa;
background-color: #f9f9f9;
box-sizing: border-box;
font-size: 1rem;
}
/* Tables */
table {
width: 100%;
display: block;
overflow-x: auto;
border-collapse: collapse;
}
/* Images */
img {
max-width: 100%;
height: auto;
}
/* Links */
a {
word-break: break-word;
}
/* Sidebar */
#mw-panel,
.vector-sidebar,
.vector-toc {
font-size: 1rem;
}
/* Forms */
input,
button,
select,
textarea {
font-size: 1rem;
}
/* Code blocks */
pre,
code {
overflow-x: auto;
max-width: 100%;
font-size: 0.9rem;
}