From: Andy Allan Date: Wed, 6 Jul 2022 17:09:24 +0000 (+0100) Subject: Use bootstrap variables to style links X-Git-Tag: live~1640^2~6 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/ac07a790784e36641c761658dc13f5c61249c6dc 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. --- 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;