// Scale up controls for tablets and up
-@media screen and (min-width: @screen-sm-min) {
-
+.media-sm({
// Scale up the controls a smidge
.carousel-control {
.icon-prev,
.carousel-indicators {
bottom: 20px;
}
-}
+});
//
// Reiterate per navbar.less and the modified component alignment there.
-@media (min-width: @grid-float-breakpoint) {
+.media-sm({
.navbar-right {
.dropdown-menu {
.dropdown-menu-right();
.dropdown-menu-left();
}
}
-}
+});
.form-inline {
// Kick in the inline
- @media (min-width: @screen-sm-min) {
+ .media-sm({
// Inline-block all the things for "inline"
.form-group {
display: inline-block;
.has-feedback .form-control-feedback {
top: 0;
}
- }
+ });
}
// 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.
- @media (min-width: @screen-sm-min) {
+ .media-sm({
.control-label {
text-align: right;
margin-bottom: 0;
padding-top: (@padding-base-vertical + 1); // Default padding plus a border
}
- }
+ });
// Validation states
//
// Columns, offsets, pushes, and pulls for the small device range, from phones
// to tablets.
-@media (min-width: @screen-sm-min) {
+.media-sm({
.make-grid(sm);
-}
+});
// Medium grid
//
// Columns, offsets, pushes, and pulls for the desktop device range.
-@media (min-width: @screen-md-min) {
+.media-md({
.make-grid(md);
-}
+});
// Large grid
//
// Columns, offsets, pushes, and pulls for the large desktop device range.
-@media (min-width: @screen-lg-min) {
+.media-lg({
.make-grid(lg);
-}
+});
border-top-color: darken(@jumbotron-bg, 10%);
}
-@media (min-width: @screen-sm-min) {
+.media-sm({
.jumbotron {
padding: (@jumbotron-padding * 1.6) 0;
.jumbotron-heading {
font-size: (@font-size-base * 4.5);
}
-}
+});
}
// Scale up the modal
-@media (min-width: @screen-sm-min) {
+.media-sm({
// Automatically set modal's width for larger viewports
.modal-dialog {
width: @modal-md;
// Modal sizes
.modal-sm { width: @modal-sm; }
-}
+});
-@media (min-width: @screen-md-min) {
+.media-sm({
.modal-lg { width: @modal-lg; }
-}
+});