-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabLeafletMap.css
More file actions
211 lines (179 loc) · 4.3 KB
/
Copy pathlabLeafletMap.css
File metadata and controls
211 lines (179 loc) · 4.3 KB
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/*
Created: 2018-01-11 by James Austin - Trafford Data Lab
Purpose: For styling Leaflet maps created using the LabLeafletMap object
Dependencies: leaflet.css (http://www.leafletjs.com), labBase.css (https://www.trafforddatalab.io/css/labBase.css)
Licence: https://www.trafforddatalab.io/lab_leaflet/LICENSE.txt
*/
/* ### Overridden styles from leaflet.css ### */
.leaflet-container
{
background: #fff; /* ensure white background when no tiles are displayed for screenshot/printer */
font-family: 'Open Sans', sans-serif;
color: #212121;
}
.leaflet-container a
{
color: #fc6721; /* all links to be orange as per Lab style */
}
.leaflet-top.leaflet-left
{
z-index: 100000; /* ensures the layer control expanded state appears above all other controls */
}
.leaflet-bar a, .leaflet-control-layers, .leaflet-control-attribution, .labMapControls
{
background: #fff;
background: rgba(255, 255, 255, 0.8);
}
.leaflet-control-attribution
{
/* fixes text scaling issue when changing from portrait to landscape on mobile browsers */
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
/* The following styles are for the text/icons within leaflet bar controls e.g. zoom, reset etc. */
.leaflet-bar a
{
color: #757575;
}
.leaflet-bar a:hover
{
color: #fc6721;
}
.leaflet-bar a.leaflet-disabled
{
background-color: rgba(200, 200, 200, 0.8);
}
.leaflet-bar a.leaflet-disabled:hover
{
color: #bbb;
}
/* The following styles are to ensure the sizes of all 'button' controls are consistent across all browsers (including touch-capable) */
.leaflet-bar a,
.leaflet-bar a:hover,
.leaflet-control-layers-toggle,
.leaflet-touch .leaflet-bar a,
.leaflet-touch .leaflet-control-layers-toggle
{
width: 38px;
height: 38px;
line-height: 38px;
}
/* ### Specific common styles for Trafford Data Lab Leaflet maps ### */
.mapFullScreen
{
position: absolute;
width: 100%;
height: 100%;
}
/* common styling features for custom Leaflet controls such as the main panel, legend etc. */
.labMapControls
{
/* background styles set in the leaflet.css override section as common with other Leaflet controls */
margin: 0;
padding: 4px;
border: 1px solid rgba(255,255,255,0); /* transparent border to allow a highlight-on-hover effect if required */
border-radius: 3px;
}
.resetMapControl
{
font-size: 18px;
}
.geoLocateMapControl
{
font-size: 24px;
}
.mainPanelControl, .legendControl
{
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}
.mainPanelControl
{
padding-left: 8px;
padding-right: 8px;
}
.mainPanelControl, .infoContainer
{
font-size: 14px;
}
.mainPanelControl:hover, .legendControl:hover
{
background: rgba(255, 255, 255, 0.9);
}
.titleContainer
{
font-family: 'Roboto', sans-serif;
color: #757575;
font-size: 22px;
font-weight: bold;
}
.toggleGadget
{
color: #a5a5a5;
float: right;
font-size: 22px;
}
.toggleGadget:hover
{
cursor: pointer;
}
.toggleGadgetHiddenState
{
color: #fc6721;
}
.infoDockContainer
{
margin-top: 10px;
padding-top: 10px;
border-top: 2px dotted #ccc;
overflow: auto;
}
.legendKey
{
/* this is the generic class for graphical representations of something on the map, e.g. a line, an icon etc. */
width: 20px;
float: left;
margin-right: 10px;
}
.legendKeyLine
{
/* for representing lines within the legend key, e.g. polygon boundaries */
margin-top: 7px;
}
.legendKeyIcon
{
/* for representing markers or the icons within markers - to be defined */
}
/* For creating labels for place name etc. using L.ToolTip, overriding and adding to the default Leaflet styles */
.labLabels
{
background-color: transparent;
border: none;
box-shadow: none;
color: white;
font-weight: bold;
text-shadow: -1px -1px 10px #757575,
1px -1px 10px #757575,
1px 1px 10px #757575,
-1px 1px 10px #757575;
}
/* Alterations to ensure correct display on mobiles */
@media (max-width:620px)
{
.mainPanelControl
{
width: 240px;
}
.mainPanelControl, .infoContainer
{
font-size: 12px;
}
.titleContainer
{
font-size: 20px;
}
.legendControl
{
max-width: 300px;
}
}