Skip to content

Commit

Permalink
fix input color on dark themes, closes thomaspark#243
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspark committed Apr 3, 2014
1 parent 722db17 commit 236ff83
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 36 deletions.
12 changes: 8 additions & 4 deletions amelia/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -5824,6 +5824,14 @@ table a,
color: #fff;
text-decoration: underline;
}
input,
textarea {
color: #444444;
}
legend {
font-family: 'Lobster', cursive;
color: #fff;
}
.has-warning .help-block,
.has-warning .control-label {
color: #ecd77f;
Expand All @@ -5848,10 +5856,6 @@ table a,
.has-success .form-control:focus {
border-color: #93e08b;
}
legend {
font-family: 'Lobster', cursive;
color: #fff;
}
.input-group-addon {
color: #444444;
}
Expand Down
2 changes: 1 addition & 1 deletion amelia/bootstrap.min.css

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions amelia/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ table,

// Forms ======================================================================

input,
textarea {
color: @input-color;
}

legend {
font-family: 'Lobster', cursive;
color: #fff;
}

.has-warning {
.help-block,
.control-label {
Expand Down Expand Up @@ -120,11 +130,6 @@ table,
}
}

legend {
font-family: 'Lobster', cursive;
color: #fff;
}

.input-group-addon {
color: @btn-default-color;
}
Expand Down
7 changes: 1 addition & 6 deletions cyborg/bootstrap.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import url("//fonts.googleapis.com/css?family=Droid+Sans:400,700");
/*!
* Bootswatch v3.1.1
* Bootswatch v3.1.1+1
* Homepage: http://bootswatch.com
* Copyright 2012-2014 Thomas Park
* Licensed under MIT
Expand Down Expand Up @@ -5845,11 +5845,6 @@ legend {
.input-group-addon {
background-color: #424242;
}
.nav .caret,
.nav a:hover .caret {
border-top-color: #fff;
border-bottom-color: #fff;
}
.nav-tabs a,
.nav-pills a,
.breadcrumb a,
Expand Down
4 changes: 2 additions & 2 deletions cyborg/bootstrap.min.css

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions cyborg/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ legend {

// Navs =======================================================================

.nav {

.caret,
a:hover .caret {
border-top-color: #fff;
border-bottom-color: #fff;
}
}

.nav-tabs,
.nav-pills,
.breadcrumb,
Expand Down
10 changes: 8 additions & 2 deletions darkly/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -5880,14 +5880,20 @@ table-bordered > tfoot > tr > td,
.table-bordered > tfoot > tr > td {
border: 1px solid #464545;
}
input,
textarea {
color: #464545;
}
.form-control,
input {
input,
textarea {
border: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.form-control:focus,
input:focus {
input:focus,
textarea:focus {
-webkit-box-shadow: none;
box-shadow: none;
}
Expand Down
2 changes: 1 addition & 1 deletion darkly/bootstrap.min.css

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion darkly/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,14 @@ table,

// Forms ======================================================================

input,
textarea {
color: @input-color;
}

.form-control,
input {
input,
textarea {
border: none;
.box-shadow(none);

Expand Down
10 changes: 7 additions & 3 deletions superhero/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1712,14 +1712,14 @@ output {
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(0, 0, 0, 0.6);
}
.form-control::-moz-placeholder {
color: #4e5d6c;
color: #cccccc;
opacity: 1;
}
.form-control:-ms-input-placeholder {
color: #4e5d6c;
color: #cccccc;
}
.form-control::-webkit-input-placeholder {
color: #4e5d6c;
color: #cccccc;
}
.form-control[disabled],
.form-control[readonly],
Expand Down Expand Up @@ -5863,6 +5863,10 @@ table > tfoot > tr > td,
.table > tfoot > tr > td {
border-color: transparent;
}
input,
textarea {
color: #2b3e50;
}
label,
.radio label,
.checkbox label,
Expand Down
2 changes: 1 addition & 1 deletion superhero/bootstrap.min.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions superhero/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ table,

// Forms ======================================================================

input,
textarea {
color: @input-color;
}

label,
.radio label,
.checkbox label,
Expand Down
2 changes: 1 addition & 1 deletion superhero/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
@input-border-focus: transparent;

//** Placeholder text color
@input-color-placeholder: @gray-light;
@input-color-placeholder: #ccc;

//** Default `.form-control` height
@input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
Expand Down

0 comments on commit 236ff83

Please sign in to comment.