Difference between revisions of "MediaWiki:Common.css"

From Disobiki
Jump to navigation Jump to search
 
(125 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 */
  
#firstHeading {
+
/**
   margin-top: 0.8em; /* google ads buffer */
+
* 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 {
 
.page-Main_Page #firstHeading {
 
   display: none;
 
   display: none;
 
}
 
}
  
table.gallery {
+
/**
  border: 0;
+
* Hatnotes and disambiguation notices per [[wikipedia:MediaWiki:Common.css]].
   width: 100%;
+
*
 +
* Used by [[Template:Index explanation]] and likely others.
 +
*/
 +
.hatnote {
 +
   font-style: italic;
 
}
 
}
 
+
.hatnote i {
table.gallery td .gallerybox {
+
  font-style: normal;
   margin: auto;
+
}
 +
div.hatnote {
 +
  padding-left: 1.6em;
 +
  margin-bottom: 0.5em;
 +
}
 +
div.hatnote + div.hatnote {
 +
   margin-top: -0.5em;
 
}
 
}
  
table.wikitable,
+
/**
table.sortable {
+
* Show and hide text with [[Template:Spoiler]].
   background: #f9f9f9;
+
*/
  border: 1px #aaa solid;
+
.spoiler {
  border-collapse: collapse;
+
   display: inline;
  margin: 1em 1em 1em 0;
 
 
}
 
}
 
+
.spoiler-click {
table.wikitable th,
+
   color: #002BB8;
table.sortable th {
+
   cursor: pointer;
   background: #e9e9e9;
 
  border: 1px solid rgb(196,196,196);
 
   padding: 0.2em;
 
  text-align: center;
 
  vertical-align: top;
 
 
}
 
}
 
+
.spoiler-data {
table.wikitable tr:nth-child(odd),
+
   display: none;
table.sortable tr:nth-child(odd) {
 
   background: #f1f1f1;
 
 
}
 
}
  
table.wikitable tr:nth-child(even),
+
/**
table.sortable tr:nth-child(even) {
+
* Potentially old stuff Morbus still has to revise.
  background: #f9f9f9;
+
*/
 +
.infobox {
 +
background: #eff0ff;
 +
border: 1px solid #b5b7cf;
 +
clear: none;
 +
float: right;
 +
margin: 0 1em 1em 1em;
 +
padding: 0.8em;
 +
text-align: center;
 +
width: 235px;
 
}
 
}
  
table.wikitable tr, table.wikitable td,
+
.infobox .title {
table.sortable tr, table.sortable td {
+
font-size: 125%;
  border: 1px solid rgb(235,235,235);
+
font-weight: bold;
  padding: 0.2em;
+
margin: auto;
  vertical-align: top;
 
 
}
 
}
  
table.wikitable caption,
+
.infobox table {
table.sortable caption {
+
background: transparent;
  font-weight: bold;
+
font-size: 90%;
  margin-left: inherit;
+
width: 100%;
  margin-right: inherit;
 
 
}
 
}
  
table.wikitable code,
+
.infobox table .section {
table.sortable code {
+
background: #ccf;
  background-color: transparent;
 
 
}
 
}
  
.collapseButton {
+
.infobox table .section th {
  float: right;
+
text-align: center !important;
  font-weight: normal;
 
  text-align: right;
 
  width: auto;
 
 
}
 
}
  
.infobox {
+
.infobox table th {
  background: #eff0ff;
+
text-align: left;
  border: 1px solid #b5b7cf;
+
vertical-align: top;
  clear: none;
+
width: 100px;
  float: right;
 
  margin: 0 1em 1em 1em;
 
  padding: 0.8em;
 
  text-align: center;
 
  width: 235px;
 
 
}
 
}
  
.infobox .floatright {
+
.infobox table td {
  margin: 0;
+
text-align: left;
 +
vertical-align: top;
 
}
 
}
  
.infobox .title {
+
.infobox.game.horizontal {
   font-size: 125%;
+
   float: none;
   font-weight: bold;
+
   font-size: 1.4em;
 
   margin: auto;
 
   margin: auto;
 +
  margin-bottom: 0.8em;
 +
  text-align: center;
 +
  width: 96%;
 
}
 
}
  
.infobox table {
+
.infobox.game.horizontal ul {
   background: transparent;
+
   display: inline;
  font-size: 90%;
 
  width: 100%;
 
 
}
 
}
  
.infobox table .section {
+
.infobox.game.horizontal li {
   background: #ccf;
+
   display: inline;
 +
  padding-right: 0.8em;
 
}
 
}
  
.infobox table .section th {
+
table#death-sleaze-index td {
   text-align: center !important;
+
   padding: 0.4em;
 
}
 
}
  
.infobox table th {
+
table#death-sleaze-index .indexed {
   text-align: left;
+
   color: green;
   vertical-align: top;
+
   text-align: center;
  width: 100px;
 
 
}
 
}
  
.infobox table td {
+
table#death-sleaze-index .unindexed {
   text-align: left;
+
   color: red;
   vertical-align: top;
+
   text-align: center;
 
}
 
}
  
 
.pageflipper {
 
.pageflipper {
  margin-top: 2em;
+
margin-top: 2em;
  text-align: center;
+
text-align: center;
 
}
 
}
  
 
.pageflipper .glyph {
 
.pageflipper .glyph {
  font-size: 4em;
+
font-size: 4em;
 
}
 
}
  
 
.pageflipper .glyph a:hover {
 
.pageflipper .glyph a:hover {
  text-decoration: none;
+
text-decoration: none;
 
}
 
}
  
 
.pageflipper .prev {
 
.pageflipper .prev {
  float: left;
+
float: left;
 
}
 
}
  
 
.pageflipper .next {
 
.pageflipper .next {
  float: right;
+
float: right;
 
}
 
}
  
Line 142: Line 152:
 
}
 
}
  
.spoiler {
+
/**
  display: inline;
+
* 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...
 
+
*/
.spoiler-click {
+
.references li {
color: #002BB8;
+
  overflow-wrap: break-word;
cursor: pointer;
+
  word-wrap: break-word;
}​
+
  -ms-word-break: break-all;
 
+
  word-break: break-all;
.spoiler-data {
+
  word-break: break-word;
display: none;
+
  -ms-hyphens: auto;
font-style: italic;
+
  -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;
}