Skip to content

Commit ae23790

Browse files
committed
Added preventative styling to inline directions panel table, switched to unitless line-heights
1 parent 4db25fa commit ae23790

File tree

9 files changed

+66
-29
lines changed

9 files changed

+66
-29
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-storelocator-plugin",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
55
"repository": {
66
"type": "git",

dist/assets/css/storelocator.css

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@
6363
box-sizing: border-box;
6464
border: 1px solid #cccccc;
6565
border-radius: 4px;
66-
font: normal 14px/18px Arial, Helvetica, sans-serif;
67-
line-height: 16px;
66+
font: normal 14px/1.4 Arial, Helvetica, sans-serif;
6867
margin: 15px 0;
6968
padding: 6px 12px;
7069
width: 100%;
@@ -80,7 +79,7 @@
8079
color: white;
8180
cursor: pointer;
8281
float: left;
83-
font: bold 14px/18px Arial, Helvetica, sans-serif;
82+
font: bold 14px/1.4 Arial, Helvetica, sans-serif;
8483
margin-top: 3px;
8584
padding: 6px 12px;
8685
white-space: nowrap;
@@ -118,8 +117,7 @@
118117
box-sizing: border-box;
119118
border: 1px solid #cccccc;
120119
border-radius: 4px;
121-
font: normal 14px/18px Arial, Helvetica, sans-serif;
122-
line-height: 16px;
120+
font: normal 14px/1.4 Arial, Helvetica, sans-serif;
123121
padding: 6px 12px;
124122
-webkit-border-radius: 4px; }
125123
.bh-sl-container .bh-sl-map-container {
@@ -133,7 +131,7 @@
133131
.bh-sl-container .bh-sl-map-container a {
134132
color: #005293;
135133
text-decoration: none; }
136-
.bh-sl-container .bh-sl-map-container a:focus, .bh-sl-container .bh-sl-map-container a:hover, .bh-sl-container .bh-sl-map-container a:active {
134+
.bh-sl-container .bh-sl-map-container a:active, .bh-sl-container .bh-sl-map-container a:focus, .bh-sl-container .bh-sl-map-container a:hover {
137135
text-decoration: underline; }
138136
.bh-sl-container .bh-sl-loc-list {
139137
font-size: 13px;
@@ -186,13 +184,25 @@
186184
.bh-sl-container .bh-sl-loc-list .bh-sl-close-directions-container {
187185
height: 20px;
188186
position: relative;
189-
width: 100%;
190-
/* Avoid issues with table-layout */ }
191-
.bh-sl-container .bh-sl-loc-list .bh-sl-close-directions-container table {
192-
table-layout: auto; }
187+
width: 100%; }
193188
.bh-sl-container .bh-sl-loc-list .bh-sl-close-directions-container .bh-sl-close-icon {
194189
right: 6px;
195190
top: 0; }
191+
.bh-sl-container .bh-sl-loc-list .bh-sl-directions-panel {
192+
margin: 0 2%;
193+
/* Avoid issues with table-layout */ }
194+
.bh-sl-container .bh-sl-loc-list .bh-sl-directions-panel table {
195+
table-layout: auto; }
196+
.bh-sl-container .bh-sl-loc-list .bh-sl-directions-panel table, .bh-sl-container .bh-sl-loc-list .bh-sl-directions-panel td {
197+
vertical-align: middle;
198+
border-collapse: separate; }
199+
.bh-sl-container .bh-sl-loc-list .bh-sl-directions-panel td {
200+
padding: 1px; }
201+
.bh-sl-container .bh-sl-loc-list .bh-sl-directions-panel .adp-placemark {
202+
margin: 10px 0;
203+
border: 1px solid #c0c0c0; }
204+
.bh-sl-container .bh-sl-loc-list .bh-sl-directions-panel .adp-marker {
205+
padding: 3px; }
196206
.bh-sl-container .bh-sl-loc-list .bh-sl-noresults-title {
197207
font-weight: bold;
198208
margin: 15px; }

dist/assets/css/storelocator.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/js/plugins/storeLocator/jquery.storelocator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v2.3.0 - 2015-12-12
1+
/*! jQuery Google Maps Store Locator - v2.3.1 - 2015-12-13
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
44

dist/assets/js/plugins/storeLocator/jquery.storelocator.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-storelocator-plugin",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
55
"repository": {
66
"type": "git",

readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ for even faster loading.
2727

2828
## Changelog
2929

30+
### Version 2.3.1
31+
32+
* Added preventative styling to inline directions panel table.
33+
* Switched to unitless line-heights.
34+
3035
### Version 2.3.0
3136

3237
* Added fullMapStartBlank option to show a blank map without any locations initially. Set this setting to an integer,

src/css/storelocator.scss

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ $tabletLarge: '(min-width: 1024px)';
2929
}
3030

3131
/* Infowindow Roboto font override */
32-
.gm-style div, .gm-style span, .gm-style label, .gm-style a {
33-
font-family: $arialFont;
32+
.gm-style {
33+
div, span, label, a {
34+
font-family: $arialFont;
35+
}
3436
}
3537

3638
.bh-sl-error {
@@ -96,8 +98,7 @@ $tabletLarge: '(min-width: 1024px)';
9698
box-sizing: border-box;
9799
border: 1px solid $gray;
98100
border-radius: 4px;
99-
font: normal 14px/18px $arialFont;
100-
line-height: 16px;
101+
font: normal 14px/1.4 $arialFont;
101102
margin: 15px 0;
102103
padding: 6px 12px;
103104
width: 100%;
@@ -118,7 +119,7 @@ $tabletLarge: '(min-width: 1024px)';
118119
color: $white;
119120
cursor: pointer;
120121
float: left;
121-
font: bold 14px/18px $arialFont;
122+
font: bold 14px/1.4 $arialFont;
122123
margin-top: 3px;
123124
padding: 6px 12px;
124125
white-space: nowrap;
@@ -167,8 +168,7 @@ $tabletLarge: '(min-width: 1024px)';
167168
box-sizing: border-box;
168169
border: 1px solid $gray;
169170
border-radius: 4px;
170-
font: normal 14px/18px $arialFont;
171-
line-height: 16px;
171+
font: normal 14px/1.4 $arialFont;
172172
padding: 6px 12px;
173173
-webkit-border-radius: 4px;
174174
}
@@ -190,10 +190,10 @@ $tabletLarge: '(min-width: 1024px)';
190190
a {
191191
color: $blue;
192192
text-decoration: none;
193-
193+
194+
&:active,
194195
&:focus,
195-
&:hover,
196-
&:active {
196+
&:hover {
197197
text-decoration: underline;
198198
}
199199
}
@@ -267,15 +267,37 @@ $tabletLarge: '(min-width: 1024px)';
267267
height: 20px;
268268
position: relative;
269269
width: 100%;
270+
271+
.bh-sl-close-icon {
272+
right: 6px;
273+
top: 0;
274+
}
275+
}
276+
277+
.bh-sl-directions-panel {
278+
margin: 0 2%;
270279

271280
/* Avoid issues with table-layout */
272281
table {
273282
table-layout: auto;
274283
}
275284

276-
.bh-sl-close-icon {
277-
right: 6px;
278-
top: 0;
285+
table, td {
286+
vertical-align: middle;
287+
border-collapse: separate;
288+
}
289+
290+
td {
291+
padding: 1px;
292+
}
293+
294+
.adp-placemark {
295+
margin: 10px 0;
296+
border: 1px solid #c0c0c0;
297+
}
298+
299+
.adp-marker {
300+
padding: 3px;
279301
}
280302
}
281303

storelocator.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "jQuery Google Maps Store Locator",
44
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
55
"keywords": ["jquery","locator","store", "location", "locations", "maps", "map", "stores", "find"],
6-
"version": "2.3.0",
6+
"version": "2.3.1",
77
"author": {
88
"name": "Bjorn Holine",
99
"url": "http://www.bjornblog.com/"

0 commit comments

Comments
 (0)