From 9aa281d95eea8d14587d728875f4a741789f2f5a Mon Sep 17 00:00:00 2001 From: Francesco Improta Date: Tue, 10 Sep 2024 16:35:53 +0200 Subject: [PATCH] fix: alert link underline Co-authored-by: Andrea Stagi --- src/scss/bootstrap-italia.scss | 1 - src/scss/custom/_alert.scss | 10 +++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/scss/bootstrap-italia.scss b/src/scss/bootstrap-italia.scss index 32e3b8b3e3..8a4f2e1360 100644 --- a/src/scss/bootstrap-italia.scss +++ b/src/scss/bootstrap-italia.scss @@ -44,7 +44,6 @@ @import 'bootstrap/scss/breadcrumb'; @import 'bootstrap/scss/pagination'; @import 'bootstrap/scss/badge'; -@import 'bootstrap/scss/alert'; @import 'bootstrap/scss/progress'; @import 'bootstrap/scss/list-group'; @import 'bootstrap/scss/close'; diff --git a/src/scss/custom/_alert.scss b/src/scss/custom/_alert.scss index f1c1713990..6cc9dd20cb 100644 --- a/src/scss/custom/_alert.scss +++ b/src/scss/custom/_alert.scss @@ -11,9 +11,6 @@ background-position: 20px 12px; background-repeat: no-repeat; background-size: 32px 32px; - .alert-link { - color: $link-color; - } } // Headings for larger alerts @@ -25,13 +22,13 @@ // Provide class for links that match alerts .alert-link { - font-weight: $alert-link-font-weight; - text-decoration: none; + color: $link-color; + font-weight: $font-weight-semibold; + text-decoration: underline; } // Dismissible alerts // Expand the right padding and account for the close button's positioning. - .alert-dismissible { padding-right: ($alert-padding-x * 2); // Adjust close link position @@ -47,7 +44,6 @@ // Alternate styles // Generate contextual modifier classes for colorizing the alert. - @each $color, $value in $theme-colors { @if ($color == 'danger' or $color == 'warning' or $color == 'success' or $color == 'info' or $color == 'primary') { .alert-#{$color} {