Jump to content

MediaWiki:Common.css: Difference between revisions

From Bradshaw, the companion guide to On Our Lines
m CSS for tables
rv, come back when im not half asleep
Tag: Undo
 
(24 intermediate revisions by the same user not shown)
Line 6: Line 6:


#content h1,  
#content h1,  
#content h2 {
#content h2{
font-family: neo-sans, sans-serif;
font-family: neo-sans, sans-serif;
font-weight: 700;
font-weight: 700;
}
@media screen {
.vector-sticky-header-context-bar-primary {
    overflow: hidden;
font-family: neo-sans, sans-serif;
    font-size: 1.5em;
    text-overflow: ellipsis;
    }
}
}


Line 16: Line 25:
     font-style: italic;
     font-style: italic;
     font-family: 12px;
     font-family: 12px;
    font-size: 92%;
}
#contentSub2:empty {
display: none;
}
.mw-body .mw-indicators {
padding-top: 0.4em;
}
}


Line 49: Line 67:
}
}


.infobox.bordered {
/* Unbulleted lists */
border-collapse: collapse;
.plainlist ol,
.plainlist ul {
line-height: inherit;
list-style: none none;
margin: 0;
}
 
.plainlist ol li,
.plainlist ul li {
margin-bottom: 0;
}
 
/* Normal font styling for wikitable row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row] {
font-weight: normal;
/* @noflip */
text-align: left;
}
 
/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
/* @noflip */
text-align: left;
}
}


.infobox.bordered td,
/* ...unless they also use the hlist class */
.infobox.bordered th {
.toc.hlist ul,
#toc.hlist ul,
.wikitable.hlist td ul,
.wikitable.hlist td ol,
.wikitable.hlist td dl {
text-align: inherit;
}
 
/* Default style for navigation boxes */
.navbox {                     /* Navbox container style */
box-sizing: border-box;
border: 1px solid #a2a9b1;
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 .navbox {
margin-top: 0;            /* No top margin for nested navboxes */
}
}


.infobox.bordered .borderless td,
.navbox + .navbox {
.infobox.bordered .borderless th {
margin-top: -1px;         /* Single pixel border between adjacent navboxes */
border: 0;
}
}


.infobox.sisterproject {
.navbox-inner,
width: 20em;
.navbox-subgroup {
font-size: 90%;
width: 100%;
}
}


/* styles for bordered infobox with merged rows */
.navbox-group,
.infobox.bordered .mergedtoprow td,
.navbox-title,
.infobox.bordered .mergedtoprow th {
.navbox-abovebelow {
border: 0;
padding: 0.25em 1em;      /* Title, group and above/below styles */
border-top: 1px solid #a2a9b1;
line-height: 1.5em;
text-align: center;
}
 
th.navbox-group {            /* Group style */
white-space: nowrap;
/* @noflip */
/* @noflip */
border-right: 1px solid #a2a9b1;
text-align: right;
}
}


.infobox.bordered .mergedrow td,
.navbox,
.infobox.bordered .mergedrow th {
.navbox-subgroup {
border: 0;
background-color: #fdfdfd; /* Background color */
/* @noflip */
}
border-right: 1px solid #a2a9b1;
 
.navbox-list {
line-height: 1.5em;
border-color: #fdfdfd;    /* Must match background color */
}
 
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {   /* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* Must match background color */
}
 
.navbox th,
.navbox-title {
background-color: #ccccff;     /* Level 1 color */
}
}


/* Styles for geography infoboxes, eg countries,
.navbox-abovebelow,
  country subdivisions, cities, etc.            */
th.navbox-group,
.infobox.geography {
.navbox-subgroup .navbox-title {
border-collapse: collapse;
background-color: #ddddff;     /* Level 2 color */
line-height: 1.2em;
font-size: 90%;
}
}


.infobox.geography  td,
.navbox-subgroup .navbox-group,
.infobox.geography  th {
.navbox-subgroup .navbox-abovebelow {
border-top: 1px solid #a2a9b1;
background-color: #e6e6ff;     /* Level 3 color */
padding: 0.4em 0.6em 0.4em 0.6em;
}
}


.infobox.geography .mergedtoprow td,
.navbox-even {
.infobox.geography .mergedtoprow th {
background-color: #f7f7f7;     /* Even row striping */
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 0.6em;
}
}


.infobox.geography .mergedrow td,
.navbox-odd {
.infobox.geography .mergedrow th {
background-color: transparent; /* Odd row striping */
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
}


.infobox.geography .mergedbottomrow td,
.navbox .hlist td dl,
.infobox.geography .mergedbottomrow th {
.navbox .hlist td ol,
border-top: 0;
.navbox .hlist td ul,
border-bottom: 1px solid #a2a9b1;
.navbox td.hlist dl,
padding: 0 0.6em 0.4em 0.6em;
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}
}


.infobox.geography .maptable td,
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.infobox.geography .maptable th {
.mw-parser-output .mw-collapsible-toggle {
border: 0;
font-weight: normal;
/* @noflip */
text-align: right;
padding-right: 0.2em;
padding-left: 0.2em;
}
 
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
}
 
/* Style for horizontal lists (separator following item).
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
  @revision 8 (2016-05-21)
  @author [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
padding: 0;
}
}


/* Unbulleted lists */
/* Display list items inline */
.plainlist ol,
.hlist dd,
.plainlist ul {
.hlist dt,
line-height: inherit;
.hlist li {
list-style: none none;
margin: 0;
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: ": ";
}
/**
* Note hlist style usage differs in Minerva and is defined in core as well!
* Please check Minerva desktop (and Minerva.css) when changing
* See https://phabricator.wikimedia.org/T213239
*/
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
}


.plainlist ol li,
.hlist dd:last-child:after,
.plainlist ul li {
.hlist dt:last-child:after,
margin-bottom: 0;
.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;
}
}


