input[type="color"],
.uneditable-input {
display: inline-block;
- height: 20px;
- padding: 4px 6px;
- margin-bottom: 9px;
+ min-height: 34px;
+ padding: 6px 9px;
+ margin-bottom: 10px;
font-size: 14px;
line-height: 20px;
color: #555555;
vertical-align: middle;
+ background-color: #ffffff;
border-radius: 4px;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
}
input,
textarea,
.uneditable-input {
- width: 206px;
+ width: 220px;
}
textarea {
input[type="tel"],
input[type="color"],
.uneditable-input {
- background-color: #ffffff;
border: 1px solid #cccccc;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
select,
input[type="file"] {
- height: 30px;
+ height: 34px;
/* In IE7, the height of the select element cannot be changed by height, only font-size. TODO: Check if this is still needed when dropping IE7 support */
- line-height: 30px;
+ line-height: 34px;
}
select {
width: 220px;
- background-color: #ffffff;
border: 1px solid #cccccc;
}
width: auto;
height: 20px;
min-width: 16px;
- padding: 4px 5px;
+ padding: 6px;
font-size: 14px;
font-weight: normal;
line-height: 20px;
/* IE8 doesn't have border radius, so don't indent the padding */
margin-bottom: 0;
- border-radius: 15px;
+ border-radius: 20px;
}
/* Allow for input prepend/append in search forms */
}
.form-search .input-append .search-query {
- border-radius: 14px 0 0 14px;
+ border-radius: 20px 0 0 20px;
}
.form-search .input-append .btn {
- border-radius: 0 14px 14px 0;
+ border-radius: 0 20px 20px 0;
}
.form-search .input-prepend .search-query {
- border-radius: 0 14px 14px 0;
+ border-radius: 0 20px 20px 0;
}
.form-search .input-prepend .btn {
- border-radius: 14px 0 0 14px;
+ border-radius: 20px 0 0 20px;
}
.form-search input,
.btn {
display: inline-block;
- padding: 4px 12px;
+ padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
.control-block-level {
display: block;
width: 100%;
- min-height: 30px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
}
.hidden {
.uneditable-input {
display: block;
width: 100%;
- min-height: 30px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
}
.input-prepend input,
.input-append input,
// Core
.btn {
display: inline-block;
- padding: 4px 12px;
+ padding: 6px 12px;
margin-bottom: 0; // For input.btn
font-size: @baseFontSize;
line-height: @baseLineHeight;
input[type="color"],
.uneditable-input {
display: inline-block;
- height: @baseLineHeight;
- padding: 4px 6px;
- margin-bottom: 9px;
+ .box-sizing(border-box); // Makes inputs behave like true block-level elements
+ min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
+ padding: 6px 9px;
+ margin-bottom: @baseLineHeight / 2;
font-size: @baseFontSize;
line-height: @baseLineHeight;
color: @gray;
- border-radius: @inputBorderRadius;
vertical-align: middle;
+ background-color: @inputBackground;
+ border-radius: @inputBorderRadius;
}
// Reset appearance properties for textual inputs and textarea
input,
textarea,
.uneditable-input {
- width: 206px; // plus 12px padding and 2px border
+ width: 220px;
}
// Reset height since textareas have rows
textarea {
input[type="tel"],
input[type="color"],
.uneditable-input {
- background-color: @inputBackground;
border: 1px solid @inputBorder;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
.transition(~"border linear .2s, box-shadow linear .2s");
select {
width: 220px; // default input width + 10px of padding that doesn't get applied
border: 1px solid @inputBorder;
- background-color: @inputBackground; // Chrome on Linux and Mobile Safari need background-color
}
// Make multiple select elements height not fixed
width: auto;
height: @baseLineHeight;
min-width: 16px;
- padding: 4px 5px;
+ padding: 6px;
font-size: @baseFontSize;
font-weight: normal;
line-height: @baseLineHeight;
padding-left: 14px;
padding-left: 4px \9; /* IE8 doesn't have border radius, so don't indent the padding */
margin-bottom: 0; // Remove the default margin on all inputs
- border-radius: 15px;
+ border-radius: @inputSearchBorderRadius;
}
/* Allow for input prepend/append in search forms */
border-radius: 0; // Override due to specificity
}
.form-search .input-append .search-query {
- border-radius: 14px 0 0 14px;
+ border-radius: @inputSearchBorderRadius 0 0 @inputSearchBorderRadius;
}
.form-search .input-append .btn {
- border-radius: 0 14px 14px 0;
+ border-radius: 0 @inputSearchBorderRadius @inputSearchBorderRadius 0;
}
.form-search .input-prepend .search-query {
- border-radius: 0 14px 14px 0;
+ border-radius: 0 @inputSearchBorderRadius @inputSearchBorderRadius 0;
}
.form-search .input-prepend .btn {
- border-radius: 14px 0 0 14px;
+ border-radius: @inputSearchBorderRadius 0 0 @inputSearchBorderRadius;
}
.input-block-level() {
display: block;
width: 100%;
- min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
- .box-sizing(border-box); // Makes inputs behave like true block-level elements
}
@inputBackground: @white;
@inputBorder: #ccc;
@inputBorderRadius: @baseBorderRadius;
+@inputSearchBorderRadius: 20px;
@inputDisabledBackground: @grayLighter;
@formActionsBackground: #f5f5f5;
-@inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
+@inputHeight: @baseLineHeight + 14px; // base line-height + 12px vertical padding + 2px top/bottom border
// Dropdowns