MediaWiki:Common.css
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.
/* ---------------------------------------------
OSRS Wiki-Inspired Common CSS
--------------------------------------------- */
/* Consistent font and base layout */
body,
table,
td,
th,
input,
select,
textarea {
font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
font-size: 0.95em;
color: #2e2e2e;
line-height: 1.6em;
background: none;
}
/* Center categories under articles */
#catlinks {
background: none;
border-top: 1px solid #d4c4a3;
margin-top: 2em;
padding-top: 0.5em;
text-align: center;
}
/* Infobox styling */
.infobox {
background: #fdf9f3;
border: 1px solid #d4c4a3;
font-size: 0.85em;
width: 300px;
margin: 0.5em 0 1em 1em;
border-collapse: collapse;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
float: right;
table-layout: fixed;
word-break: break-word;
border-radius: 4px;
}
.infobox th,
.infobox td {
border: 1px solid #e8ddc9;
padding: 0.4em 0.5em;
}
.infobox .infobox-header {
background: #d4c4a3;
color: #222;
font-weight: bold;
font-size: 1.1em;
text-align: center;
padding: 0.5em;
}
.infobox .infobox-subheader {
background: #e8ddc9;
font-weight: bold;
text-align: center;
padding: 0.4em;
}
/* Table styling */
table.wikitable {
background: #fffdf9;
border: 1px solid #d4c4a3;
border-collapse: collapse;
}
.wikitable th,
.wikitable td {
border: 1px solid #d4c4a3;
padding: 0.4em 0.6em;
}
.wikitable th {
background-color: #eee1c9;
font-weight: bold;
text-align: center;
}
/* Collapsible elements */
.mw-collapsible-toggle {
float: right;
font-size: 0.9em;
color: #3366cc;
}
.mw-collapsible-toggle:hover {
text-decoration: underline;
cursor: pointer;
}
/* Headings */
h1, h2, h3, h4, h5 {
color: #2e2e2e;
font-weight: bold;
}
/* Paragraph spacing */
p {
margin: 1em 0;
}
/* Force gallery and image boxes to blend in */
.gallerybox, .thumb {
background: #fdfaf4;
border-color: #d4c4a3;
}
/* Improve list spacing */
ul, ol {
margin-top: 0.4em;
margin-bottom: 0.6em;
padding-left: 1.4em;
}
/* Smooth border and padding for inputs */
input,
textarea,
select {
border: 1px solid #c6b28f;
padding: 4px;
border-radius: 2px;
}
/* Remove annoying focus blue glow */
input:focus,
textarea:focus,
select:focus {
outline: none;
border-color: #a48f6f;
}
/* Improve clarity of user-generated preformatted blocks */
pre {
background-color: #f5f2e7;
border: 1px solid #d4c4a3;
padding: 0.6em;
overflow: auto;
}
/* Fix monospace font inside code/pre */
pre,
code {
font-family: Consolas, Monaco, monospace;
font-size: 0.9em;
}