Skip to content

Commit 0c1c236

Browse files
committed
improve text color and borders for legibility
1 parent b747762 commit 0c1c236

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

bootstrap.css

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.apache.org/licenses/LICENSE-2.0
77
*
88
* Designed and built with all the love in the world @twitter by @mdo and @fat.
9-
* Date: Sun Oct 9 22:31:28 PDT 2011
9+
* Date: Sun Oct 9 22:37:55 PDT 2011
1010
*/
1111
/* Reset.less
1212
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -723,10 +723,10 @@ input[type=file]:focus, input[type=checkbox]:focus, select:focus {
723723
outline: 1px dotted #666;
724724
}
725725
form .clearfix.error > label, form .clearfix.error .help-block, form .clearfix.error .help-inline {
726-
color: #ee5f5b;
726+
color: #b94a48;
727727
}
728728
form .clearfix.error input, form .clearfix.error textarea {
729-
color: #ee5f5b;
729+
color: #b94a48;
730730
border-color: #ee5f5b;
731731
}
732732
form .clearfix.error input:focus, form .clearfix.error textarea:focus {
@@ -736,15 +736,15 @@ form .clearfix.error input:focus, form .clearfix.error textarea:focus {
736736
box-shadow: 0 0 6px #f8b9b7;
737737
}
738738
form .clearfix.error .input-prepend .add-on, form .clearfix.error .input-append .add-on {
739-
color: #ee5f5b;
739+
color: #b94a48;
740740
background-color: #fce6e6;
741-
border-color: #ee5f5b;
741+
border-color: #b94a48;
742742
}
743743
form .clearfix.warning > label, form .clearfix.warning .help-block, form .clearfix.warning .help-inline {
744-
color: #ccae64;
744+
color: #c09853;
745745
}
746746
form .clearfix.warning input, form .clearfix.warning textarea {
747-
color: #ccae64;
747+
color: #c09853;
748748
border-color: #ccae64;
749749
}
750750
form .clearfix.warning input:focus, form .clearfix.warning textarea:focus {
@@ -754,15 +754,15 @@ form .clearfix.warning input:focus, form .clearfix.warning textarea:focus {
754754
box-shadow: 0 0 6px #e5d6b1;
755755
}
756756
form .clearfix.warning .input-prepend .add-on, form .clearfix.warning .input-append .add-on {
757-
color: #ccae64;
757+
color: #c09853;
758758
background-color: #d2b877;
759-
border-color: #ccae64;
759+
border-color: #c09853;
760760
}
761761
form .clearfix.success > label, form .clearfix.success .help-block, form .clearfix.success .help-inline {
762-
color: #57a957;
762+
color: #468847;
763763
}
764764
form .clearfix.success input, form .clearfix.success textarea {
765-
color: #57a957;
765+
color: #468847;
766766
border-color: #57a957;
767767
}
768768
form .clearfix.success input:focus, form .clearfix.success textarea:focus {
@@ -772,9 +772,9 @@ form .clearfix.success input:focus, form .clearfix.success textarea:focus {
772772
box-shadow: 0 0 6px #9acc9a;
773773
}
774774
form .clearfix.success .input-prepend .add-on, form .clearfix.success .input-append .add-on {
775-
color: #57a957;
775+
color: #468847;
776776
background-color: #bcddbc;
777-
border-color: #57a957;
777+
border-color: #468847;
778778
}
779779
.input-mini,
780780
input.mini,

bootstrap.min.css

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/forms.less

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ select:focus {
169169
// --------------------------
170170

171171
// Mixin for form field states
172-
.formFieldState(@textColor: #555, @backgroundColor: #f5f5f5) {
172+
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
173173
// Set the text color
174174
> label,
175175
.help-block,
@@ -180,10 +180,10 @@ select:focus {
180180
input,
181181
textarea {
182182
color: @textColor;
183-
border-color: @textColor;
183+
border-color: @borderColor;
184184
&:focus {
185-
border-color: darken(@textColor, 10%);
186-
.box-shadow(0 0 6px lighten(@textColor, 20%);
185+
border-color: darken(@borderColor, 10%);
186+
.box-shadow(0 0 6px lighten(@borderColor, 20%);
187187
}
188188
}
189189
// Give a small background color for input-prepend/-append
@@ -196,15 +196,15 @@ select:focus {
196196
}
197197
// Error
198198
form .clearfix.error {
199-
.formFieldState(#ee5f5b, lighten(#ee5f5b, 30%));
199+
.formFieldState(#b94a48, #ee5f5b, lighten(#ee5f5b, 30%));
200200
}
201201
// Warning
202202
form .clearfix.warning {
203-
.formFieldState(#CCAE64, lighten(#CCAE64, 5%));
203+
.formFieldState(#c09853, #ccae64, lighten(#CCAE64, 5%));
204204
}
205205
// Success
206206
form .clearfix.success {
207-
.formFieldState(#57a957, lighten(#57a957, 30%));
207+
.formFieldState(#468847, #57a957, lighten(#57a957, 30%));
208208
}
209209

210210

0 commit comments

Comments
 (0)