From 4d2e8d6c91f31e2aa3db97d75168560c9ace15c0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 15 Aug 2018 13:14:02 +0000 Subject: [PATCH] Bug 21229: Correct nesting and specificity for some button styles This patch corrects some Bootstrap button-related CSS which was causing some buttons to have the wrong color: - Circulation -> Check out: "Add a new message" link is black - Catalog -> Details page: "Print" button is blue To test, apply the patch and rebuild CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). Clear your browser cache if necessary and view the above pages to confirm the problem is fixed. Signed-off-by: Claire Gravely Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- .../prog/css/src/staff-global.scss | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index bbc4f4b4a2..55a6f70943 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -30,16 +30,6 @@ a { text-decoration: none; } - &.btn { - color: #004D99; - text-decoration: none; - - &:link, - &:visited { - color: #333333; - } - } - &:hover, &:active { color: #538200; @@ -52,18 +42,24 @@ a { } } - .btn-link { + &.btn { &:link, &:visited { - color: #004D99; + color: #333333; } - &:hover { - color: #538200; + &.btn-link { + &:link, + &:visited { + color: #004D99; + } + + &:hover { + color: #538200; + } } } - &.cancel { padding-left: 1em; } -- 2.39.5