mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Refactor .input-* sizing a bit by not chaining to .form-control (fixes #8672)
This commit is contained in:
parent
09edfcf8c2
commit
8b5e41d900
9
dist/css/bootstrap.css
vendored
9
dist/css/bootstrap.css
vendored
@ -1438,14 +1438,14 @@ textarea.form-control {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.form-control.input-large {
|
||||
.input-large {
|
||||
height: 56px;
|
||||
padding: 14px 16px;
|
||||
font-size: 18px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.form-control.input-small {
|
||||
.input-small {
|
||||
height: 30px;
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
@ -1462,6 +1462,11 @@ select.input-small {
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
textarea.input-large,
|
||||
textarea.input-small {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.has-warning .help-block,
|
||||
.has-warning .control-label {
|
||||
color: #c09853;
|
||||
|
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
@ -218,20 +218,19 @@ input[type="number"] {
|
||||
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
||||
// element gets special love because it's special, and that's a fact!
|
||||
|
||||
.form-control {
|
||||
&.input-large {
|
||||
height: @input-height-large;
|
||||
padding: @padding-large-vertical @padding-large-horizontal;
|
||||
font-size: @font-size-large;
|
||||
border-radius: @border-radius-large;
|
||||
}
|
||||
&.input-small {
|
||||
height: @input-height-small;
|
||||
padding: @padding-small-vertical @padding-small-horizontal;
|
||||
font-size: @font-size-small;
|
||||
border-radius: @border-radius-small;
|
||||
}
|
||||
.input-large {
|
||||
height: @input-height-large;
|
||||
padding: @padding-large-vertical @padding-large-horizontal;
|
||||
font-size: @font-size-large;
|
||||
border-radius: @border-radius-large;
|
||||
}
|
||||
.input-small {
|
||||
height: @input-height-small;
|
||||
padding: @padding-small-vertical @padding-small-horizontal;
|
||||
font-size: @font-size-small;
|
||||
border-radius: @border-radius-small;
|
||||
}
|
||||
|
||||
select {
|
||||
&.input-large {
|
||||
height: @input-height-large;
|
||||
@ -242,6 +241,12 @@ select {
|
||||
line-height: @input-height-small;
|
||||
}
|
||||
}
|
||||
textarea {
|
||||
&.input-large,
|
||||
&.input-small {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Form control feedback states
|
||||
|
Loading…
x
Reference in New Issue
Block a user