aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorm5o <[email protected]>2018-02-11 23:25:36 +0100
committerMark Otto <[email protected]>2018-02-11 14:25:36 -0800
commitf81f419b22949d2bf0f4d346891be44724109135 (patch)
tree055de8ec76803de1c247327f48eecc1a79b2f0ed /scss
parent3ffe4f82b794e174fafe58d80980aa37bc02e5e4 (diff)
downloadbootstrap-f81f419b22949d2bf0f4d346891be44724109135.tar.xz
bootstrap-f81f419b22949d2bf0f4d346891be44724109135.zip
set color to form-control-plaintext (#25565)
* set color to `.form-control-plaintext` * fixes readability on dark themes like ‘darkly’ * https://bootswatch.com/darkly/index.html#forms * https://bootswatch.com/slate/index.html#forms * https://bootswatch.com/superhero/index.html#superhero * https://bootswatch.com/solar/index.html#forms /cc @thomaspark
Diffstat (limited to 'scss')
-rw-r--r--scss/_forms.scss1
-rw-r--r--scss/_variables.scss1
2 files changed, 2 insertions, 0 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss
index 8835595e7..c079bd5c4 100644
--- a/scss/_forms.scss
+++ b/scss/_forms.scss
@@ -121,6 +121,7 @@ select.form-control {
padding-bottom: $input-padding-y;
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
line-height: $input-line-height;
+ color: $input-plaintext-color;
background-color: transparent;
border: solid transparent;
border-width: $input-border-width 0;
diff --git a/scss/_variables.scss b/scss/_variables.scss
index e7f18acc7..2178e1f9c 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -416,6 +416,7 @@ $input-focus-width: $input-btn-focus-width !default;
$input-focus-box-shadow: $input-btn-focus-box-shadow !default;
$input-placeholder-color: $gray-600 !default;
+$input-plaintext-color: $body-color !default;
$input-height-border: $input-border-width * 2 !default;