2015-01-01 04:05:01 -05:00
|
|
|
@mixin hover {
|
2016-06-20 19:18:21 -04:00
|
|
|
// TODO: re-enable along with mq4-hover-shim
|
|
|
|
// @if $enable-hover-media-query {
|
2016-10-03 12:55:59 -04:00
|
|
|
// // See Media Queries Level 4: https://drafts.csswg.org/mediaqueries/#hover
|
2016-06-20 19:18:21 -04:00
|
|
|
// // Currently shimmed by https://github.com/twbs/mq4-hover-shim
|
|
|
|
// @media (hover: hover) {
|
|
|
|
// &:hover { @content }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// @else {
|
2015-01-01 04:05:01 -05:00
|
|
|
&:hover { @content }
|
2016-06-20 19:18:21 -04:00
|
|
|
// }
|
2015-01-01 04:05:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hover-focus {
|
2015-04-29 14:49:25 -04:00
|
|
|
@if $enable-hover-media-query {
|
2015-01-20 18:35:28 -05:00
|
|
|
&:focus { @content }
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
}
|
2015-01-01 04:05:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin plain-hover-focus {
|
2015-04-29 14:49:25 -04:00
|
|
|
@if $enable-hover-media-query {
|
2015-01-20 18:35:28 -05:00
|
|
|
&,
|
|
|
|
&:focus {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
2015-01-01 04:05:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hover-focus-active {
|
2015-04-29 14:49:25 -04:00
|
|
|
@if $enable-hover-media-query {
|
2015-01-20 18:35:28 -05:00
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&:focus,
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
2015-01-01 04:05:01 -05:00
|
|
|
}
|
|
|
|
}
|