User: Rhaenys Targaryen/common.css
From A Wiki of Ice and Fire
Note: After saving, 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)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
.navbar-brand {
max-width: 270px;
}
/*
@import url('//awoiaf.westeros.org/index.php?title=User:Abjiklam/infobox.css&action=raw&ctype=text/css');
^ this didn't work ^
*/
/* Hatnotes and disambiguation notices */
.hatnote {
font-style: italic;
}
.hatnote i {
font-style: normal;
}
div.hatnote {
/* @noflip */
padding-left: 1.6em;
margin-bottom: 0.5em;
}
div.hatnote + div.hatnote {
margin-top: -0.5em;
}
/* Template documentations */
.template-documentation {
clear: both;
margin: 1em 0 0 0;
border: 1px solid #a2a9b1;
background-color: #ecfcf4;
padding: 1em;
}
/* Plain lists */
.plainlist ul {
line-height: inherit;
list-style: none none;
margin: 0;
}
.plainlist ol {
line-height: inherit;
margin: 0;
}
.plainlist ul li,
.plainlist ol li {
margin-bottom: 0;
}
.infobox-sandbox.plainlist li {
text-indent: -1em;
padding-left: 1em;
}
.infobox-sandbox.plainlist .hlist li {
text-indent: 0;
padding-left: 0;
}
/* Images on mobile */
.thumb img, .floatleft img, .floatright img, #file img {
max-width: 100%;
height: auto;
}
@media screen and (max-width: 600px) {
div.floatleft,
div.floatright,
table.floatleft,
table.floatright,
div.thumb {
margin-left: 0;
margin-right: 0;
padding: 0;
}
div.thumb {
float: none;
}
div.thumbinner {
width: 100% !important;
}
}
/* Infoboxes */
.infobox-sandbox {
color: inherit;
line-height: 1.5em;
margin-bottom: .5em;
}
.infobox-sandbox caption {
margin: 0;
padding: 0;
padding-bottom: 8px;
text-align: center;
font-size: 125%;
font-weight: bold;
color: inherit;
}
.infobox-sandbox img {
max-width: 100%;
height: auto;
}
.infobox-sandbox td,
.infobox-sandbox th {
vertical-align: top;
text-align: left;
}
@media screen and (max-width: 600px) {
.infobox-sandbox {
border: 1px solid #eaecf0;
background-color: #f8f9fa;
width: 100%;
}
.infobox-sandbox td,
.infobox-sandbox th {
border-bottom: 1px solid #eaecf0;
padding: 8px 6px;
}
}
@media screen and (min-width: 600px) {
.infobox-sandbox {
border: 1px solid #aaa;
background-color: #f9f9f9;
float: right;
border-collapse: separate;
border-spacing: 3px;
padding: 3px;
margin-left: 1em;
min-width: 22em;
max-width: 40%;
font-size: 90%;
}
}
/* Default style for navigation boxes */
.navbox-sandbox { /* Navbox container style */
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
}
.navbox-sandbox .navbox-sandbox {
margin-top: 0; /* No top margin for nested navboxes */
}
.navbox-sandbox + .navbox-sandbox {
margin-top: -1px; /* Single pixel border between adjacent navboxes */
}
.navbox-sandbox-inner,
.navbox-sandbox-subgroup {
width: 100%;
}
.navbox-sandbox-group,
.navbox-sandbox-title,
.navbox-sandbox-abovebelow {
padding: 0.25em 1em; /* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
th.navbox-sandbox-group { /* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox-sandbox,
.navbox-sandbox-subgroup {
background-color: #fdfdfd; /* Background color */
}
.navbox-sandbox-list {
line-height: 1.5em;
border-color: #fdfdfd; /* Must match background color */
}
/* cell spacing for navbox cells */
tr + tr > .navbox-sandbox-abovebelow,
tr + tr > .navbox-sandbox-group,
tr + tr > .navbox-sandbox-image,
tr + tr > .navbox-sandbox-list { /* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* Must match background color */
}
.navbox-sandbox th,
.navbox-sandbox-title {
background-color: #ccccff; /* Level 1 color */
}
.navbox-sandbox-abovebelow,
th.navbox-sandbox-group,
.navbox-sandbox-subgroup .navbox-sandbox-title {
background-color: #ddddff; /* Level 2 color */
}
.navbox-sandbox-subgroup .navbox-sandbox-group,
.navbox-sandbox-subgroup .navbox-sandbox-abovebelow {
background-color: #e6e6ff; /* Level 3 color */
}
.navbox-sandbox-even {
background-color: #f7f7f7; /* Even row striping */
}
.navbox-sandbox-odd {
background-color: transparent; /* Odd row striping */
}
.navbox-sandbox .hlist td dl,
.navbox-sandbox .hlist td ol,
.navbox-sandbox .hlist td ul,
.navbox-sandbox td.hlist dl,
.navbox-sandbox td.hlist ol,
.navbox-sandbox td.hlist ul {
padding: 0.125em 0; /* Adjust hlist padding in navboxes */
}
/* Default styling for Navbar template */
.vte {
display: inline;
font-size: 88%;
font-weight: normal;
}
.vte ul {
display: inline;
white-space: nowrap;
}
.mw-body-content .vte ul {
line-height: inherit;
}
.vte li {
word-spacing: -0.125em;
}
.vte.mini li abbr[title] {
font-variant: small-caps;
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .vte {
font-size: 100%;
}
.navbox-sandbox .vte {
display: block;
font-size: 100%;
}
.navbox-sandbox-title .vte {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
}
/* Welcome page */
.welcome {
border: 1px solid #ab8d30;
border-radius: 20px;
padding: 5px;
overflow: auto;
}
.welcome-left > div,
.welcome-right > div {
padding: 5px;
margin-bottom: 5px;
border-radius: 15px;
}
.welcome-left > div {
background: #f8f6ef;
clear: left;
}
.welcome-right > div {
background: #f6f6f6;
}
.welcome-portals {
text-align: center;
}
.welcome-left > .welcome-feature {
position: relative;
padding-bottom: 20px;
}
.welcome-feature-more {
position: absolute;
bottom: 5px;
right: 10px;
}
.welcome h2 {
padding: 5px 5px 5px 20px;
margin: 0 0 5px 0;
border-radius: 10px 0 0 5px;
font-size: 20px;
background: linear-gradient(to right, #a98b2e, transparent);
max-width: 350px;
}
@media screen and (min-width: 900px) {
.welcome-right {
float: right;
width: 350px;
}
.welcome-left {
padding-right: 5px;
margin-right: 350px;
}
.welcome-left > div:last-child,
.welcome-right > div:last-child {
margin-bottom: 0;
}
.welcome-portals ul {
line-height: inherit;
list-style: none none;
margin: 0;
}
.welcome-portals li {
margin-bottom: 0;
}
}
@media screen and (max-width: 900px) {
.welcome-left,
.welcome-right {
width: 100%;
}
.welcome-left > div:last-child {
margin-bottom: 0;
}
.welcome-portals ul {
margin: 0;
padding: 0;
}
.welcome-portals li {
margin: 0;
display: inline;
}
}