2015-01-01 01:05:01 -08:00
|
|
|
@mixin hover {
|
2015-01-20 15:35:28 -08:00
|
|
|
@if $use-hover-media-query {
|
|
|
|
// See Media Queries Level 4: http://drafts.csswg.org/mediaqueries/#hover
|
|
|
|
// Currently shimmed by https://github.com/cvrebert/mq4-hover-hover-shim
|
|
|
|
@media (hover: hover) {
|
|
|
|
&:hover { @content }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@else {
|
2015-01-01 01:05:01 -08:00
|
|
|
&:hover { @content }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hover-focus {
|
2015-01-20 15:35:28 -08:00
|
|
|
@if $use-hover-media-query {
|
|
|
|
&:focus { @content }
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
}
|
2015-01-01 01:05:01 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin plain-hover-focus {
|
2015-01-20 15:35:28 -08:00
|
|
|
@if $use-hover-media-query {
|
|
|
|
&,
|
|
|
|
&:focus {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
2015-01-01 01:05:01 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hover-focus-active {
|
2015-01-20 15:35:28 -08:00
|
|
|
@if $use-hover-media-query {
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
@content
|
|
|
|
}
|
|
|
|
@include hover { @content }
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
&:focus,
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
@content
|
|
|
|
}
|
2015-01-01 01:05:01 -08:00
|
|
|
}
|
|
|
|
}
|