2015-01-01 10:05:01 +01:00
|
|
|
@mixin hover {
|
2015-04-29 20:49:25 +02:00
|
|
|
@if $enable-hover-media-query {
|
2015-01-21 00:35:28 +01:00
|
|
|
// See Media Queries Level 4: http://drafts.csswg.org/mediaqueries/#hover
|
2015-02-05 06:15:01 +01:00
|
|
|
// Currently shimmed by https://github.com/twbs/mq4-hover-shim
|
2015-01-21 00:35:28 +01:00
|
|
|
@media (hover: hover) {
|
|
|
|
&:hover { @content }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@else {
|
2015-01-01 10:05:01 +01:00
|
|
|
&:hover { @content }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hover-focus {
|
2015-04-29 20:49:25 +02:00
|
|
|
@if $enable-hover-media-query {
|
2015-01-21 00:35:28 +01:00
|
|
|
&:focus { @content }
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
}
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin plain-hover-focus {
|
2015-04-29 20:49:25 +02:00
|
|
|
@if $enable-hover-media-query {
|
2015-01-21 00:35:28 +01:00
|
|
|
&,
|
|
|
|
&:focus {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hover-focus-active {
|
2015-04-29 20:49:25 +02:00
|
|
|
@if $enable-hover-media-query {
|
2015-01-21 00:35:28 +01:00
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&:focus,
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
}
|