Skip to content

Commit 500f1c3

Browse files
committed
.working-hover for everything except iphone
1 parent a121475 commit 500f1c3

6 files changed

Lines changed: 22 additions & 15 deletions

File tree

modules/config/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var webpackConfig = {
9999
{
100100
test: /\.styl$/,
101101
// ExtractTextPlugin breaks HMR for CSS
102-
loader: ExtractTextPlugin.extract('style', 'css!autoprefixer?browsers=last 2 version!stylus?linenos=true')
102+
loader: ExtractTextPlugin.extract('style', 'css!autoprefixer?browsers=last 2 version!hover!stylus?linenos=true')
103103
//loader: 'style!css!autoprefixer?browsers=last 2 version!stylus?linenos=true'
104104
},
105105
{

modules/hover-loader.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
module.exports = function(source) {
3+
this.cacheable && this.cacheable();
4+
5+
return source.replace(/^(.*?:hover)/gim, '.working-hover $1');
6+
7+
};

styles/blocks/hide/hide.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
@extend $font-open
3131

3232
.hide-open .hide-link::after
33-
@extend $font-close
33+
@extend $font-close

styles/blocks/links/links.styl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$pseudo
22
text-decoration none
33
border-bottom 1px dashed transparent
4-
.working-hover &:hover
4+
&:hover
55
border-bottom 1px dashed
66
text-decoration none
77

@@ -21,7 +21,7 @@ $link-type
2121
cursor pointer
2222
color link_color
2323

24-
.working-hover .pseudo:hover
24+
.pseudo:hover
2525
color link_hover_color
2626

2727
:link
@@ -38,8 +38,8 @@ $link-type
3838
:visited
3939
text-decoration none
4040

41-
.working-hover a:hover,
42-
.working-hover a:active
41+
a:hover,
42+
a:active
4343
color link_hover_color
4444
text-decoration underline
4545

styles/blocks/map/map.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
color #8B8987
1919

20-
.working-hover &:hover
20+
&:hover
2121
text-decoration none
2222

2323
&__text

styles/blocks/notification/notification.styl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
&_error &__close
6161
color #A86464
6262

63-
&:hover
64-
color lighten(@color, 20%)
63+
&_error &__close &:hover
64+
color lighten(#A86464, 20%)
6565

6666
&_warning
6767
background #FCF8E1
@@ -70,8 +70,8 @@
7070
&_warning &__close
7171
color #A99E62
7272

73-
&:hover
74-
color lighten(@color, 20%)
73+
&_warning &__close &:hover
74+
color lighten(#A99E62, 20%)
7575

7676
&_info
7777
background #D9EDF8
@@ -80,8 +80,8 @@
8080
&_info &__close
8181
color #5C879F
8282

83-
&:hover
84-
color lighten(@color, 20%)
83+
&_info &__close &:hover
84+
color lighten(#5C879F, 20%)
8585

8686
&_success
8787
background #DFF0D6
@@ -90,8 +90,8 @@
9090
&_success &__close
9191
color #699552
9292

93-
&:hover
94-
color lighten(@color, 20%)
93+
&_success &__close &:hover
94+
color lighten(#699552, 20%)
9595

9696
&__close
9797
@extend $button-reset

0 commit comments

Comments
 (0)