Jump to content

MediaWiki:Common.css: Difference between revisions

From Official NixOS Wiki
imported>Samueldr
Fast-tracks new styles via common.css
 
imported>Samueldr
m justified text often breaks in the wiki.
Line 41: Line 41:
h5 { font-size: 1.8rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.8rem; font-style: italic; }
h6 { font-size: 1.8rem; font-style: italic; }
/* Paragraph / text styles */
p {
    text-align: initial;
}

Revision as of 18:53, 10 December 2017

/**
 * Long quotes
 */

blockquote,
blockquote + cite,
blockquote + p cite {
	padding: 1ex 1em;
	font-size: inherit;
	margin: 0;
	margin-bottom: 1em;
	border-left: 1ex solid #eee;
}
blockquote + cite,
blockquote + p cite {
	display: block;
	margin: 0;
	margin-top: -1em;
	font-size: inherit;
	padding-top: 1em;
}
blockquote + cite::before,
blockquote + p cite::before {
	content: "— ";
	display: inline;
}

/* References */
ol.references li:target, sup.reference:target {
	background: transparent;
}
ol.references li:target *, sup.reference:target * {
    background-color: #def;
    background-color: rgba( 0,127,255,0.133 );
}

h1 { font-size: 4rem; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.6rem; }
h4 { font-size: 2.1rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.8rem; font-style: italic; }

/* Paragraph / text styles */
p {
    text-align: initial;
}