You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: STYLE.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
By default, mapbox.js provides styled map controls. If you would like to override any of these
2
-
elements this section covers the default markup and css. Alter any of these styles in your own css
2
+
elements this section covers the default markup and CSS. Alter any of these styles in your own css
3
3
that follows after `mapbox.css`
4
4
5
5
## General
@@ -15,9 +15,12 @@ UI elements by default also share some of the same css:
15
15
display:block;
16
16
}
17
17
18
-
__Note for IE7 users:__`mapbox.css` uses a [Data URI](http://en.wikipedia.org/wiki/Data_URI_scheme) as its source for images which is not supported in versions less than IE8. To support these users you can link directly to a [cdn hosted version of the image](http://api.tiles.mapbox.com/mapbox.js/v0.5.5/map-controls.png) in your css.
18
+
__Note for Internet Explorer 7 users:__`mapbox.css` uses a
19
+
[Data URI](http://en.wikipedia.org/wiki/Data_URI_scheme) as its source
20
+
for images which is not supported in versions less than Internet Explorer 8.
21
+
To support these users you can link directly to a [CDN hosted version of the image](http://api.tiles.mapbox.com/mapbox.js/v0.5.5/map-controls.png) in your css.
19
22
20
-
Other elments like legends, tooltips along with ui controls share the same css:
23
+
Other elements like legends, tooltips along with ui controls share the same css:
21
24
22
25
.zoomer,
23
26
.map-legends,
@@ -31,7 +34,7 @@ Other elments like legends, tooltips along with ui controls share the same css:
31
34
border-radius:3px;
32
35
}
33
36
34
-
## Zoom Controls
37
+
## Zoom controls
35
38
36
39
__Markup__
37
40
@@ -68,7 +71,7 @@ __Default css__
68
71
box-shadow:inset 0 1px 3px rgba(0,0,0,0.15);
69
72
}
70
73
71
-
When a zoom control is out of range a class name of `.zoomdisabled` The following css applied:
74
+
When a zoom control is out of range a class name of `.zoomdisabled` The following CSS applied:
72
75
73
76
.zoomdisabled {
74
77
background-color:#eee;
@@ -101,9 +104,9 @@ __Default css__
101
104
user-select:auto;
102
105
}
103
106
104
-
An optional classname of `.map-fade` is added to `.map-tooltip` when you initially mouse over/out on an element.
107
+
An optional className of `.map-fade` is added to `.map-tooltip` when you initially mouse over/out on an element.
105
108
This is added when animation is set to true. This additional class provides an easy way to apply fading animation
106
-
using css. The default styling look like this:
109
+
using CSS. The default styling look like this:
107
110
108
111
.map-tooltip {
109
112
opacity:1;
@@ -112,7 +115,7 @@ using css. The default styling look like this:
112
115
}
113
116
.map-fade { opacity:0; }
114
117
115
-
When a tooltip has the interaction of a full formatter a close elemtent is applied:
118
+
When a tooltip has the interaction of a full formatter a close element is applied:
116
119
117
120
__Markup__
118
121
@@ -221,7 +224,8 @@ __Default css__
221
224
222
225
## Retina screens
223
226
224
-
To support screens a media query is provided with an alternate scaled up version of the image sprite for the controls:
227
+
To support screens a [media query](http://www.w3.org/TR/css3-mediaqueries/) is provided
228
+
with an alternate scaled-up version of the image sprite for the controls:
225
229
226
230
@media
227
231
only screen and (-webkit-min-device-pixel-ratio : 2),
0 commit comments