Difference between revisions of "MediaWiki:Common.css"

From Disobiki
Jump to navigation Jump to search
 
(67 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, #firstHeading {
+
/**
padding-top: 0.4em; /* 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.wikitable,
+
/**
table.sortable {
+
* Hatnotes and disambiguation notices per [[wikipedia:MediaWiki:Common.css]].
  background: #f9f9f9;
+
  *
  border: 1px #aaa solid;
+
  * Used by [[Template:Index explanation]] and likely others.
  border-collapse: collapse;
+
  */
margin: 1em 1em 1em 0;
+
.hatnote {
 +
  font-style: italic;
 
}
 
}
 
+
.hatnote i {
table.wikitable th,
+
  font-style: normal;
table.sortable th {
 
background: #d9d9d9;
 
border: 1px solid rgb(196,196,196);
 
padding: 0.2em;
 
text-align: center;
 
vertical-align: top;
 
 
}
 
}
 
+
div.hatnote {
table.wikitable tr:nth-child(even),
+
  padding-left: 1.6em;
table.sortable tr:nth-child(even),
+
  margin-bottom: 0.5em;
div.achievement:nth-child(even) {
 
background: #e3e3e3;
 
 
}
 
}
 
+
div.hatnote + div.hatnote {
table.wikitable tr:nth-child(odd),
+
  margin-top: -0.5em;
table.sortable tr:nth-child(odd),
 
div.achievement:nth-child(odd) {
 
background: #f2f2f2;
 
 
}
 
}
  
table.wikitable tr, table.wikitable td,
+
/**
table.sortable tr, table.sortable td {
+
* Show and hide text with [[Template:Spoiler]].
  border: 1px solid rgb(235,235,235);
+
  */
padding: 0.2em;
+
.spoiler {
vertical-align: top;
+
  display: inline;
 
}
 
}
 
+
.spoiler-click {
table.wikitable caption,
+
  color: #002BB8;
table.sortable caption {
+
  cursor: pointer;
font-weight: bold;
 
margin-left: inherit;
 
margin-right: inherit;
 
 
}
 
}
 
+
.spoiler-data {
table.wikitable code,
+
   display: none;
table.sortable code {
 
background-color: transparent;
 
}
 
 
 
table#death-sleaze-index td {
 
  padding: 0.4em;
 
}
 
 
 
table#death-sleaze-index img {
 
  border: 1px solid #000;
 
}
 
 
 
table#death-sleaze-index .indexed {
 
  color: green;
 
  text-align: right;
 
}
 
 
 
table#death-sleaze-index .unindexed {
 
   color: red;
 
  text-align: right;
 
}
 
 
 
table#game-center-achievements td {
 
text-align: center;
 
}
 
 
 
table#game-center-achievements .name {
 
text-align: left;
 
}
 
 
 
table#game-center-achievements .link {
 
width: 50px;
 
}
 
 
 
table#game-center-achievements .count {
 
width: 115px;
 
}
 
 
 
table#game-center-achievements .points {
 
width: 70px;
 
}
 
 
 
table#game-center-achievements .rating {
 
width: 115px;
 
}
 
 
 
.collapseButton {
 
float: right;
 
font-weight: normal;
 
text-align: right;
 
width: auto;
 
 
}
 
}
  
 +
/**
 +
* Potentially old stuff Morbus still has to revise.
 +
*/
 
.infobox {
 
.infobox {
 
  background: #eff0ff;
 
  background: #eff0ff;
Line 148: Line 95:
 
}
 
}
  
div.achievement {
+
.infobox.game.horizontal {
border: 1px solid rgb(235,235,235);
+
  float: none;
margin: 0.2em 1.5em;
+
  font-size: 1.4em;
padding: 0.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;
 
}
 
}
  
div.achievement .achievement-row {
+
table#death-sleaze-index td {
clear: both;
+
  padding: 0.4em;
 
}
 
}
  
div.achievement .achievement-name {
+
table#death-sleaze-index .indexed {
float: left;
+
  color: green;
font-weight: bold;
+
  text-align: center;
 
}
 
}
  
div.achievement .achievement-points {
+
table#death-sleaze-index .unindexed {
float: right;
+
  color: red;
font-weight: bold;
+
  text-align: center;
 
}
 
}
  
Line 193: 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-data {
+
.references li {
display: none;
+
  overflow-wrap: break-word;
font-style: italic;
+
  word-wrap: break-word;
}
+
  -ms-word-break: break-all;
 
+
  word-break: break-all;
.spoiler-click {
+
  word-break: break-word;
color: #002BB8;
+
  -ms-hyphens: auto;
cursor: pointer;
+
  -moz-hyphens: auto;
}
+
  -webkit-hyphens: auto;
 
+
  hyphens: auto;
#footer-icon-poweredby {
 
display: none;
 
 
}
 
}

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;
}