/* Normal font styling for wikitable row headers with scope="row" tag */
.hlist dd dd:last-child:after,
.wikitable.plainrowheaders th[scope=row] {
.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;
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";
}
/*Makes the sign up Captcha clearer */
.htmlform-tip + .mw-htmlform-field-HTMLInfoField {
padding-top:15px;
margin-bottom:0px;
}
.mw-input {
padding-top: 10px;
    font-weight: bold;
}
/* Hatnotes and disambiguation notices */
.hatnote {
font-style: italic;
}
.hatnote i {
font-style: normal;
}
div.hatnote {
/* @noflip */
/* @noflip */
text-align: left;
padding-left: 1.6em;
margin-bottom: 0.5em;
}
 
div.hatnote + div.hatnote {
margin-top: -0.5em;
}
 
.hub-column-left {
float: left;
width: 50%;
}
 
.hub-column-right {
float: right;
width: 49%;
}
 
.hub-column-left-wide {
float: left;
width: 60%;
}
 
.hub-column-left-narrow {
float: left;
width: 39%;
}
 
.hub-column-right-wide {
float: right;
width: 60%;
}
 
.hub-column-right-narrow {
float: right;
width: 39%;
}
}


/* Lists in wikitable data cells are always left-aligned */
.hub-column-left-extra-wide {
.wikitable td ul,
float: left;
.wikitable td ol,
width: 70%;
.wikitable td dl {
}
/* @noflip */
.hub-column-right-extra-narrow {
text-align: left;
float: right;
width: 29%;
}
@media only screen and (max-width: 800px) {
/* Decouple the columns on narrow screens */
.hub-column-left,
.hub-column-right,
.hub-column-left-wide,
.hub-column-right-wide,
.hub-column-left-narrow,
.hub-column-right-narrow,
.hub-column-left-extra-wide,
.hub-column-right-extra-narrow {
float: inherit;
width: inherit;
}
}
}


/* ...unless they also use the hlist class */
#footer-places-disclaimers {
.toc.hlist ul,
display: none;
#toc.hlist ul,
.wikitable.hlist td ul,
.wikitable.hlist td ol,
.wikitable.hlist td dl {
text-align: inherit;
}
}

Latest revision as of 03:08, 12 February 2024

@import url("https://use.typekit.net/jud1xfe.css");

body {
	font-family: neo-sans, sans-serif;
}

#content h1, 
#content h2{
	font-family: neo-sans, sans-serif;
	font-weight: 700;
}

@media screen {
	.vector-sticky-header-context-bar-primary {
    	overflow: hidden;
		font-family: neo-sans, sans-serif;
    	font-size: 1.5em;
    	text-overflow: ellipsis;
    }
}

/* Display Tagline */
#siteSub {
    display: block;
    font-style: italic;
    font-family: 12px;
    font-size: 92%;
}

