mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fixes #12868: Enables icon feedback on validation states for large/small inputs.
Also reorders the CSS to place Glyhpicons as a dependency before other components for fewer overrides and less specific CSS.
This commit is contained in:
parent
1c66f30b6a
commit
7733f24373
12 changed files with 1493 additions and 1462 deletions
1654
dist/css/bootstrap-rtl.css
vendored
1654
dist/css/bootstrap-rtl.css
vendored
File diff suppressed because it is too large
Load diff
2
dist/css/bootstrap-rtl.min.css
vendored
2
dist/css/bootstrap-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-theme.css.map
vendored
2
dist/css/bootstrap-theme.css.map
vendored
File diff suppressed because one or more lines are too long
1248
dist/css/bootstrap.css
vendored
1248
dist/css/bootstrap.css
vendored
File diff suppressed because it is too large
Load diff
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-rtl.min.css
vendored
2
docs/dist/css/bootstrap-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-theme.css.map
vendored
2
docs/dist/css/bootstrap-theme.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css
vendored
2
docs/dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
4
less/bootstrap.less
vendored
4
less/bootstrap.less
vendored
|
@ -2,9 +2,10 @@
|
||||||
@import "variables.less";
|
@import "variables.less";
|
||||||
@import "mixins.less";
|
@import "mixins.less";
|
||||||
|
|
||||||
// Reset
|
// Reset and dependencies
|
||||||
@import "normalize.less";
|
@import "normalize.less";
|
||||||
@import "print.less";
|
@import "print.less";
|
||||||
|
@import "glyphicons.less";
|
||||||
|
|
||||||
// Core CSS
|
// Core CSS
|
||||||
@import "scaffolding.less";
|
@import "scaffolding.less";
|
||||||
|
@ -17,7 +18,6 @@
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
@import "component-animations.less";
|
@import "component-animations.less";
|
||||||
@import "glyphicons.less";
|
|
||||||
@import "dropdowns.less";
|
@import "dropdowns.less";
|
||||||
@import "button-groups.less";
|
@import "button-groups.less";
|
||||||
@import "input-groups.less";
|
@import "input-groups.less";
|
||||||
|
|
|
@ -271,18 +271,27 @@ input[type="checkbox"],
|
||||||
.form-control {
|
.form-control {
|
||||||
padding-right: (@input-height-base * 1.25);
|
padding-right: (@input-height-base * 1.25);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Feedback icon (requires .glyphicon classes)
|
// Feedback icon (requires .glyphicon classes)
|
||||||
.form-control-feedback {
|
.form-control-feedback {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: (@line-height-computed + 5); // Height of the `label` and its margin
|
top: (@line-height-computed + 5); // Height of the `label` and its margin
|
||||||
right: 0;
|
right: 0;
|
||||||
display: block;
|
display: block;
|
||||||
width: @input-height-base;
|
width: @input-height-base;
|
||||||
height: @input-height-base;
|
height: @input-height-base;
|
||||||
line-height: @input-height-base;
|
line-height: @input-height-base;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.input-lg + .form-control-feedback {
|
||||||
|
width: @input-height-large;
|
||||||
|
height: @input-height-large;
|
||||||
|
line-height: @input-height-large;
|
||||||
|
}
|
||||||
|
.input-sm + .form-control-feedback {
|
||||||
|
width: @input-height-small;
|
||||||
|
height: @input-height-small;
|
||||||
|
line-height: @input-height-small;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Feedback states
|
// Feedback states
|
||||||
|
|
Loading…
Add table
Reference in a new issue