aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-04-04 23:52:40 -0700
committerMark Otto <[email protected]>2015-04-04 23:52:40 -0700
commit510f56f334087b28581d4a8d02c92eebc693a92b (patch)
treec22fcb51754524582a968063acf12eecbe16489a /less
parenta2c69b814509653c454c7a91b9a7ad4521808223 (diff)
parent9c41aee780bc1008019684955be7a029679245ca (diff)
downloadbootstrap-510f56f334087b28581d4a8d02c92eebc693a92b.tar.xz
bootstrap-510f56f334087b28581d4a8d02c92eebc693a92b.zip
Merge branch 'master' into fix_15830
Conflicts: dist/css/bootstrap.css.map dist/css/bootstrap.min.css
Diffstat (limited to 'less')
-rw-r--r--less/forms.less44
-rw-r--r--less/mixins/responsive-visibility.less2
-rw-r--r--less/theme.less21
3 files changed, 54 insertions, 13 deletions
diff --git a/less/forms.less b/less/forms.less
index e4b50629e..6dc1641b6 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -322,14 +322,26 @@ input[type="checkbox"] {
}
.form-group-sm {
.form-control {
- .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
- }
- .form-control-static {
height: @input-height-small;
padding: @padding-small-vertical @padding-small-horizontal;
font-size: @font-size-small;
line-height: @line-height-small;
+ border-radius: @input-border-radius-small;
+ }
+ select.form-control {
+ height: @input-height-small;
+ line-height: @input-height-small;
+ }
+ textarea.form-control,
+ select[multiple].form-control {
+ height: auto;
+ }
+ .form-control-static {
+ height: @input-height-small;
min-height: (@line-height-computed + @font-size-small);
+ padding: (@padding-small-vertical + 1) @padding-small-horizontal;
+ font-size: @font-size-small;
+ line-height: @line-height-small;
}
}
@@ -338,14 +350,26 @@ input[type="checkbox"] {
}
.form-group-lg {
.form-control {
- .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large);
- }
- .form-control-static {
height: @input-height-large;
padding: @padding-large-vertical @padding-large-horizontal;
font-size: @font-size-large;
line-height: @line-height-large;
+ border-radius: @input-border-radius-large;
+ }
+ select.form-control {
+ height: @input-height-large;
+ line-height: @input-height-large;
+ }
+ textarea.form-control,
+ select[multiple].form-control {
+ height: auto;
+ }
+ .form-control-static {
+ height: @input-height-large;
min-height: (@line-height-computed + @font-size-large);
+ padding: (@padding-large-vertical + 1) @padding-large-horizontal;
+ font-size: @font-size-large;
+ line-height: @line-height-large;
}
}
@@ -376,12 +400,14 @@ input[type="checkbox"] {
text-align: center;
pointer-events: none;
}
-.input-lg + .form-control-feedback {
+.input-lg + .form-control-feedback,
+.input-group-lg + .form-control-feedback {
width: @input-height-large;
height: @input-height-large;
line-height: @input-height-large;
}
-.input-sm + .form-control-feedback {
+.input-sm + .form-control-feedback,
+.input-group-sm + .form-control-feedback {
width: @input-height-small;
height: @input-height-small;
line-height: @input-height-small;
@@ -561,6 +587,7 @@ input[type="checkbox"] {
@media (min-width: @screen-sm-min) {
.control-label {
padding-top: ((@padding-large-vertical * @line-height-large) + 1);
+ font-size: @font-size-large;
}
}
}
@@ -568,6 +595,7 @@ input[type="checkbox"] {
@media (min-width: @screen-sm-min) {
.control-label {
padding-top: (@padding-small-vertical + 1);
+ font-size: @font-size-small;
}
}
}
diff --git a/less/mixins/responsive-visibility.less b/less/mixins/responsive-visibility.less
index f7951c3d7..ecf1e979f 100644
--- a/less/mixins/responsive-visibility.less
+++ b/less/mixins/responsive-visibility.less
@@ -4,7 +4,7 @@
// More easily include all the states for responsive-utilities.less.
.responsive-visibility() {
display: block !important;
- table& { display: table; }
+ table& { display: table !important; }
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
diff --git a/less/theme.less b/less/theme.less
index 6f2eb6212..afac3a8aa 100644
--- a/less/theme.less
+++ b/less/theme.less
@@ -28,6 +28,12 @@
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
}
+ &.disabled,
+ &[disabled],
+ fieldset[disabled] & {
+ .box-shadow(none);
+ }
+
.badge {
text-shadow: none;
}
@@ -53,10 +59,17 @@
}
&.disabled,
- &:disabled,
- &[disabled] {
- background-color: darken(@btn-color, 12%);
- background-image: none;
+ &[disabled],
+ fieldset[disabled] & {
+ &,
+ &:hover,
+ &:focus,
+ &.focus,
+ &:active,
+ &.active {
+ background-color: darken(@btn-color, 12%);
+ background-image: none;
+ }
}
}