Skip to content

Commit

Permalink
Fixed gradients in iOS Webkit browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
IanLunn committed Dec 28, 2014
1 parent 2ed195b commit 99dbc09
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hover.css",
"version": "1.0.9",
"version": "1.0.10",
"homepage": "http://ianlunn.github.io/Hover",
"authors": [
"Ian Lunn <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions css/hover-min.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion css/hover.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Hover.css (http://ianlunn.co.uk/)
* Version: 1.0.9
* Version: 1.0.10
* Author: Ian Lunn @IanLunn
* Author URL: http://ianlunn.co.uk/
* Github: https://github.com/IanLunn/Hover
Expand Down Expand Up @@ -1414,6 +1414,7 @@
height: 10px;
width: 90%;
opacity: 0;
background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
/* W3C */
-webkit-transition-duration: 0.3s;
Expand Down Expand Up @@ -1519,6 +1520,7 @@
height: 10px;
width: 90%;
opacity: 0;
background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
/* W3C */
-webkit-transition-duration: 0.3s;
Expand Down Expand Up @@ -1585,10 +1587,12 @@
}
.shadow-radial:before {
bottom: 100%;
background: -webkit-radial-gradient(50% 150%, ellipse, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at 50% 150%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 80%);
}
.shadow-radial:after {
top: 100%;
background: -webkit-radial-gradient(50% -50%, ellipse, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at 50% -50%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 80%);
}
.shadow-radial:hover:before, .shadow-radial:focus:before, .shadow-radial:active:before, .shadow-radial:hover:after, .shadow-radial:focus:after, .shadow-radial:active:after {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hover.css",
"version": "1.0.9",
"version": "1.0.10",
"author": "Ian Lunn",
"devDependencies": {
"grunt": "~0.4.1",
Expand Down
1 change: 1 addition & 0 deletions scss/effects/_float-shadow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
height: 10px;
width: 90%;
opacity: 0;
background: -webkit-radial-gradient(center, ellipse, rgba(0,0,0,.35) 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 80%); /* W3C */
@include prefixed(transition-duration, $defaultDuration);
@include prefixed(transition-property, "transform, opacity");
Expand Down
1 change: 1 addition & 0 deletions scss/effects/_hover-shadow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
height: 10px;
width: 90%;
opacity: 0;
background: -webkit-radial-gradient(center, ellipse, rgba(0,0,0,.35) 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 80%); /* W3C */
@include prefixed(transition-duration, $defaultDuration);
@include prefixed(transition-property, "transform, opacity");
Expand Down
2 changes: 2 additions & 0 deletions scss/effects/_shadow-radial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@

&:before {
bottom: 100%;
background: -webkit-radial-gradient(50% 150%, ellipse, $shadowColour 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at 50% 150%, $shadowColour 0%, rgba(0, 0, 0, 0) 80%);
}

&:after {
top: 100%;
background: -webkit-radial-gradient(50% -50%, ellipse, $shadowColour 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at 50% -50%, $shadowColour 0%, rgba(0, 0, 0, 0) 80%);
}

Expand Down
2 changes: 1 addition & 1 deletion scss/hover.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Hover.css (http://ianlunn.co.uk/)
* Version: 1.0.9
* Version: 1.0.10
* Author: Ian Lunn @IanLunn
* Author URL: http://ianlunn.co.uk/
* Github: https://github.com/IanLunn/Hover
Expand Down

0 comments on commit 99dbc09

Please sign in to comment.