From 311806faa7d6d62f852f6440d0401f9e2b451c4a Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Thu, 16 Apr 2020 18:46:46 +0200 Subject: [PATCH] Color Configuration for Cookie Banner (#1302) * Color Configuration for Cookie Banner Right now, the colors of the cookie banner are hard-coded which can easily clash with the configured site colors in site settings. This patch switches to using the configured colors instead. * Update application.scss Co-authored-by: Ahmad Farhat Co-authored-by: Jesus Federico --- app/assets/stylesheets/application.scss | 4 +--- app/views/shared/components/_cookie_warning.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 2aa53b99..48d44c02 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -136,9 +136,7 @@ a { .cookies-banner { color: white; background-color: $button-color-blue; - #cookies-agree-button { - background-color: green !important; margin: 0; } } @@ -180,4 +178,4 @@ table { #delete-confirm:disabled { cursor: not-allowed; -} \ No newline at end of file +} diff --git a/app/views/shared/components/_cookie_warning.html.erb b/app/views/shared/components/_cookie_warning.html.erb index ca054c20..c3d4d516 100644 --- a/app/views/shared/components/_cookie_warning.html.erb +++ b/app/views/shared/components/_cookie_warning.html.erb @@ -14,13 +14,13 @@ %> <% if cookies && cookies['cookie_consented'] != 'true' %> -
+
<%= t("cookies.cookie_info") %> - +