Skip to content

Commit

Permalink
(less) grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jun 8, 2014
2 parents 0c437f8 + 0b59914 commit aea562e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
24 changes: 20 additions & 4 deletions forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -247,19 +247,35 @@ input[type="month"] {
}

// Apply same disabled cursor tweak as for inputs
// Some special care is needed because <label>s don't inherit their parent's `cursor`.
//
// Note: Neither radios nor checkboxes can be readonly.
input[type="radio"],
input[type="checkbox"],
.radio,
input[type="checkbox"] {
&[disabled],
&.disabled,
fieldset[disabled] & {
cursor: not-allowed;
}
}
// These classes are used directly on <label>s
.radio-inline,
.checkbox,
.checkbox-inline {
&[disabled],
&.disabled,
fieldset[disabled] & {
cursor: not-allowed;
}
}
// These classes are used on elements with <label> descendants
.radio,
.checkbox {
&.disabled,
fieldset[disabled] & {
label {
cursor: not-allowed;
}
}
}


// Form control sizing
Expand Down
4 changes: 2 additions & 2 deletions modals.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

// When fading in the modal, animate it to slide down
&.fade .modal-dialog {
.translate(0, -25%);
.translate3d(0, -25%, 0);
.transition-transform(~"0.3s ease-out");
}
&.in .modal-dialog { .translate(0, 0)}
&.in .modal-dialog { .translate3d(0, 0, 0) }
}

// Shell div to position the modal with bottom padding
Expand Down
1 change: 1 addition & 0 deletions navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
right: 0;
left: 0;
z-index: @zindex-navbar-fixed;
.translate3d(0, 0, 0);

// Undo the rounded corners
@media (min-width: @grid-float-breakpoint) {
Expand Down
1 change: 1 addition & 0 deletions utilities.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@

.affix {
position: fixed;
.translate3d(0, 0, 0);
}

0 comments on commit aea562e

Please sign in to comment.