MediaWiki:Common.css

From Omniarchive Wiki
Jump to navigation Jump to search

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 / Edge: 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.
/** CSS placed here will be applied to all skins. **/


/* Links */
.skin-vector a:not(.new),
.skin-vector a:not(.new):link,
.skin-vector a:not(.new):visited {
    color: #0047bb;
}

.skin-vector a.external,
.skin-vector a.external:link,
.skin-vector a.external:visited {
    color: #002f88;
}


/* Main page */
body.page-Main_Page #firstHeading {
    display: none;
}


/* Amboxes */
.ambox {
    background-color: #282828;
    border-bottom-color: #383838;
    border-right-color: #383838;
    border-top-color: #383838;
    border-collapse: collapse;
    font-size: 95%;
    margin: 0 auto 2px auto;
    width: 80%;
}

.ambox.ambox-tiny {
    font-size: 90%;
    margin: 2px 0;
    width: auto;
}

.ambox + .ambox {
    margin-top: -2px;
}

.ambox-text {
    padding: 0.25em 0.5em;
}

.skin-vector .ambox a:not(.new),
.skin-vector .ambox a.external {
    color: #6bb9ff;
}

.ambox-image {
    padding: 2px 0px 2px 0.5em;
    text-align: center;
    width: 60px;
}

.ambox-tiny .ambox-image {
    padding: 2px 0.5em;
    text-align: left;
    width: auto;
}

.ambox-notice {
    border-left: 10px solid #1e90ff;
}

.ambox-issue {
    border-left: 10px solid #b22222;
}

.ambox-stub {
    border-left: 10px solid #f28500;
}

/*.ambox-yellow {
    border-left: 10px solid #f4c430;
}*/

.ambox-technical {
    border-left: 10px solid #9932cc;
}

.ambox-other {
    border-left: 10px solid #383838;
}

.ambox-default {
    border-left: 10px solid #228b22;
}

/* Ambox small text */
.amsmalltext {
    font-size: smaller;
    margin-left: 0.8em;
    margin-top: 0.5em;
}


/* Infoboxes */
.infoboxtable {
    background: rgba(222, 222, 222, 0.5);
    border: 1px solid #000;
    padding: 10px;
    color: #252525;
    float: right;
    font-size: 90%; 
    margin-bottom: 0.5em; 
    margin-left: 1em; 
    padding: 0.2em; 
    width: 300px;
}

.infoboxtable td {
    vertical-align: top;
}

.infoboxtable td > div {
    border: 2px solid inherit;
    font-weight: bold;
    padding: 0.5px 7px;
}

.infoboxname {
    background-color: #729fcf;;
    font-size: 110%;
    font-weight: bold;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-bottom: 4px groove #999;
    border-right: 4px groove #999;
}

.infoboxdetails {
    padding: 0;
}


/* Template documentation */
.doc {
    margin: 0 auto 1em;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #bdcac3;
    border-radius: 1em;
    padding: 1em;
}

.doc-header {
    padding-bottom: 3px;
    border-bottom: 1px solid #bdcac3;
    margin-bottom: 1ex;
}

.doc-footer {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #bdcac3;
    border-radius: 1em;
    padding: 1em;
}


/* Navboxes */
.navbox {
	background: #FFF;
	border: 1px solid #CCC;
	margin: 1em auto 0;
	width: 100%;
}

.navbox table {
	background: #FFF;
	margin-left: -4px;
	margin-right: -2px;
}
.navbox table:first-child {
	margin-top: -2px;
}
.navbox table:last-child {
	margin-bottom: -2px;
}

.navbox .navbox-top {
	white-space: nowrap;
	background-color: #CCC;
	padding: 0 3px;
	text-align: center;
}

.navbox-navbar,
.navbox-navbar-mini {
	float: left;
	font-size: 80%;
}

.navbox-title {
	padding: 0 10px;
	font-size: 110%;
}

.navbox th {
	background-color: #EEE;
	padding: 0 10px;
	white-space: nowrap;
	text-align: right;
}

.navbox td {
	width: 100%;
	padding: 0 0 0 2px;
}


/* Horizontal lists */
/* Style for horizontal lists (separator following item).
   source: mediawiki.org/wiki/Snippets/Horizontal_lists
   via [[Wikipedia:Mediawiki:Common.css]]
   revision 8 (2016-05-21)
   author [[Wikipedia:User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li {
    display: none;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) "\a0";
}