MediaWiki:Common.css: Difference between revisions

From Aquawiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 153: Line 153:
/* Main Wikipedia styles for testing */
/* Main Wikipedia styles for testing */


/* Avoid list items from breaking between columns */
/* Style rules for media list templates */
div.columns li,
div.medialist {
div.columns dd dd {
     min-height: 50px;
     -webkit-column-break-inside: avoid;
    margin: 1em;
     page-break-inside: avoid;
     /* @noflip */
     break-inside: avoid-column;
    background-position: top left;
     background-repeat: no-repeat;
}
}
 
div.medialist ul {
/* Style for [[Template:Flowlist]] that Lets lists flow around floating objecs */
     list-style-type: none;
.flowlist ul {
     list-style-image: none;
     overflow-x: hidden;
    margin-left: 0;
     padding-left: 1.6em;
}
.flowlist ol {
    overflow-x: hidden;
    margin-left: 0;
    padding-left: 3.2em;
}
.flowlist dl {
    overflow-x: hidden;
}
 
/* Style for horizontal lists (separator following item).
  IE8-specific classes are assigned in [[MediaWiki:Common.js/IEFixes.js]].
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
  @revision 6 (2014-05-09)
  @author [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
     margin: 0;
     margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* For IE8 */
.hlist dd.hlist-last-child:after,
.hlist dt.hlist-last-child:after,
.hlist li.hlist-last-child:after {
    content: none;
}
}
/* Add parentheses around nested lists */
div.medialist ul li {
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
     padding-bottom: 0.5em;
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
     content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ") ";
    font-weight: normal;
}
/* For IE8 */
.hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
.hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
.hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after {
    content: ") ";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) " ";
    white-space: nowrap;
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) " ";
}
 
/* Unbulleted lists */
.plainlist ol,
.plainlist ul {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}
}
.plainlist ol li,
div.medialist ul li li {
.plainlist ul li {
     font-size: 91%;
     margin-bottom: 0;
    padding-bottom: 0;
}
}

Latest revision as of 09:21, 12 July 2014

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

body {
  background: #0000D9 url(http://aqua.gjovaag.com/pics/sea.gif) repeat fixed;  
}
#p-personal li {
  color:#ffffff
}
#p-personal li a {
  color:#c8c8ff
}
#p-personal li a:hover {
  background-color:#0000D9;
}
#p-personal a.new {
  color:#ea5f1b
}
#p-personal a.new:visited {
  color:#dc5817
}
#p-navigation h5 {
  color:#c8c8ff
}
#p-aquafacts h5 {
  color:#c8c8ff
}
#p-search h5 {
  color:#c8c8ff
}
#p-tb h5 {
  color:#c8c8ff
}
div.gallerytext {
  overflow: hidden;
  font-size: 75%;
  padding: 2px 4px;
  text-align:center;
}
#piccaption {
  text-align:center;
  font:65% "Trebuchet MS",Verdana,Sans-serif;
  margin:0;
  padding:0;
}
div.thumbcaption {
  text-align:center;
  font:70% "Trebuchet MS",Verdana,Sans-serif;
  margin:0;
  padding:0;
}
#coverimage {
  vertical-align:top;
  text-align:center;
  font:65% "Trebuchet MS",Verdana,Sans-serif;
}

/*
** navbar
*/

#nvbr {
   border: 1px solid #aaa;
   background-color: #dbdeff;
   padding: 0px 5px;
   font-size: 85%;
}

.spoiler {
   border: 1px solid #000000;
   background-color: #ff0000;
   padding: 3px 9px;
   font-size: 125%;
}



/* Infobox template style */

.infobox {
   border: 1px solid #aaaaaa;
   background-color: #f9f9f9;
   color: black;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0.2em;
   float: right;
   clear: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
}
.infobox caption {
   font-size: larger;
   margin-left: inherit;
}
.infobox.bordered {
   border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
   border: 1px solid #aaaaaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}

.infobox.sisterproject {
   width: 20em;
   font-size: 90%;
}

/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
   border: 0;
   border-top: 1px solid #aaaaaa;
   border-right: 1px solid #aaaaaa;
}

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
   border: 0;
   border-right: 1px solid #aaaaaa;
}


/* Single Issue template style */

.singleissue {
   border: 1px solid #aaaaaa;
   background-color: #f9f9f9;
   color: black;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0.2em;
   float: center;
}
.singleissue caption {
  text-align:center;
  font:65% "Trebuchet MS",Verdana,Sans-serif;
  margin:0;
  padding:0;
}
.singleissue td,
.singleissue th {
   vertical-align: top;
}



/* Main Wikipedia styles for testing */

/* Style rules for media list templates */
div.medialist {
    min-height: 50px;
    margin: 1em;
    /* @noflip */
    background-position: top left;
    background-repeat: no-repeat;
}
div.medialist ul {
    list-style-type: none;
    list-style-image: none;
    margin: 0;
}
div.medialist ul li {
    padding-bottom: 0.5em;
}
div.medialist ul li li {
    font-size: 91%;
    padding-bottom: 0;
}