From 22197a9e51304e9912c63a23ff5fb42c3f663b91 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Tue, 28 Apr 2020 15:56:38 +0200 Subject: [PATCH] Add Bootstrap input CSS variable overrides --- app/assets/stylesheets/_variables.scss | 3 +++ app/assets/stylesheets/application.css.scss | 1 + app/assets/stylesheets/overrides/_inputs.scss | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 app/assets/stylesheets/overrides/_inputs.scss diff --git a/app/assets/stylesheets/_variables.scss b/app/assets/stylesheets/_variables.scss index d46ead86..ccd6fad1 100644 --- a/app/assets/stylesheets/_variables.scss +++ b/app/assets/stylesheets/_variables.scss @@ -23,6 +23,7 @@ $colorNames: ( --background: #f0edf4; --card-bg: #ffffff; --card-cap-bg: #f7f7f7; + --input-bg: #ffffff; /** NOTE for all *-text variables @@ -50,4 +51,6 @@ $colorNames: ( --success-text: 255, 255, 255; --muted-text: 108, 117, 125; + + --input-text: 0, 0, 0; } \ No newline at end of file diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 92995622..f9f299cd 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -86,6 +86,7 @@ $navbar-inverse-toggle-border-color: #512da8; "overrides/colors", "overrides/card", "overrides/dropdown", +"overrides/inputs", "overrides/links", "overrides/list-group", "overrides/navbar"; diff --git a/app/assets/stylesheets/overrides/_inputs.scss b/app/assets/stylesheets/overrides/_inputs.scss new file mode 100644 index 00000000..d96894f7 --- /dev/null +++ b/app/assets/stylesheets/overrides/_inputs.scss @@ -0,0 +1,4 @@ +.form-control { + background-color: var(--input-bg); + color: RGB(var(--input-text)); +} \ No newline at end of file