Difference between revisions of "MediaWiki:Common.css"

From comp.tf
Jump to navigation Jump to search
(Bracket CSS)
Line 53: Line 53:
 
.maploc div.container div.marker div { width: 160px; height: 20px; position: relative; top: -25px; left: -69px; background: linear-gradient( to bottom, white, #eee ); box-shadow: 0px 5px 5px rgba(0,0,0,0.5); text-align: center; font-size: small; border-radius: 10px; display: none; }
 
.maploc div.container div.marker div { width: 160px; height: 20px; position: relative; top: -25px; left: -69px; background: linear-gradient( to bottom, white, #eee ); box-shadow: 0px 5px 5px rgba(0,0,0,0.5); text-align: center; font-size: small; border-radius: 10px; display: none; }
 
.maploc div.container div.marker:hover div { display: block; z-index: 1; }
 
.maploc div.container div.marker:hover div { display: block; z-index: 1; }
 +
 +
/* Brackets */
 +
.bracket {
 +
font-size: 11px;
 +
background: white;
 +
}
 +
 +
.bracket-column {
 +
float: left;
 +
position: relative;
 +
}
 +
 +
.bracket-header {
 +
border-radius: 2px;
 +
border: 1px solid #aaa;
 +
padding: 2px 0 2px 0;
 +
position: relative;
 +
left: 0;
 +
right: 0;
 +
line-height:18px;
 +
margin-bottom: 20px;
 +
text-align: center;
 +
background: #ebebeb;
 +
}
 +
 +
.bracket-cell-r1 {
 +
height: 36px;
 +
}
 +
.bracket-cell-r2 {
 +
height: 72px;
 +
}
 +
.bracket-cell-r3 {
 +
height: 144px;
 +
}
 +
.bracket-cell-r4 {
 +
height: 288px;
 +
}
 +
.bracket-cell-r5 {
 +
height: 576px;
 +
}
 +
.bracket-cell-r6 {
 +
height: 1152px;
 +
}
 +
.bracket-cell-r7 {
 +
height: 2304px;
 +
}
 +
.bracket-cell-r1, .bracket-cell-r2, .bracket-cell-r3, .bracket-cell-r4, .bracket-cell-r5, .bracket-cell-r6, .bracket-cell-r7 {
 +
position: relative;
 +
}
 +
.bracket-team-top, .bracket-team-bottom, .bracket-player-top, .bracket-player-bottom {
 +
    border-radius:0 0 2px 2px;
 +
    border:solid #aaa 1px;
 +
    position:absolute;
 +
    padding: 1px;
 +
    min-height:20px;
 +
    line-height:18px;
 +
    background: #f2f2f2;
 +
    left:0;
 +
    right:0;
 +
}
 +
.bracket-team-top, .bracket-player-top {
 +
    bottom:0;
 +
    border-radius:2px 2px 0 0;
 +
}
 +
.bracket-score {
 +
    text-align:center;
 +
    background:#ebebeb;
 +
    border-left:1px solid #aaa;
 +
    position:absolute;
 +
    line-height:22px;
 +
    right:0;
 +
    top:0;
 +
    bottom:0;
 +
}
 +
.bracket-team-bottom .bracket-score, .bracket-player-bottom .bracket-score {
 +
    border-bottom-right-radius: 2px;
 +
}
 +
.bracket-team-top .bracket-score, .bracket-player-bottom .bracket-score {
 +
    border-top-right-radius: 2px;
 +
}
 +
.bracket-hover {
 +
    -moz-box-shadow: 0 0 2px #000;
 +
    -webkit-box-shadow: 0 0 2px #000;
 +
    box-shadow: 0 0 2px #000;
 +
    border-color: #000;
 +
}
 +
.bracket-game-details {
 +
    z-index:100;
 +
    width:200px;
 +
    padding: 2px 0px;
 +
    position:absolute;
 +
    display: none;
 +
    text-align:center;
 +
    border:1px solid #aaa;
 +
    background: rgba(242, 242, 242, 0.9);
 +
    border-radius: 5px 5px 5px 5px;
 +
    box-shadow: 4px 4px 6px #BBBBBB;
 +
}
 +
.bracket-game-details .to-anchor {
 +
    display: none;
 +
}
 +
.bracket-icons {
 +
    border-top: 1px solid #aaa;
 +
}
 +
.bracket-game .icon {
 +
    height: 12px;
 +
    width: 12px;
 +
    background: url(http://wiki.teamliquid.net/starcraft/images2/c/c5/Bracketinfoicon.png) no-repeat transparent;
 +
    z-index: 50;
 +
    top: 50%;
 +
    margin-top: -6px;
 +
    left: 122px;
 +
    position: absolute;
 +
    display:none;
 +
}
 +
 +
.bracket-game {
 +
    position: relative;
 +
}
  
 
/* Overrides */
 
/* Overrides */

Revision as of 16:45, 1 August 2013

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

/* Global styles */
.centered { text-align: center; }
.clearfix { clear: both; }

/* Infobox styles */
.infobox { float: right; width: 24em; font-size: 88%; background: #f9f9f9; border: 1px solid #ccc; margin: 5px; }
.infobox th { background: #d9d9d9; font-size: small; }

/* Main page styles */
.mainpage { width: 100%; margin-bottom: 0px; border: 1px solid #ccc; background: #f9f9f9; border-collapse: collapse; }
.mainpage th { font-size:85%; text-align: center; background-color: #1c1c1c; color: #ffffff; }
.mainpage td { text-align: center; }
.mainpage td.col2 { background: #fdfdfd; }
.mainpage tr.top td { vertical-align: top; }
.mainpage tr.bold td { font-weight: bold; }
.mainpage tr.maps td { width: 14.2%; }

/* Ambox styles */
.ambox { margin: 0px 10%; border: 1px solid #aaa; background: #fbfbfb; }
.ambox td.notice  { border-left: 10px solid #1e90ff; }
.ambox td.style   { border-left: 10px solid #ffcc00; }
.ambox td.content { border-left: 10px solid #f28500; }
.ambox td.delete  { border-left: 10px solid #b22222; }
.ambox td.default { border-left: 10px solid #000000; }
.ambox td.image   { padding: 0 0.5em }
.ambox td.message { width: 100%; }
.ambox .smalltext { font-size: 95%; }

/* League table styles */
tr.first td { background: #ffd739; }
tr.second td { background: #bebebe; }
tr.third td { background: #bb8644; }
tr.playoffs td { background: #D0F0C0; }
tr.relplayoffs td { background: #FFE6E6; }
tr.relegated td { background: #fcc; }

/* Navbox styles */
.navbox { font-size: 11px; background: #f9f9f9; border: 1px solid #ccc; width: 100%; }
.navbox th { background: #1c1c1c; font-size: 12px; color: #ffffff; }
.navbox .controls { float: left; margin-left: 5px; font-size: 9px; font-weight: normal; color: #fff; }
.navbox th a, .navbox th span.plainlinks a.external { color: #ffffff; }
.navbox th a:hover, .navbox th span.plainlinks a.external:hover { color: #ffffff; text-decoration: underline; }
.navbox th a:visited, .navbox th span.plainlinks a.external:visited { color: #ffffff; }
.navbox td.group { width: 8em; text-align: right; background: #d9d9d9; padding-left: 11.25px; padding-right: 11.25px; }
.navbox td.row1 { background: #fdfdfd; }

/* Map location styles - WIP */
.maploc { width: 810px; margin: 0 auto; }
.maploc div.container { width: 800px; position: relative; margin: 0 auto; }
.maploc div.container div.marker { width: 21px; height: 31px; position: absolute; background: url(../images/d/d5/Map_marker.png); z-index: 0; }
.maploc div.container div.marker div { width: 160px; height: 20px; position: relative; top: -25px; left: -69px; background: linear-gradient( to bottom, white, #eee ); box-shadow: 0px 5px 5px rgba(0,0,0,0.5); text-align: center; font-size: small; border-radius: 10px; display: none; }
.maploc div.container div.marker:hover div { display: block; z-index: 1; }

/* Brackets */
.bracket {
 font-size: 11px;
 background: white;
}

.bracket-column {
 float: left;
 position: relative;
}

.bracket-header {
 border-radius: 2px;
 border: 1px solid #aaa;
 padding: 2px 0 2px 0;
 position: relative;
 left: 0;
 right: 0;
 line-height:18px;
 margin-bottom: 20px;
 text-align: center;
 background: #ebebeb;
}

.bracket-cell-r1 {
 height: 36px;
}
.bracket-cell-r2 {
 height: 72px;
}
.bracket-cell-r3 {
 height: 144px;
}
.bracket-cell-r4 {
 height: 288px;
}
.bracket-cell-r5 {
 height: 576px;
}
.bracket-cell-r6 {
 height: 1152px;
}
.bracket-cell-r7 {
 height: 2304px;
}
.bracket-cell-r1, .bracket-cell-r2, .bracket-cell-r3, .bracket-cell-r4, .bracket-cell-r5, .bracket-cell-r6, .bracket-cell-r7 {
 position: relative;
}
.bracket-team-top, .bracket-team-bottom, .bracket-player-top, .bracket-player-bottom {
    border-radius:0 0 2px 2px;
    border:solid #aaa 1px;
    position:absolute;
    padding: 1px;
    min-height:20px;
    line-height:18px;
    background: #f2f2f2;
    left:0;
    right:0;
}
.bracket-team-top, .bracket-player-top {
    bottom:0;
    border-radius:2px 2px 0 0;
}
.bracket-score {
    text-align:center;
    background:#ebebeb;
    border-left:1px solid #aaa;
    position:absolute;
    line-height:22px;
    right:0;
    top:0;
    bottom:0;
}
.bracket-team-bottom .bracket-score, .bracket-player-bottom .bracket-score {
    border-bottom-right-radius: 2px;
}
.bracket-team-top .bracket-score, .bracket-player-bottom .bracket-score {
    border-top-right-radius: 2px;
}
.bracket-hover {
    -moz-box-shadow: 0 0 2px #000;
    -webkit-box-shadow: 0 0 2px #000;
    box-shadow: 0 0 2px #000;
    border-color: #000;
}
.bracket-game-details {
    z-index:100;
    width:200px;
    padding: 2px 0px;
    position:absolute;
    display: none;
    text-align:center;
    border:1px solid #aaa;
    background: rgba(242, 242, 242, 0.9);
    border-radius: 5px 5px 5px 5px;
    box-shadow: 4px 4px 6px #BBBBBB;
}
.bracket-game-details .to-anchor {
    display: none;
}
.bracket-icons {
    border-top: 1px solid #aaa;
}
.bracket-game .icon { 
    height: 12px;
    width: 12px;
    background: url(http://wiki.teamliquid.net/starcraft/images2/c/c5/Bracketinfoicon.png) no-repeat transparent; 
    z-index: 50; 
    top: 50%;
    margin-top: -6px;
    left: 122px;
    position: absolute;
    display:none;
}

.bracket-game { 
    position: relative; 
}

/* Overrides */
.left { float: left; }
.right { float: right; }

/* This CSS snippet applies to the Top Contributions extension tables only (installed on 31/07) */

.contributionscores-wrapper       {  }
.contributionscores-title         { background-color: #aaaaaa; margin-bottom: 0px; padding-left: .4em; }
.contributionscores .header { background-color: #cccccc; border-bottom: 1px solid #999999; font-weight: bold; }
.contributionscores .odd        { background-color: #eeeeee; }
.contributionscores .header td   { padding-left: .2em; padding-right: .2em; }
.contributionscores .content   { padding-left: .2em; padding-right: .2em; }