mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-18 15:54:26 +01:00
commit
ce77f10ce5
@ -208,43 +208,13 @@ input[type="number"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Form control sizing
|
// Form control sizing
|
||||||
//
|
.input-sm {
|
||||||
// Relative text size, padding, and border-radii changes for form controls. For
|
.input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
||||||
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
}
|
||||||
// element gets special love because it's special, and that's a fact!
|
|
||||||
|
|
||||||
.input-lg {
|
.input-lg {
|
||||||
height: @input-height-large;
|
.input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
||||||
padding: @padding-large-vertical @padding-large-horizontal;
|
|
||||||
font-size: @font-size-large;
|
|
||||||
line-height: @line-height-large;
|
|
||||||
border-radius: @border-radius-large;
|
|
||||||
}
|
|
||||||
.input-sm {
|
|
||||||
height: @input-height-small;
|
|
||||||
padding: @padding-small-vertical @padding-small-horizontal;
|
|
||||||
font-size: @font-size-small;
|
|
||||||
line-height: @line-height-small;
|
|
||||||
border-radius: @border-radius-small;
|
|
||||||
}
|
|
||||||
|
|
||||||
select {
|
|
||||||
&.input-lg {
|
|
||||||
height: @input-height-large;
|
|
||||||
line-height: @input-height-large;
|
|
||||||
}
|
|
||||||
&.input-sm {
|
|
||||||
height: @input-height-small;
|
|
||||||
line-height: @input-height-small;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
textarea {
|
|
||||||
&.input-lg,
|
|
||||||
&.input-sm {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -636,3 +636,26 @@
|
|||||||
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
|
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Form control sizing
|
||||||
|
//
|
||||||
|
// Relative text size, padding, and border-radii changes for form controls. For
|
||||||
|
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
||||||
|
// element gets special love because it's special, and that's a fact!
|
||||||
|
|
||||||
|
.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
||||||
|
height: @input-height;
|
||||||
|
padding: @padding-vertical @padding-horizontal;
|
||||||
|
font-size: @font-size;
|
||||||
|
line-height: @line-height;
|
||||||
|
border-radius: @border-radius;
|
||||||
|
|
||||||
|
select& {
|
||||||
|
height: @input-height;
|
||||||
|
line-height: @input-height;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea& {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user