2018-01-11 11:12:15 +01:00
|
|
|
// Hover mixin and `$enable-hover-media-query` are deprecated.
|
|
|
|
//
|
2018-07-10 02:59:22 +02:00
|
|
|
// Originally added during our alphas and maintained during betas, this mixin was
|
2018-01-30 17:49:31 +01:00
|
|
|
// designed to prevent `:hover` stickiness on iOS-an issue where hover styles
|
2018-01-11 11:12:15 +01:00
|
|
|
// would persist after initial touch.
|
|
|
|
//
|
|
|
|
// For backward compatibility, we've kept these mixins and updated them to
|
2018-04-14 09:41:18 +02:00
|
|
|
// always return their regular pseudo-classes instead of a shimmed media query.
|
2018-01-11 11:12:15 +01:00
|
|
|
//
|
|
|
|
// Issue: https://github.com/twbs/bootstrap/issues/25195
|
|
|
|
|
2015-01-01 10:05:01 +01:00
|
|
|
@mixin hover {
|
2018-01-11 11:12:15 +01:00
|
|
|
&:hover { @content; }
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hover-focus {
|
2018-01-11 11:12:15 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
@content;
|
2015-01-21 00:35:28 +01:00
|
|
|
}
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin plain-hover-focus {
|
2018-01-11 11:12:15 +01:00
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
@content;
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hover-focus-active {
|
2018-01-11 11:12:15 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
@content;
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
|
|
|
}
|