Skip to content

Commit

Permalink
Updated preventative styling to be more specific to the map container…
Browse files Browse the repository at this point in the history
… and added max-height img rule
  • Loading branch information
bjorn2404 committed Nov 27, 2015
1 parent 3f6fb4f commit 662c990
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-storelocator-plugin",
"version": "2.2.0",
"version": "2.2.1",
"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.",
"repository": {
"type": "git",
Expand Down
12 changes: 7 additions & 5 deletions dist/assets/css/storelocator.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@
color: #ae2118;
font-weight: bold; }

/* Avoid image issues with Google Maps and CSS resets */
.bh-sl-map-container img {
max-height: none !important;
max-width: none !important;
border-radius: 0 !important;
box-shadow: none !important; }

.bh-sl-container {
float: left;
margin-left: 20px;
width: 875px;
font: normal 14px/20px Arial, Helvetica, sans-serif;
color: #555555;
/* Avoid image issues with Google Maps and CSS resets */
/* Avoid issues with Google Maps and CSS frameworks */ }
.bh-sl-container img {
max-width: none !important;
border-radius: 0 !important;
box-shadow: none !important; }
.bh-sl-container > * {
box-sizing: content-box !important; }
.bh-sl-container .bh-sl-form-container {
Expand Down
2 changes: 1 addition & 1 deletion dist/assets/css/storelocator.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/assets/js/plugins/storeLocator/jquery.storelocator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery Google Maps Store Locator - v2.2.0 - 2015-11-21
/*! jQuery Google Maps Store Locator - v2.2.1 - 2015-11-27
* http://www.bjornblog.com/web/jquery-store-locator-plugin
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-storelocator-plugin",
"version": "2.2.0",
"version": "2.2.1",
"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.",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ for even faster loading.

## Changelog

### Version 2.2.1

* Updated preventative styling to be more specific to the map container and added max-height img rule.

### Version 2.2.0

* Added check for Google Maps API.
Expand Down
15 changes: 8 additions & 7 deletions src/css/storelocator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,21 @@ $arialFont: Arial, Helvetica, sans-serif;
font-weight: bold;
}

/* Avoid image issues with Google Maps and CSS resets */
.bh-sl-map-container img {
max-height: none !important;
max-width: none !important;
border-radius: 0 !important;
box-shadow: none !important;
}

.bh-sl-container {
float: left;
margin-left: 20px;
width: 875px;
font: normal 14px/20px $arialFont;
color: $textgray;

/* Avoid image issues with Google Maps and CSS resets */
img {
max-width: none !important;
border-radius: 0 !important;
box-shadow: none !important;
}

/* Avoid issues with Google Maps and CSS frameworks */
> * {
box-sizing: content-box !important;
Expand Down
2 changes: 1 addition & 1 deletion storelocator.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "jQuery Google Maps Store Locator",
"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.",
"keywords": ["jquery","locator","store", "location", "locations", "maps", "map", "stores", "find"],
"version": "2.2.0",
"version": "2.2.1",
"author": {
"name": "Bjorn Holine",
"url": "http://www.bjornblog.com/"
Expand Down

0 comments on commit 662c990

Please sign in to comment.