#contentSub2:empty {
	display: none;
}

.mw-body .mw-indicators {
	padding-top: 0.4em;
}

/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
}

.infobox caption {
	font-size: 125%;
	font-weight: bold;
	padding: 0.2em;
	text-align: center;
}

.infobox td,
.infobox th {
	vertical-align: top;
	/* @noflip */
	text-align: left;
}

/* Unbulleted lists */
.plainlist ol,
.plainlist ul {
	line-height: inherit;
	list-style: none none;
	margin: 0;
}

.plainlist ol li,
.plainlist ul li {
	margin-bottom: 0;
}

/* Normal font styling for wikitable row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row] {
	font-weight: normal;
	/* @noflip */
	text-align: left;
}

/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
	/* @noflip */
	text-align: left;
}

/* ...unless they also use the hlist class */
.toc.hlist ul,
#toc.hlist ul,
.wikitable.hlist td ul,
.wikitable.hlist td ol,
.wikitable.hlist td dl {
	text-align: inherit;
}

/* Default style for navigation boxes */
.navbox {                     /* 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 .navbox {
	margin-top: 0;            /* No top margin for nested navboxes */
}

.navbox + .navbox {
	margin-top: -1px;         /* Single pixel border between adjacent navboxes */
}

.navbox-inner,
.navbox-subgroup {
	width: 100%;
}

.navbox-group,
.navbox-title,
.navbox-abovebelow {
	padding: 0.25em 1em;      /* Title, group and above/below styles */
	line-height: 1.5em;
	text-align: center;
}

th.navbox-group {             /* Group style */
	white-space: nowrap;
	/* @noflip */
	text-align: right;
}

.navbox,
.navbox-subgroup {
	background-color: #fdfdfd; /* Background color */
}

.navbox-list {
	line-height: 1.5em;
	border-color: #fdfdfd;    /* Must match background color */
}

/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {    /* Borders above 2nd, 3rd, etc. rows */
	border-top: 2px solid #fdfdfd; /* Must match background color */
}

.navbox th,
.navbox-title {
	background-color: #ccccff;      /* Level 1 color */
}

.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
	background-color: #ddddff;      /* Level 2 color */
}

.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
	background-color: #e6e6ff;      /* Level 3 color */
}

.navbox-even {
	background-color: #f7f7f7;      /* Even row striping */
}

.navbox-odd {
	background-color: transparent;  /* Odd row striping */
}

.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
	padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}

/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
	font-weight: normal;
	/* @noflip */
	text-align: right;
	padding-right: 0.2em;
	padding-left: 0.2em;
}

.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
	/* @noflip */
	float: left;
	/* @noflip */
	text-align: left;
}

/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 8 (2016-05-21)
   @author [[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: ": ";
}

/**
 * Note hlist style usage differs in Minerva and is defined in core as well!
 * Please check Minerva desktop (and Minerva.css) when changing
 * See https://phabricator.wikimedia.org/T213239
 */
.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";
}

/*Makes the sign up Captcha clearer */
.htmlform-tip + .mw-htmlform-field-HTMLInfoField {
	padding-top:15px;
	margin-bottom:0px;
}

.mw-input {
	padding-top: 10px;
    font-weight: bold;
}

/* 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;
}

.hub-column-left {
	float: left;
	width: 50%;
}

.hub-column-right {
	float: right;
	width: 49%;
}

.hub-column-left-wide {
	float: left;
	width: 60%;
}

.hub-column-left-narrow {
	float: left;
	width: 39%;
}

.hub-column-right-wide {
	float: right;
	width: 60%;
}

.hub-column-right-narrow {
	float: right;
	width: 39%;
}

.hub-column-left-extra-wide {
	float: left;
	width: 70%;
}
.hub-column-right-extra-narrow {
	float: right;
	width: 29%;
}
@media only screen and (max-width: 800px) {
	/* Decouple the columns on narrow screens */
	.hub-column-left,
	.hub-column-right,
	.hub-column-left-wide,
	.hub-column-right-wide,
	.hub-column-left-narrow,
	.hub-column-right-narrow,
	.hub-column-left-extra-wide,
	.hub-column-right-extra-narrow {
		float: inherit;
		width: inherit;
	}
}

#footer-places-disclaimers {
	display: none;
}
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.