-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.styl
162 lines (140 loc) · 2.66 KB
/
app.styl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
$frame-bg = #B34C3C;
$well-bg = #1d1f21;
$body-bg-color = lighten($well-bg, 5%);
$text-color= #c5c8c6;
$link-color = lighten($text-color, 10%);
$tablet = 768px;
$phone = 480px;
* {
box-sizing: border-box;
}
body {
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
}
@media only screen and (max-width: $phone) {
body {
font-size: 12px;
}
}
.container {
padding-right: 1rem;
padding-left: 1rem;
margin-right: auto;
margin-left: auto;
}
.app {
display: grid;
grid-template-columns: 1fr 2fr;
grid-gap: 1rem;
@media screen and (max-width: $tablet) {
grid-template-columns: 1fr;
}
}
.grid-4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
@media screen and (max-width: $tablet) {
grid-template-columns: 1fr 1fr;
}
grid-column-gap: 1rem;
}
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
@media screen and (max-width: $phone) {
grid-template-columns: 1fr;
}
grid-gap: 1rem;
}
.chart {
margin-bottom: 40px;
}
.highcharts-series > rect {
stroke: none;
}
a {
color: $link-color;
&:hover, &:active, &:focus {
color: $link-color;
}
}
table.table {
width: 100%;
max-width: 100%;
margin-bottom: 1.25rem;
color: $text-color;
background-color: $well-bg;
border-spacing: 0;
border-collapse: collaapse;
& > thead > tr > th {
border-bottom: 2px solid #ddd;
padding: .5rem;
vertical-align: bottom;
text-align: left;
}
& > tbody > tr > td {
border-top: 1px solid #ddd;
padding: .5rem;
vertical-align: top;
text-align: left;
line-height: 1.5;
}
}
.center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
/* Space out content a bit */
body {
padding-top: 1.25rem;
padding-bottom: 1.25rem;
background: $body-bg-color;
}
/* Everything but the jumbotron gets side spacing for mobile first views */
.footer {
padding-left: 1rem;
padding-right: 1rem;
padding-top: 1.25rem;
color: #777;
border-top: 1px solid #555;
text-align: right;
}
.page-title {
color: $text-color;
width: 100%;
text-align: center;
margin-bottom: 0.625rem;
font-size: 2.25rem;
}
.sub-title {
color: $text-color;
width: 100%;
text-align: center;
margin-bottom: 2.5rem;
font-size: 1.5rem;
}
.number-container {
background: $well-bg;
color: $text-color;
height: 100px;
width: 100%;
text-align: center;
line-height: 100px;
margin-bottom: 40px;
position: relative;
> .number {
font-size: 2.5em;
display: inline-block;
}
> .description {
display: inline-block;
position: absolute;
bottom: 5px;
line-height: 1em;
left: 50%;
transform: translateX(-50%);
}
}