Bug 21229: Correct nesting and specificity for some button styles
authorOwen Leonard <oleonard@myacpl.org>
Wed, 15 Aug 2018 13:14:02 +0000 (13:14 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 21 Aug 2018 11:58:11 +0000 (11:58 +0000)
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 <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss

index bbc4f4b..55a6f70 100644 (file)
@@ -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;
     }