-
Notifications
You must be signed in to change notification settings - Fork 6
/
styles.css
176 lines (144 loc) · 2.69 KB
/
styles.css
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,300,400italic,400,700);
div.outer {
position: fixed;
top: 41px;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
padding: 0;
}
body, label, input, button, select {
font-family: 'Open Sans', sans-serif;a;
font-weight: 300;
}
h1, h2, h3, h4 { font-weight: 400; }
#controls {
background-color: white;
padding: 0 20px 0px 20px;
cursor: move;
/* Fade out while not hovering */
opacity: 0.7;
transition: opacity 500ms 1s;
/*font-size: smaller;*/
}
#controls:hover {
/* Fade in while hovering */
opacity: 1;
transition-delay: 0;
}
/* Position and style citation */
#cite {
position: absolute;
bottom: 10px;
left: 10px;
font-size: 12px;
background-color: #efefef;
padding: 2px;
}
/* If not using map tiles, show a white background */
.leaflet-container {
background-color: white !important;
}
.navbar-brand {
font-weight: bold;
}
div.leaflet-control-zoom {
margin-top: 25px !important;
}
.shiny-input-container {
margin: 0 auto;
}
.shiny-plot-output {
margin: 0 auto;
}
.control-label {
margin-top: 4px;
}
.legend {
background: rgba(255,255,255,1);
max-width: 90px;
}
p.foot {
font-size: .95rem;
text-align: center;
}
hr.thin {
margin-top: 5px;
margin-bottom: 5px;
}
.row{
margin: 0 auto;
}
@media screen and (max-width: 768px) {
#controls {
display: none;
}
div.mobile-panel {
display: block;
padding: 5px 10px;
background: rgba(255,255,255,.9);
position: fixed;
/* float: right;*/
left: 0;
right: 0;
bottom: 0;
margin: 0 auto 5px auto;
font-size: smaller;
width: 100%;
max-width: 500px;
z-index: 99;
}
div.leaflet-bottom {
top: 15px;
right: 5px;
bottom: auto;
left: auto;
}
div.leaflet-control-attribution {
display: none;
}
div.radio{
font-size: smaller;
}
/* compact pop-ups on mobile */
div.leaflet-popup-content {
width: 140px !important;
font-size: smaller;
margin: 5px;
padding: 0px;
}
}
#base {
max-width: 100px;
}
/* slider tweaks */
.irs-single{
background: rgba(0, 0, 0, 0.5);
}
.irs-single::after{
border-top-color: rgba(0, 0, 0, 0.5);
}
/* spacing tweaks for lower controls */
label.control-label[for=base]{
margin-bottom: 1px !important;
}
label.control-label[for=scale]{
margin-bottom: 10px;
}
.nav-tabs{
margin-bottom: 5px;
}
p.intro{
margin-bottom: 15px;
}
p.topp {
margin-top: 10px;
}
/* static plot positioning tweaks */
div#monthTotals img {
margin-left: 2px;
}
div#month_waffle img {
margin-left: 10px;
}