improve members styling on small screens
[sc2-widget] / battle.css
1 body {
2         background: #000D1A;
3         color: #CCE6FF;
4         font: 24px Source Sans Pro, Arial, sans-serif;
5         margin-top: 1ex;
6         margin-bottom: -1ex;
7 }
8
9 h1 {
10         font: 700 1.2em Eurostile Extd,Source Sans Pro,sans-serif;
11         text-transform: uppercase;
12         margin-top: 0;
13 }
14 h1:before {
15         background: url('https://static.starcraft2.com/dist/images/global/logos/img-sc2-nav-icon.png') no-repeat;
16         width: 50px;
17         height: 50px;
18         display: inline-block;
19         content: '';
20         vertical-align: middle;
21         margin: -1ex .4em -1ex 0;
22 }
23 .ladders {
24         font: 700 .8em Eurostile, sans-serif;
25         text-transform: uppercase;
26         margin: 1ex 0;
27 }
28 h1,
29 strong {
30         color: #FFF;
31         letter-spacing: .05em;
32         text-shadow: 0 2px 4px rgba(0, 0, 0, .8), 0 8px 16px rgba(0, 0, 0, .6);
33 }
34 a {
35         color: inherit;
36         text-decoration: none;
37         transition: all .5s;
38 }
39 a:hover {
40         color: #FFF;
41 }
42 a:hover img {
43         border-color: #FFF;
44 }
45 em {
46         color: #A3B8CC;
47 }
48 small {
49         color: #7AA3CC;
50         font-weight: 400;
51         font-size: 100%;
52 }
53
54 ul {
55         overflow: hidden;
56         padding: 0;
57         margin: 0;
58         list-style: none;
59 }
60 li {
61         float: left;
62         margin-right: .8em;
63 }
64
65 figure {
66         text-align: center;
67         display: inline-block;
68         margin: 0 0 1ex;
69 }
70 figcaption {
71         margin-top: .2ex;
72 }
73 img {
74         border: 2px solid #122A42;
75         background: #021120;
76         max-width: calc(49vw - .8em - 16px);
77 }
78
79 li, li img {
80         transition: all 1s;
81         transition-property: opacity, color, background, border;
82 }
83 .select > li {
84         opacity: .5;
85 }
86 .select > li.select {
87         opacity: 1;
88 }
89 .select > .select img {
90         border-color: #055CB3;
91 }
92 .ladders li:hover {
93         background: #0C2643;
94         cursor: help;
95 }
96
97 .rank:before {
98         background: url("https://static.starcraft2.com/dist/images/none.c8b435f5900fab1ac7981cc9b56f6f44.png") no-repeat;
99         background-position: -100px 0;
100         width: 45px;
101         height: 45px;
102         display: inline-block;
103         content: '';
104         vertical-align: middle;
105 }
106 .rank.bronze:before {
107         background-image: url("https://static.starcraft2.com/dist/images/bronze.249b7eee2d0c53c60a15403ded9bdc7c.png");
108 }
109 .rank.silver:before {
110         background-image: url("https://static.starcraft2.com/dist/images/silver.57bb73a131314d657135d2acf533d5e5.png");
111 }
112 .rank.gold:before {
113         background-image: url("https://static.starcraft2.com/dist/images/gold.ef84260f60c780d9fa2d99f083668592.png");
114 }
115 .rank.platinum:before {
116         background-image: url("https://static.starcraft2.com/dist/images/platinum.f407fcd425549f315098b0806ef8eac4.png");
117 }
118 .rank.diamond:before {
119         background-image: url("https://static.starcraft2.com/dist/images/diamond.6faad792f7b6bfc1c9f9bbeb5c289043.png");
120 }
121 .rank.master:before {
122         background-image: url("https://static.starcraft2.com/dist/images/master.51c47057b8cee504613a87cd84fba16b.png");
123 }
124 .rank.grandmaster:before {
125         background-image: url("https://static.starcraft2.com/dist/images/grandmaster.d2ab9065434e8fa4042d30e5010df5f9.png");
126 }
127
128 .ladders li {
129         float: none;
130         margin-right: 0;
131 }
132
133 @media (min-width: 576px) {
134         .ladders {
135                 float: right;
136                 margin: 0;
137                 margin-top: -3ex;
138         }
139 }