2015-01-01 10:05:01 +01:00
|
|
|
@mixin hover {
|
2016-06-21 01:18:21 +02:00
|
|
|
// TODO: re-enable along with mq4-hover-shim
|
|
|
|
// @if $enable-hover-media-query {
|
2016-10-03 18:55:59 +02:00
|
|
|
// // See Media Queries Level 4: https://drafts.csswg.org/mediaqueries/#hover
|
2016-06-21 01:18:21 +02:00
|
|
|
// // Currently shimmed by https://github.com/twbs/mq4-hover-shim
|
|
|
|
// @media (hover: hover) {
|
|
|
|
// &:hover { @content }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// @else {
|
2017-03-18 21:06:05 +01:00
|
|
|
// scss-lint:disable Indentation
|
2015-01-01 10:05:01 +01:00
|
|
|
&:hover { @content }
|
2017-03-18 21:06:05 +01:00
|
|
|
// scss-lint:enable Indentation
|
2016-06-21 01:18:21 +02:00
|
|
|
// }
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
|
2017-03-18 21:06:05 +01:00
|
|
|
|
2015-01-01 10:05:01 +01:00
|
|
|
@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 }
|
2017-03-18 21:06:05 +01:00
|
|
|
} @else {
|
2015-01-21 00:35:28 +01:00
|
|
|
&: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 }
|
2017-03-18 21:06:05 +01:00
|
|
|
} @else {
|
2015-01-21 00:35:28 +01:00
|
|
|
&,
|
|
|
|
&: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 }
|
2017-03-18 21:06:05 +01:00
|
|
|
} @else {
|
2015-01-21 00:35:28 +01:00
|
|
|
&:focus,
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
}
|