MediaWiki:Gadget-site.css: Difference between revisions

(Created page with "→‎* This is the CSS for all skins (for both mobile and desktop) on MediaWiki.org. * Styling inside .mw-parser-output should generally use TemplateStyles.: @font-face { font-family: 'Francois One'; font-style: normal; font-weight: 400; font-display: swap; src: local('Francois One Regular'), local('FrancoisOne-Regular'), url(https://fonts.gstatic.com/s/francoisone/v14/_Xmr-H4zszafZw3A-KPSZut9wQiR.woff2) format('woff2'); } h1, h2, h3:not(#p-cactions-label), h4,...")
 
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 13: Line 13:
h1, h2, h3:not(#p-cactions-label), h4, h5, h6, #firstHeading {
h1, h2, h3:not(#p-cactions-label), h4, h5, h6, #firstHeading {
font-family: "Francois One",'OpenSansRegular',Tahoma,sans-serif !important;
font-family: "Francois One",'OpenSansRegular',Tahoma,sans-serif !important;
}
#siteNotice {
display: none;
}
/* Hide Main Page title */
.page-Main_Page #firstHeading {
display: none;
}
/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl,
.cargoTable td ul,
.cargoTable td ol,
.cargoTable 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,
.cargoTable.hlist td ul,
.cargoTable.hlist td ol,
.cargoTable.hlist td dl {
text-align: inherit;
}
.cargoTable {
background-color: #f8f9fa;
color: #222;
margin: 1em 0;
border: 1px solid #a2a9b1;
border-collapse: collapse;
}
.cargoTable > tr > th,
.cargoTable > * > tr > th {
background-color: #eaecf0;
text-align: center;
}
.cargoTable > tr > th,
.cargoTable > tr > td,
.cargoTable > * > tr > th,
.cargoTable > * > tr > td {
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em;
}
table.cargoTable.noMerge tr {
background: inherit !important;
}
/** Prevent word wrapping of dates **/
.cargoTable .field_First_date,
.cargoTable .field_Last_date {
white-space: nowrap;
}
/* Since pointer-events isn't allowed in TemplateStyles */
.no-red-links a.new {
pointer-events: none;
}
.no-red-links a.new {
color: inherit !important;
cursor: default;
}
.no-red-links a.new:hover {
text-decoration: none;
}
}

Latest revision as of 21:18, 13 June 2023

/*
 * This is the CSS for all skins (for both mobile and desktop) on MediaWiki.org.
 * Styling inside .mw-parser-output should generally use TemplateStyles.
 */
@font-face {
	font-family: 'Francois One';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local('Francois One Regular'), local('FrancoisOne-Regular'), url(https://fonts.gstatic.com/s/francoisone/v14/_Xmr-H4zszafZw3A-KPSZut9wQiR.woff2) format('woff2');
}

h1, h2, h3:not(#p-cactions-label), h4, h5, h6, #firstHeading {
	font-family: "Francois One",'OpenSansRegular',Tahoma,sans-serif !important;
}

#siteNotice {
	display: none;
}

/* Hide Main Page title */
.page-Main_Page #firstHeading {
	display: none;
}

/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl,
.cargoTable td ul,
.cargoTable td ol,
.cargoTable 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,
.cargoTable.hlist td ul,
.cargoTable.hlist td ol,
.cargoTable.hlist td dl {
	text-align: inherit;
}

.cargoTable {
	background-color: #f8f9fa;
	color: #222;
	margin: 1em 0;
	border: 1px solid #a2a9b1;
	border-collapse: collapse;
}
.cargoTable > tr > th,
.cargoTable > * > tr > th {
	background-color: #eaecf0;
	text-align: center;
}
.cargoTable > tr > th,
.cargoTable > tr > td,
.cargoTable > * > tr > th,
.cargoTable > * > tr > td {
	border: 1px solid #a2a9b1;
	padding: 0.2em 0.4em;
}
table.cargoTable.noMerge tr {
	background: inherit !important;
}
/** Prevent word wrapping of dates **/
.cargoTable .field_First_date,
.cargoTable .field_Last_date {
	white-space: nowrap;
}

/* Since pointer-events isn't allowed in TemplateStyles */
.no-red-links a.new {
	pointer-events: none;
}
.no-red-links a.new {
	color: inherit !important;
	cursor: default;
}
.no-red-links a.new:hover {
	text-decoration: none;
}