Skip to content

Commit 0a91b65

Browse files
Merge pull request #77 from meteorlxy/patch-1
Update the linear-gradient() function to new syntax. Close #73
2 parents 556a7e0 + 3d918fa commit 0a91b65

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scss/types/_raised.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@if($ubtn-use-compass) {
1414
@include box-shadow(inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .15));
15-
@include background(linear-gradient(top, lighten($ubtn-bgcolor, 5%), darken($ubtn-bgcolor, 5%)));
15+
@include background(linear-gradient(to bottom, lighten($ubtn-bgcolor, 5%), darken($ubtn-bgcolor, 5%)));
1616
}
1717
@else {
1818
background: linear-gradient(lighten($ubtn-bgcolor, 3%), darken($ubtn-bgcolor, 5%));
@@ -21,10 +21,10 @@
2121

2222
&:hover, &:focus {
2323
@if($ubtn-use-compass) {
24-
@include background(linear-gradient(top, lighten($ubtn-bgcolor, 8%), darken($ubtn-bgcolor, 7%)));
24+
@include background(linear-gradient(to bottom, lighten($ubtn-bgcolor, 8%), darken($ubtn-bgcolor, 7%)));
2525
}
2626
@else {
27-
background: linear-gradient(top, lighten($ubtn-bgcolor, 8%), darken($ubtn-bgcolor, 7%));
27+
background: linear-gradient(to bottom, lighten($ubtn-bgcolor, 8%), darken($ubtn-bgcolor, 7%));
2828
}
2929
}
3030

@@ -59,7 +59,7 @@
5959
border-color: darken($ubtn-background, 5%);
6060

6161
@if($ubtn-use-compass) {
62-
@include background(linear-gradient(top, lighten($ubtn-background, 5%), darken($ubtn-background, 5%)));
62+
@include background(linear-gradient(to bottom, lighten($ubtn-background, 5%), darken($ubtn-background, 5%)));
6363
}
6464
@else {
6565
background: linear-gradient(lighten($ubtn-background, 5%), darken($ubtn-background, 5%));
@@ -68,10 +68,10 @@
6868
&:hover,
6969
&:focus {
7070
@if($ubtn-use-compass) {
71-
@include background(linear-gradient(top, lighten($ubtn-background, 8%), darken($ubtn-background, 7%)));
71+
@include background(linear-gradient(to bottom, lighten($ubtn-background, 8%), darken($ubtn-background, 7%)));
7272
}
7373
@else {
74-
background: linear-gradient(top, lighten($ubtn-background, 8%), darken($ubtn-background, 7%));
74+
background: linear-gradient(to bottom, lighten($ubtn-background, 8%), darken($ubtn-background, 7%));
7575
}
7676
}
7777
&:active,

0 commit comments

Comments
 (0)