Bug 33272: Color of the "(remove)" link when an item is in the cart (OPAC)

This patch improves the CSS for styling the OPAC cart's "remove" link in
search results so that the color is consistent within alternating table
row colors.

To test, apply the patch and rebuild the OPAC CSS.

- Perform a search in the OPAC which will return multiple results.
- Click the "Add to cart" link next to multiple results.
- The "remove" link which appears should be the correct red color
  whether the table row background is white or grey.

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-03-21 12:08:04 +00:00 committed by Tomas Cohen Arazi
parent f44f894621
commit 90dc36f57e
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 15 additions and 7 deletions

View File

@ -60,17 +60,21 @@
}
}
@mixin cartRemove {
color: #900;
font-size: 90%;
padding-left: 0;
&:hover {
color: #C60000;
}
}
a {
&:link,
&:visited {
&.cartRemove {
color: #900;
font-size: 90%;
padding-left: 0;
&:hover {
color: #C60000;
}
@include cartRemove();
}
}
@ -657,6 +661,10 @@ th {
&.btn-link {
color: $links;
&.cartRemove {
@include cartRemove();
}
}
}
}