1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Kill scss/mixins/_media-queries.scss

replaced media-xs => media-breakpoint-down(xs)
replaced media-sm => media-breakpoint-up(sm)
replaced media-sm-max => media-breakpoint-only(sm)
replaced media-md => media-breakpoint-up(md)
replaced media-md-max => media-breakpoint-only(md)
replaced media-lg => media-breakpoint-up(lg)
This commit is contained in:
Chris Rebert
2014-12-29 13:40:19 -08:00
parent 746e09f8ae
commit cbb3b1ff9a
9 changed files with 31 additions and 57 deletions

View File

@@ -416,7 +416,7 @@ input[type="checkbox"] {
.form-inline {
// Kick in the inline
@include media-sm {
@include media-breakpoint-up(sm) {
// Inline-block all the things for "inline"
.form-group {
display: inline-block;
@@ -516,7 +516,7 @@ input[type="checkbox"] {
// Reset spacing and right align labels, but scope to media queries so that
// labels on narrow viewports stack the same as a default form example.
@include media-sm {
@include media-breakpoint-up(sm) {
.control-label {
padding-top: ($padding-base-vertical + .1); // Default padding plus a border
margin-bottom: 0;
@@ -537,14 +537,14 @@ input[type="checkbox"] {
// Quick utility class for applying `.input-lg` and `.input-sm` styles to the
// inputs and labels within a `.form-group`.
.form-group-lg {
@include media-sm {
@include media-breakpoint-up(sm) {
.control-label {
padding-top: $padding-lg-vertical;
}
}
}
.form-group-sm {
@include media-sm {
@include media-breakpoint-up(sm) {
.control-label {
padding-top: ($padding-sm-vertical + .1);
}