From ac07a790784e36641c761658dc13f5c61249c6dc Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 6 Jul 2022 18:09:24 +0100 Subject: [PATCH] Use bootstrap variables to style links Bootstrap 5 now has a hover color, and instead of trying to override with CSS, it's easier to use the variables instead. --- app/assets/stylesheets/common.scss | 11 ----------- app/assets/stylesheets/parameters.scss | 5 +++++ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 03fe7bd42..5c88da6b7 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -62,17 +62,6 @@ small, aside { .icon.note.grey { /* no-r2 */ background-position: -240px -20px; } .icon.query { /* no-r2 */ background-position: -260px 0; } -/* Rules for links */ - -a { - color: #24d; - text-decoration: none; - outline: 0; - &:hover { - text-decoration: underline; - } -} - /* Utility for de-emphasizing content */ .text-muted a { diff --git a/app/assets/stylesheets/parameters.scss b/app/assets/stylesheets/parameters.scss index 3ccb23c74..31e7edce5 100644 --- a/app/assets/stylesheets/parameters.scss +++ b/app/assets/stylesheets/parameters.scss @@ -18,4 +18,9 @@ $keyline: 1px solid $lightgrey; $list-highlight: #FFFFC0; $border: 1px solid $grey; +$link-color: #24d; +$link-hover-color: #24d; +$link-decoration: none; +$link-hover-decoration: underline; + $enable-negative-margins: true; -- 2.39.5