Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
2d9b3c45
Commit
2d9b3c45
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
move formfieldstate mixin to mixins.less for
#1785
parent
3b57fba7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
less/forms.less
+0
-27
less/forms.less
less/mixins.less
+33
-2
less/mixins.less
with
33 additions
and
29 deletions
+33
-29
docs/assets/bootstrap.zip
+
0
-
0
View file @
2d9b3c45
No preview for this file type
This diff is collapsed.
Click to expand it.
less/forms.less
+
0
-
27
View file @
2d9b3c45
...
...
@@ -259,33 +259,6 @@ textarea[readonly] {
// 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
.control-group.warning {
.formFieldState(@warningText, @warningText, @warningBackground);
...
...
This diff is collapsed.
Click to expand it.
less/mixins.less
+
33
-
2
View file @
2d9b3c45
...
...
@@ -244,8 +244,6 @@
}
}
// Input grid system
// -------------------------
#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
// --------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment