simplify code for ladder sorting
[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(sc2icon.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(rank-none.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(rank-bronze.png);
108 }
109 .rank.silver:before {
110         background-image: url(rank-silver.png);
111 }
112 .rank.gold:before {
113         background-image: url(rank-gold.png);
114 }
115 .rank.platinum:before {
116         background-image: url(rank-platinum.png);
117 }
118 .rank.diamond:before {
119         background-image: url(rank-diamond.png);
120 }
121 .rank.master:before {
122         background-image: url(rank-master.png);
123 }
124 .rank.grandmaster:before {
125         background-image: url(rank-grandmaster.png);
126 }
127 .rank.tier3:before {
128         background-position: -100px -50px;
129 }
130 .rank.tier2:before {
131         background-position: -100px -100px;
132 }
133 .rank.tier1:before {
134         background-position: -100px -150px;
135 }
136
137 .ladders li {
138         float: none;
139         margin-right: 0;
140 }
141
142 @media (min-width: 576px) {
143         .ladders {
144                 float: right;
145                 margin: 0;
146                 margin-top: -3ex;
147         }
148 }