From 0bb99915c6599d974aa38c81dfcab3a215b8c4df 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 --- .../intranet-tmpl/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 b17c6e4..7e89ac2 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.1.4