mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-15 10:05:40 +02:00
move formfieldstate mixin to mixins.less for #1785
This commit is contained in:
Binary file not shown.
@@ -259,33 +259,6 @@ textarea[readonly] {
|
|||||||
// FORM FIELD FEEDBACK STATES
|
// FORM FIELD FEEDBACK STATES
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
// Mixin for form field states
|
|
||||||
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
|
|
||||||
// Set the text color
|
|
||||||
> label,
|
|
||||||
.help-block,
|
|
||||||
.help-inline {
|
|
||||||
color: @textColor;
|
|
||||||
}
|
|
||||||
// Style inputs accordingly
|
|
||||||
input,
|
|
||||||
select,
|
|
||||||
textarea {
|
|
||||||
color: @textColor;
|
|
||||||
border-color: @borderColor;
|
|
||||||
&:focus {
|
|
||||||
border-color: darken(@borderColor, 10%);
|
|
||||||
.box-shadow(0 0 6px lighten(@borderColor, 20%));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Give a small background color for input-prepend/-append
|
|
||||||
.input-prepend .add-on,
|
|
||||||
.input-append .add-on {
|
|
||||||
color: @textColor;
|
|
||||||
background-color: @backgroundColor;
|
|
||||||
border-color: @textColor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Warning
|
// Warning
|
||||||
.control-group.warning {
|
.control-group.warning {
|
||||||
.formFieldState(@warningText, @warningText, @warningBackground);
|
.formFieldState(@warningText, @warningText, @warningBackground);
|
||||||
|
@@ -244,8 +244,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Input grid system
|
// Input grid system
|
||||||
// -------------------------
|
// -------------------------
|
||||||
#inputGridSystem {
|
#inputGridSystem {
|
||||||
@@ -274,6 +272,39 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Form field states (used in forms.less)
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Mixin for form field states
|
||||||
|
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
|
||||||
|
// Set the text color
|
||||||
|
> label,
|
||||||
|
.help-block,
|
||||||
|
.help-inline {
|
||||||
|
color: @textColor;
|
||||||
|
}
|
||||||
|
// Style inputs accordingly
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
color: @textColor;
|
||||||
|
border-color: @borderColor;
|
||||||
|
&:focus {
|
||||||
|
border-color: darken(@borderColor, 10%);
|
||||||
|
.box-shadow(0 0 6px lighten(@borderColor, 20%));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Give a small background color for input-prepend/-append
|
||||||
|
.input-prepend .add-on,
|
||||||
|
.input-append .add-on {
|
||||||
|
color: @textColor;
|
||||||
|
background-color: @backgroundColor;
|
||||||
|
border-color: @textColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// CSS3 PROPERTIES
|
// CSS3 PROPERTIES
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user