Jump to content

MediaWiki:Common.css

From Wikisource

Note: After publishing, 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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */

.hiddenStructure {
	display:none !important;
}

/* Quality */

.quality4 {
	background-color: #90ff90;
	color: #202122;
}

.quality3 {
	background-color: #ffe867;
	color: #202122;
}

.quality2 {
	background-color: #b0b0ff;
	color: #202122;
}

.quality1 {
	background-color: #ffa0a0;
	color: #202122;
}

.quality0 {
	background-color: #ddd;
	color: #202122;
}

/* adapting poem, from it.wikisource, request Candalua */

.poem { 
	margin-bottom: 0em; 
	margin-top: 0em; 
}
.poem p { 
	margin-top: 0em ! important; 
	margin-bottom: 0em ! important; 
        text-indent: 0em ! important;
}

/* class text (from fr.wp) */
 
.text {
  max-width: 36em;
  text-align: justify;
  margin:0px auto;
}
.text p {
  text-indent: 2em;
}
.text pre {
  background-color: #ffffff;
  font-family: sans-serif;
  line-height: 150%;
  border: 0px;
  padding-left: 2em;
  margin: 0;
  white-space: pre;
}

/* --- NAMESPACE PAGE --- */
 
.pagetext {
  max-width: 36em;
  text-align: justify;
}
.pagetext p {
  text-indent: 2em
}
.tiInherit p {
 text-indent:inherit;
}
.pagetext blockquote {
  margin: 0.5em 0em;
}


/* for "human" text size on <pre> boxes */
pre {
        font-size:0.8pc
}

/* *********
 * Main page
 */
body.page-Main_Page .firstHeading,
body.page-Main_Page #siteSub
{
 display: none;
}
div.main_page
{
 position: static;
}
/* some new stuff for styling the main page header */
table.tblMain_page_header
{
 margin: 0 0 1em 0;
 /* border and background-color properties set in shared rules; see further down */
 width: 100%;
}
table.tblMain_page_header h1,
table.tblMain_page_header h2
{
 margin: 0 !important; /* insist on overriding #bodyContent h1 selector in main.css */
 border: 0;
 padding: 0;
}
table.tblMain_page_header div.divMPheading_wrapper
{
 float: left;
 padding-right: 7em;
}
table.tblMain_page_header h1
{
 font-size: 150%;
 padding-bottom: 0.15em;
}
table.tblMain_page_header h2
{
 font-size: 90%;
}
table.tblMain_page_header ul
{
 margin: 0; /* override margin-top to better align with h1-element; margin-left isn't applicable in this context */
}
table.tblMain_page_header hr
{
 color: #569BBB;
 background-color: #569BBB;
}
/* may want to loosen specificity a bit... and rename. more likely, it'll become floats... */
div.main_page table.subheader
{
 width: 100%;
 margin: -0.8em 0 -0.7em 0;
 background: none;
 font-size: 0.95em;
}
div.main_page table.subheader td
{
 padding: 10px 0;
}

/* header templates */

table.headertemplate {width:100%; border:1px solid #ADA; background:#E4F2E4; text-align:center; font-size:0.9em;}
.headertemplate .header_backlink, .headertemplate .header_forelink {width:20%; font-size:0.9em;} 
.header_notes {width:100%; border-bottom:1px solid #A88; background:#FAFAFF; font-size:0.9em;}
.headertemplate .header_title {width: 60%; }
.headertemplate .header_backlink {text-align:left; }
.headertemplate .header_forelink {text-align:right; }

/* T156351: Support for Parsoid's Cite implementation */
.mw-ref > a[data-mw-group=lower-alpha]::after {
    content: '[' counter( mw-Ref, lower-alpha ) ']';
}