Difference between revisions of "MediaWiki:Common.css"

From Disobiki
Jump to navigation Jump to search
 
(188 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
  
#content {
+
/**
   font-family: Georgia, serif;
+
* Make all blockquotes look prettier, beholder.
 +
*/
 +
blockquote {
 +
  background-color: #eee;
 +
   border-left: 3px solid #ccc;
 +
  padding: 0.5em 1em;
 
}
 
}
  
/* ns-0 is the main namespace only */
+
/**
.ns-0 #bodyContent {
+
* Hide the heading on the Main Page.
   font-size: 115%;
+
*/
 +
.page-Main_Page #firstHeading {
 +
   display: none;
 
}
 
}
  
.ns-0 #bodyContent p+p {
+
/**
   text-indent: 2.5em;
+
* Hatnotes and disambiguation notices per [[wikipedia:MediaWiki:Common.css]].
 +
*
 +
* Used by [[Template:Index explanation]] and likely others.
 +
*/
 +
.hatnote {
 +
  font-style: italic;
 +
}
 +
.hatnote i {
 +
  font-style: normal;
 +
}
 +
div.hatnote {
 +
  padding-left: 1.6em;
 +
  margin-bottom: 0.5em;
 +
}
 +
div.hatnote + div.hatnote {
 +
   margin-top: -0.5em;
 
}
 
}
  
.ns-0 #bodyContent div p {
+
/**
   text-indent: 0;
+
* Show and hide text with [[Template:Spoiler]].
 +
*/
 +
.spoiler {
 +
  display: inline;
 +
}
 +
.spoiler-click {
 +
  color: #002BB8;
 +
  cursor: pointer;
 +
}
 +
.spoiler-data {
 +
   display: none;
 
}
 
}
  
 +
/**
 +
* Potentially old stuff Morbus still has to revise.
 +
*/
 
.infobox {
 
.infobox {
  background-color: #f9f9f9;
+
background: #eff0ff;
  border: 1px solid #aaa;
+
border: 1px solid #b5b7cf;
  clear: right;
+
clear: none;
  color: #000;
+
float: right;
   float: right;
+
margin: 0 1em 1em 1em;
   margin-bottom: 0.5em;
+
padding: 0.8em;
   margin-left: 1em;
+
text-align: center;
   padding: 0.6em;
+
width: 235px;
 +
}
 +
 
 +
.infobox .title {
 +
font-size: 125%;
 +
font-weight: bold;
 +
margin: auto;
 +
}
 +
 
 +
.infobox table {
 +
background: transparent;
 +
font-size: 90%;
 +
width: 100%;
 +
}
 +
 
 +
.infobox table .section {
 +
background: #ccf;
 +
}
 +
 
 +
.infobox table .section th {
 +
text-align: center !important;
 +
}
 +
 
 +
.infobox table th {
 +
text-align: left;
 +
vertical-align: top;
 +
width: 100px;
 +
}
 +
 
 +
.infobox table td {
 +
text-align: left;
 +
vertical-align: top;
 +
}
 +
 
 +
.infobox.game.horizontal {
 +
   float: none;
 +
  font-size: 1.4em;
 +
  margin: auto;
 +
   margin-bottom: 0.8em;
 +
   text-align: center;
 +
  width: 96%;
 +
}
 +
 
 +
.infobox.game.horizontal ul {
 +
  display: inline;
 +
}
 +
 
 +
.infobox.game.horizontal li {
 +
  display: inline;
 +
   padding-right: 0.8em;
 
}
 
}
  
.infobox td,
+
table#death-sleaze-index td {
.infobox th {
+
   padding: 0.4em;
   vertical-align: top;
 
 
}
 
}
  
table.wikitable {
+
table#death-sleaze-index .indexed {
   background: #f9f9f9;
+
   color: green;
   border: 1px #aaa solid;
+
   text-align: center;
  border-collapse: collapse;
 
  margin: 1em 1em 1em 0;
 
 
}
 
}
  
table.wikitable th {
+
table#death-sleaze-index .unindexed {
   background: rgb(248,248,248);
+
   color: red;
  border: 1px solid rgb(196,196,196);
 
  padding: 0.2em;
 
 
   text-align: center;
 
   text-align: center;
  vertical-align: top;
 
 
}
 
}
  
