Difference between revisions of "MediaWiki:Common.css"

From TSG Doc
Jump to: navigation, search
Line 148: Line 148:
 
     list-style: none none;
 
     list-style: none none;
 
     margin:0;
 
     margin:0;
 +
}
 +
 +
/* Warn Template */
 +
table.ombox {
 +
    margin: 4px 10%;
 +
    border-collapse: collapse;
 +
    border: 1px solid #aaa;
 +
    background: #f9f9f9;
 +
}
 +
table.ombox-content {
 +
    border:1px solid #f28500;
 +
}
 +
td.mbox-image {
 +
    border: none;
 +
    padding: 2px 0 2px 0.9em;
 +
    text-align: center;
 +
}
 +
td.mbox-text {
 +
    border: none;
 +
    padding: 0.25em 0.9em;
 +
    width:100%;
 
}
 
}

Revision as of 10:07, 31 March 2017

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


/* Responsive main page frames */
.mp-frame { 
  width:32%; 
  float:left;
  min-width:240px;
  padding:.3em;
}

@media only screen and (max-width: 950px) {
  .mp-frame {
    width:48%;
  }
}

@media only screen and (max-width: 710px) {
  .mp-frame {
    width:98%;
  }
}

/* Hatnotes for See also template */

div.hatnote {
  padding-left:1.6em;
  margin-bottom:0.5em;
}

.hatnote {
  font-style:italic
}


/* Infobox template style */
.infobox {
    border: 1px solid #aaa;
    border-spacing: 3px;
    background-color: #f9f9f9;
    color: black;
    /* @noflip */
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    /* @noflip */
    text-align: left;
    font-size: 88%;
    line-height: 1.5em;
}
.infobox caption {
    font-size: 125%;
    font-weight: bold;
    padding: 0.2em;
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}

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

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
    border: 0;
    /* @noflip */
    border-right: 1px solid #aaa;
}

/* Normal font styling for table row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row] {
    font-weight: normal;
    /* @noflip */
    text-align: left;
}

/* Prevent line breaks in silly places:
   1) Where desired
   2) Links when we don't want them to
   3) Bold "links" to the page itself
   4) Ref tags with group names <ref group="Note"> --> "[Note 1]" */
.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
sup.reference a {
    white-space: nowrap;
}
/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
    white-space: normal;
}

/* For template documentation */
.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa;
    background-color: #ecfcf4;
    padding: 1em;
}

/* Display tabs with 4 spaces, see [[Phabricator:59824]] and [[Phabricator:59825]] */
div.mw-geshi div,
div.mw-geshi div pre,
span.mw-geshi,
pre.source-css,
pre.source-javascript,
pre.source-lua {
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
}

/* Fix small font size of GeSHi in Firefox. */
div.mw-geshi div,
div.mw-geshi div pre,
span.mw-geshi,
pre.source-css,
pre.source-javascript {
  font-family: monospace, "Courier New" !important;
  font-size:1.0em;
}

/* Fix unbulleted/plain lists */
.plainlist ul {
    list-style: none none;
    margin:0;
}

/* Warn Template */
table.ombox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #aaa;
    background: #f9f9f9;
}
table.ombox-content {
    border:1px solid #f28500;
}
td.mbox-image {
    border: none;
    padding: 2px 0 2px 0.9em;
    text-align: center;
}
td.mbox-text {
    border: none;
    padding: 0.25em 0.9em;
    width:100%;
}