improve members styling on small screens
[sc2-widget] / battle.css
index 710d151d37beba5c6f685a105c1dda3f2c4bc824..35cd7e4f283128b736147a9e9e8ec5b6d2fbb4e5 100644 (file)
@@ -2,9 +2,8 @@ body {
        background: #000D1A;
        color: #CCE6FF;
        font: 24px Source Sans Pro, Arial, sans-serif;
-}
-body {
        margin-top: 1ex;
+       margin-bottom: -1ex;
 }
 
 h1 {
@@ -24,6 +23,7 @@ h1:before {
 .ladders {
        font: 700 .8em Eurostile, sans-serif;
        text-transform: uppercase;
+       margin: 1ex 0;
 }
 h1,
 strong {
@@ -31,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;
@@ -59,7 +65,7 @@ li {
 figure {
        text-align: center;
        display: inline-block;
-       margin: 0;
+       margin: 0 0 1ex;
 }
 figcaption {
        margin-top: .2ex;
@@ -67,6 +73,25 @@ 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 {
@@ -78,6 +103,9 @@ img {
        content: '';
        vertical-align: middle;
 }
+.rank.bronze:before {
+       background-image: url("https://static.starcraft2.com/dist/images/bronze.249b7eee2d0c53c60a15403ded9bdc7c.png");
+}
 .rank.silver:before {
        background-image: url("https://static.starcraft2.com/dist/images/silver.57bb73a131314d657135d2acf533d5e5.png");
 }
@@ -93,13 +121,19 @@ img {
 .rank.master:before {
        background-image: url("https://static.starcraft2.com/dist/images/master.51c47057b8cee504613a87cd84fba16b.png");
 }
-
-.ladders {
-       float: right;
-       margin: 0;
-       margin-top: -3ex;
+.rank.grandmaster:before {
+       background-image: url("https://static.starcraft2.com/dist/images/grandmaster.d2ab9065434e8fa4042d30e5010df5f9.png");
 }
+
 .ladders li {
        float: none;
        margin-right: 0;
 }
+
+@media (min-width: 576px) {
+       .ladders {
+               float: right;
+               margin: 0;
+               margin-top: -3ex;
+       }
+}