table.wikitable tr, table.wikitable td {
+
.pageflipper {
  border: 1px solid rgb(235,235,235);
+
margin-top: 2em;
  padding: 0.2em;
+
text-align: center;
  vertical-align: top;
 
 
}
 
}
  
table.wikitable caption {
+
.pageflipper .glyph {
  font-weight: bold;
+
font-size: 4em;
  margin-left: inherit;
 
  margin-right: inherit;
 
 
}
 
}
  
table.wikitable code {
+
.pageflipper .glyph a:hover {
  background-color: transparent;
+
text-decoration: none;
 
}
 
}
  
tr.even {
+
.pageflipper .prev {
  background-color: #edf3fe;
+
float: left;
 
}
 
}
  
#footer {
+
.pageflipper .next {
  height: 26px;
+
float: right;
 
}
 
}
  
#footer ul {
+
.references-small {
  margin-top: 0.8em;
+
font-size: 75%;
 
}
 
}
  
#footer img {
+
/**
   margin-top: 4px;
+
* cf. https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
 +
* and my refusal to stray from MLA URL display TOO much (yeah, I kept the protocols in, but...
 +
*/
 +
.references li {
 +
   overflow-wrap: break-word;
 +
  word-wrap: break-word;
 +
  -ms-word-break: break-all;
 +
  word-break: break-all;
 +
  word-break: break-word;
 +
  -ms-hyphens: auto;
 +
  -moz-hyphens: auto;
 +
  -webkit-hyphens: auto;
 +
  hyphens: auto;
 
}
 
}

Latest revision as of 13:27, 15 November 2018

/* CSS placed here will be applied to all skins */

/**
 * Make all blockquotes look prettier, beholder.
 */
blockquote {
  background-color: #eee;
  border-left: 3px solid #ccc;
  padding: 0.5em 1em;
}

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

/**
 * Hatnotes and disambiguation notices per [[wikipedia:MediaWiki:Common.css]].
 *
 * Used by [[Template:Index explanation]] and likely others.
 */
.hatnote {
  font-style: italic;
}
.hatnote i {
  font-style: normal;
}
div.hatnote {
  padding-left: 1.6em;
  margin-bottom: 0.5em;
}
div.hatnote + div.hatnote {
  margin-top: -0.5em;
}

/**
 * Show and hide text with [[Template:Spoiler]].
 */
.spoiler {
  display: inline;
}
.spoiler-click {
  color: #002BB8;
  cursor: pointer;
}
.spoiler-data {
  display: none;
}

/**
 * Potentially old stuff Morbus still has to revise.
 */
.infobox {
 background: #eff0ff;
 border: 1px solid #b5b7cf;
 clear: none;
 float: right;
 margin: 0 1em 1em 1em;
 padding: 0.8em;
 text-align: center;
 width: 235px;
}

.infobox .title {
 font-size: 125%;
 font-weight: bold;
 margin: auto;
}

.infobox table {
 background: transparent;
 font-size: 90%;
 width: 100%;
}

.infobox table .section {
 background: #ccf;
}

.infobox table .section th {
 text-align: center !important;
}

.infobox table th {
 text-align: left;
 vertical-align: top;
 width: 100px;
}

.infobox table td {
 text-align: left;
 vertical-align: top;
}

.infobox.game.horizontal {
  float: none;
  font-size: 1.4em;
  margin: auto;
  margin-bottom: 0.8em;
  text-align: center;
  width: 96%;
}

.infobox.game.horizontal ul {
  display: inline;
}

.infobox.game.horizontal li {
  display: inline;
  padding-right: 0.8em;
}

table#death-sleaze-index td {
  padding: 0.4em;
}

table#death-sleaze-index .indexed {
  color: green;
  text-align: center;
}

table#death-sleaze-index .unindexed {
  color: red;
  text-align: center;
}

.pageflipper {
 margin-top: 2em;
 text-align: center;
}

.pageflipper .glyph {
 font-size: 4em;
}

.pageflipper .glyph a:hover {
 text-decoration: none;
}

.pageflipper .prev {
 float: left;
}

.pageflipper .next {
 float: right;
}

.references-small {
 font-size: 75%;
}

/**
 * cf. https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
 * and my refusal to stray from MLA URL display TOO much (yeah, I kept the protocols in, but...
 */
.references li {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}