improve styling as matrix widget
[sc2-widget] / battle.css
1 body {
2         background: #000D1A;
3         color: #CCE6FF;
4         font: 24px Source Sans Pro, Arial, sans-serif;
5 }
6 body {
7         margin-top: 1ex;
8 }
9
10 h1 {
11         font: 700 1.2em Eurostile Extd,Source Sans Pro,sans-serif;
12         text-transform: uppercase;
13         margin-top: 0;
14 }
15 h1:before {
16         background: url('https://static.starcraft2.com/dist/images/global/logos/img-sc2-nav-icon.png') no-repeat;
17         width: 50px;
18         height: 50px;
19         display: inline-block;
20         content: '';
21         vertical-align: middle;
22         margin: -1ex .4em -1ex 0;
23 }
24 .ladders {
25         font: 700 .8em Eurostile, sans-serif;
26         text-transform: uppercase;
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 h2,
35 a {
36         color: #CCE6FF;
37         text-decoration: none;
38 }
39 em {
40         color: #A3B8CC;
41 }
42 small {
43         color: #7AA3CC;
44         font-weight: 400;
45         font-size: 100%;
46 }
47
48 ul {
49         overflow: hidden;
50         padding: 0;
51         margin: 0;
52         list-style: none;
53 }
54 li {
55         float: left;
56         margin-right: .8em;
57 }
58
59 figure {
60         text-align: center;
61         display: inline-block;
62         margin: 0;
63 }
64 figcaption {
65         margin-top: .2ex;
66 }
67 img {
68         border: 2px solid #122A42;
69         background: #021120;
70 }
71
72 .rank:before {
73         background: url("https://static.starcraft2.com/dist/images/none.c8b435f5900fab1ac7981cc9b56f6f44.png") no-repeat;
74         background-position: -100px 0;
75         width: 45px;
76         height: 45px;
77         display: inline-block;
78         content: '';
79         vertical-align: middle;
80 }
81 .rank.silver:before {
82         background-image: url("https://static.starcraft2.com/dist/images/silver.57bb73a131314d657135d2acf533d5e5.png");
83 }
84 .rank.gold:before {
85         background-image: url("https://static.starcraft2.com/dist/images/gold.ef84260f60c780d9fa2d99f083668592.png");
86 }
87 .rank.platinum:before {
88         background-image: url("https://static.starcraft2.com/dist/images/platinum.f407fcd425549f315098b0806ef8eac4.png");
89 }
90 .rank.diamond:before {
91         background-image: url("https://static.starcraft2.com/dist/images/diamond.6faad792f7b6bfc1c9f9bbeb5c289043.png");
92 }
93 .rank.master:before {
94         background-image: url("https://static.starcraft2.com/dist/images/master.51c47057b8cee504613a87cd84fba16b.png");
95 }
96
97 .ladders {
98         float: right;
99         margin: 0;
100         margin-top: -3ex;
101 }
102 .ladders li {
103         float: none;
104         margin-right: 0;
105 }