From fde927be0a2a7fce18e73f5f33cadbe06b4df906 Mon Sep 17 00:00:00 2001 From: m5o Date: Tue, 6 Feb 2018 17:38:48 +0100 Subject: [PATCH] set color to form-control-plaintext MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- scss/_forms.scss | 1 + scss/_variables.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/scss/_forms.scss b/scss/_forms.scss index 8835595e7344..c079bd5c4f07 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 9825b080832a..9277d30d2612 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -414,6 +414,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;