diff --git a/src/scss/typography.scss b/src/scss/typography.scss index 81ea0185a333b84ecb57448a8730e569973acd73..e69559a048e10858ada77e3aead964d752ceff08 100644 --- a/src/scss/typography.scss +++ b/src/scss/typography.scss @@ -2,3 +2,9 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { @apply gl-text-heading; } + +// Setting colors on real anchors with an href, +// but not on placeholder links/named anchors (without href). +a:is([href]) { + @apply gl-text-link gl-no-underline hover:gl-text-link hover:gl-underline; +} diff --git a/src/vendor/bootstrap/scss/_reboot.scss b/src/vendor/bootstrap/scss/_reboot.scss index cd93bfe240869d111019e7f8e1f68112b5f53abd..c6f6212aed1ab6b16507f3ce00f337ce4327f219 100644 --- a/src/vendor/bootstrap/scss/_reboot.scss +++ b/src/vendor/bootstrap/scss/_reboot.scss @@ -39,8 +39,7 @@ article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { // Body // // 1. Remove the margin in all browsers. -// 2. As a best practice, apply a default `background-color`. -// 3. Set an explicit initial text-align value so that we can later use +// 1. Set an explicit initial text-align value so that we can later use // the `inherit` value on things like `` elements. body { @@ -49,9 +48,7 @@ body { @include font-size($font-size-base); font-weight: $font-weight-base; line-height: $line-height-base; - color: $body-color; text-align: left; // 3 - background-color: $body-bg; // 2 } // Future-proof rule: in browsers that support :focus-visible, suppress the focus outline @@ -184,12 +181,9 @@ sup { top: -.5em; } // a { - color: $link-color; text-decoration: $link-decoration; - background-color: transparent; // Remove the gray background on active links in IE 10. @include hover() { - color: $link-hover-color; text-decoration: $link-hover-decoration; } } @@ -200,11 +194,9 @@ a { // See https://github.com/twbs/bootstrap/issues/19402 a:not([href]):not([class]) { - color: inherit; text-decoration: none; @include hover() { - color: inherit; text-decoration: none; } }