mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
rename media query var to match /cc @cvrebert
This commit is contained in:
parent
95771f9658
commit
b849be2edc
2 changed files with 5 additions and 5 deletions
|
@ -42,6 +42,7 @@ $enable-rounded: true !default;
|
||||||
$enable-shadows: false !default;
|
$enable-shadows: false !default;
|
||||||
$enable-gradients: false !default;
|
$enable-gradients: false !default;
|
||||||
$enable-transitions: true !default;
|
$enable-transitions: true !default;
|
||||||
|
$enable-hover-media-query: false !default;
|
||||||
|
|
||||||
|
|
||||||
// Component defaults
|
// Component defaults
|
||||||
|
@ -55,7 +56,6 @@ $spacer-y: $spacer !default;
|
||||||
|
|
||||||
$border-width: .0625rem !default;
|
$border-width: .0625rem !default;
|
||||||
|
|
||||||
$use-hover-media-query: false !default;
|
|
||||||
|
|
||||||
// Typography
|
// Typography
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@mixin hover {
|
@mixin hover {
|
||||||
@if $use-hover-media-query {
|
@if $enable-hover-media-query {
|
||||||
// See Media Queries Level 4: http://drafts.csswg.org/mediaqueries/#hover
|
// See Media Queries Level 4: http://drafts.csswg.org/mediaqueries/#hover
|
||||||
// Currently shimmed by https://github.com/twbs/mq4-hover-shim
|
// Currently shimmed by https://github.com/twbs/mq4-hover-shim
|
||||||
@media (hover: hover) {
|
@media (hover: hover) {
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin hover-focus {
|
@mixin hover-focus {
|
||||||
@if $use-hover-media-query {
|
@if $enable-hover-media-query {
|
||||||
&:focus { @content }
|
&:focus { @content }
|
||||||
@include hover { @content }
|
@include hover { @content }
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin plain-hover-focus {
|
@mixin plain-hover-focus {
|
||||||
@if $use-hover-media-query {
|
@if $enable-hover-media-query {
|
||||||
&,
|
&,
|
||||||
&:focus {
|
&:focus {
|
||||||
@content
|
@content
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin hover-focus-active {
|
@mixin hover-focus-active {
|
||||||
@if $use-hover-media-query {
|
@if $enable-hover-media-query {
|
||||||
&:focus,
|
&:focus,
|
||||||
&:active {
|
&:active {
|
||||||
@content
|
@content
|
||||||
|
|
Loading…
Add table
Reference in a new issue