previous season ladders indicated after active results
[sc2-widget] / battle.css
index 103dc7c750c4ca00d4814c26f9cae4e052e83fc1..6fbf215728685b7e018e099f27bd0e5ce888e7f6 100644 (file)
@@ -2,15 +2,28 @@ body {
        background: #000D1A;
        color: #CCE6FF;
        font: 24px Source Sans Pro, Arial, sans-serif;
+       margin-top: 1ex;
+       margin-bottom: -1ex;
 }
 
 h1 {
        font: 700 1.2em Eurostile Extd,Source Sans Pro,sans-serif;
        text-transform: uppercase;
+       margin-top: 0;
 }
-h2 {
+h1:before {
+       background: url(sc2icon.png) no-repeat;
+       width: 50px;
+       height: 50px;
+       display: inline-block;
+       content: '';
+       vertical-align: middle;
+       margin: -1ex .4em -1ex 0;
+}
+.ladders {
        font: 700 .8em Eurostile, sans-serif;
        text-transform: uppercase;
+       margin: 1ex 0;
 }
 h1,
 strong {
@@ -18,10 +31,16 @@ strong {
        letter-spacing: .05em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, .8), 0 8px 16px rgba(0, 0, 0, .6);
 }
-h2,
 a {
-       color: #CCE6FF;
+       color: inherit;
        text-decoration: none;
+       transition: all .5s;
+}
+a:hover {
+       color: #FFF;
+}
+a:hover img {
+       border-color: #FFF;
 }
 em {
        color: #A3B8CC;
@@ -32,10 +51,21 @@ small {
        font-size: 100%;
 }
 
+ul {
+       overflow: hidden;
+       padding: 0;
+       margin: 0;
+       list-style: none;
+}
+li {
+       float: left;
+       margin-right: .8em;
+}
+
 figure {
        text-align: center;
        display: inline-block;
-       margin: 0 .5em 0 0;
+       margin: 0 0 1ex;
 }
 figcaption {
        margin-top: .2ex;
@@ -43,31 +73,83 @@ figcaption {
 img {
        border: 2px solid #122A42;
        background: #021120;
+       max-width: calc(49vw - .8em - 16px);
+}
+
+li, li img {
+       transition: all 1s;
+       transition-property: opacity, color, background, border;
+}
+.select > li {
+       opacity: .5;
+}
+.select > li.select {
+       opacity: 1;
+}
+.select > .select img {
+       border-color: #055CB3;
+}
+.ladders li:hover {
+       background: #0C2643;
+       cursor: help;
 }
 
 .rank:before {
-       background-image: url("https://static.starcraft2.com/dist/images/none.c8b435f5900fab1ac7981cc9b56f6f44.png");
-       background-repeat: no-repeat;
+       background: url(rank-none.png) no-repeat;
        background-position: -100px 0;
        width: 45px;
        height: 45px;
        display: inline-block;
        content: '';
        vertical-align: middle;
-       margin-right: .2em;
+}
+.rank.bronze:before {
+       background-image: url(rank-bronze.png);
 }
 .rank.silver:before {
-       background-image: url("https://static.starcraft2.com/dist/images/silver.57bb73a131314d657135d2acf533d5e5.png");
+       background-image: url(rank-silver.png);
 }
 .rank.gold:before {
-       background-image: url("https://static.starcraft2.com/dist/images/gold.ef84260f60c780d9fa2d99f083668592.png");
+       background-image: url(rank-gold.png);
 }
 .rank.platinum:before {
-       background-image: url("https://static.starcraft2.com/dist/images/platinum.f407fcd425549f315098b0806ef8eac4.png");
+       background-image: url(rank-platinum.png);
 }
 .rank.diamond:before {
-       background-image: url("https://static.starcraft2.com/dist/images/diamond.6faad792f7b6bfc1c9f9bbeb5c289043.png");
+       background-image: url(rank-diamond.png);
 }
 .rank.master:before {
-       background-image: url("https://static.starcraft2.com/dist/images/master.51c47057b8cee504613a87cd84fba16b.png");
+       background-image: url(rank-master.png);
+}
+.rank.grandmaster:before {
+       background-image: url(rank-grandmaster.png);
+}
+.rank.tier3:before {
+       background-position: -100px -50px;
+}
+.rank.tier2:before {
+       background-position: -100px -100px;
+}
+.rank.tier1:before {
+       background-position: -100px -150px;
+}
+
+.old {
+       text-decoration: line-through;
+}
+.old:before {
+       opacity: .5;
+}
+
+.ladders li {
+       float: none;
+       margin-right: 0;
+}
+
+@media (min-width: 576px) {
+       .ladders {
+               float: right;
+               margin: 0;
+               margin-top: -3ex;
+       }
 }