improve members styling on small screens
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 2 May 2019 01:48:04 +0000 (03:48 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 2 May 2019 01:48:04 +0000 (03:48 +0200)
battle.css

index 8b0490d7cd0cc1487569122a2b1dd1002c07ac0d..35cd7e4f283128b736147a9e9e8ec5b6d2fbb4e5 100644 (file)
@@ -3,6 +3,7 @@ body {
        color: #CCE6FF;
        font: 24px Source Sans Pro, Arial, sans-serif;
        margin-top: 1ex;
+       margin-bottom: -1ex;
 }
 
 h1 {
@@ -22,6 +23,7 @@ h1:before {
 .ladders {
        font: 700 .8em Eurostile, sans-serif;
        text-transform: uppercase;
+       margin: 1ex 0;
 }
 h1,
 strong {
@@ -63,7 +65,7 @@ li {
 figure {
        text-align: center;
        display: inline-block;
-       margin: 0;
+       margin: 0 0 1ex;
 }
 figcaption {
        margin-top: .2ex;
@@ -71,10 +73,12 @@ 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;
@@ -121,12 +125,15 @@ li, li img {
        background-image: url("https://static.starcraft2.com/dist/images/grandmaster.d2ab9065434e8fa4042d30e5010df5f9.png");
 }
 
-.ladders {
-       float: right;
-       margin: 0;
-       margin-top: -3ex;
-}
 .ladders li {
        float: none;
        margin-right: 0;
 }
+
+@media (min-width: 576px) {
+       .ladders {
+               float: right;
+               margin: 0;
+               margin-top: -3ex;
+       }
+}