Template:Tournament/styles.css: Difference between revisions

>Kypho
No edit summary
Make tournament header render as clear infobox
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
.mw-parser-output .infobox-tournament {
  float: right;
  clear: right;
  width: 22em;
  max-width: 100%;
  margin: 0 0 1em 1.4em;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
}
.mw-parser-output .infobox-tournament .infobox-title {
  background: #cedff2;
  text-align: center;
}
.mw-parser-output .infobox-tournament .infobox-image,
.mw-parser-output .infobox-tournament .infobox-caption,
.mw-parser-output .infobox-tournament td {
  background: #ffffff;
}
.mw-parser-output .infobox-tournament th,
.mw-parser-output .infobox-tournament td {
  border-color: #a2a9b1;
}


/* Float infobox right, Wikipedia style */
.mw-parser-output .infobox-tournament th {
.infobox {
   width: 34%;
   float:right;
  margin:0 0 .8em 1em;
  clear:right;
  font-size:88%;
  line-height:1.5em;
}
}
.mw-parser-output > p:first-of-type {
 
  margin-top:0; /* keep intro tight under title */
@media (max-width: 980px) {
  .mw-parser-output .infobox-tournament {
    float: none;
    width: 100%;
    margin: 0 0 1em;
  }
}
}