aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-10-09 22:38:48 -0700
committerMark Otto <[email protected]>2011-10-09 22:38:48 -0700
commit0c1c23641460e3d08d04d0fefc57d950dc6c1da7 (patch)
tree2fb1f017fd4229112c4eff1c6bd32cf9e88b229a /lib
parentb74776281d46f6745dd75fcc21fdd38fbc7e9f90 (diff)
downloadbootstrap-0c1c23641460e3d08d04d0fefc57d950dc6c1da7.tar.xz
bootstrap-0c1c23641460e3d08d04d0fefc57d950dc6c1da7.zip
improve text color and borders for legibility
Diffstat (limited to 'lib')
-rw-r--r--lib/forms.less14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/forms.less b/lib/forms.less
index acb692a7f..6667df0c4 100644
--- a/lib/forms.less
+++ b/lib/forms.less
@@ -169,7 +169,7 @@ select:focus {
// --------------------------
// Mixin for form field states
-.formFieldState(@textColor: #555, @backgroundColor: #f5f5f5) {
+.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
// Set the text color
> label,
.help-block,
@@ -180,10 +180,10 @@ select:focus {
input,
textarea {
color: @textColor;
- border-color: @textColor;
+ border-color: @borderColor;
&:focus {
- border-color: darken(@textColor, 10%);
- .box-shadow(0 0 6px lighten(@textColor, 20%);
+ border-color: darken(@borderColor, 10%);
+ .box-shadow(0 0 6px lighten(@borderColor, 20%);
}
}
// Give a small background color for input-prepend/-append
@@ -196,15 +196,15 @@ select:focus {
}
// Error
form .clearfix.error {
- .formFieldState(#ee5f5b, lighten(#ee5f5b, 30%));
+ .formFieldState(#b94a48, #ee5f5b, lighten(#ee5f5b, 30%));
}
// Warning
form .clearfix.warning {
- .formFieldState(#CCAE64, lighten(#CCAE64, 5%));
+ .formFieldState(#c09853, #ccae64, lighten(#CCAE64, 5%));
}
// Success
form .clearfix.success {
- .formFieldState(#57a957, lighten(#57a957, 30%));
+ .formFieldState(#468847, #57a957, lighten(#57a957, 30%));
}