From 35432916f95568e38138373be28d2745d4f47577 Mon Sep 17 00:00:00 2001 From: David Haynes Date: Thu, 21 Dec 2017 13:52:45 -0500 Subject: [PATCH] Ensure btn-outline colors remain the same in - specifically, if a href= is missing then ensure the styling persists --- src/html/demo.html | 11 +++++++---- src/scss/_overwrites.scss | 22 +++++++++++++++++----- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/html/demo.html b/src/html/demo.html index 9a84a341..e11abb99 100644 --- a/src/html/demo.html +++ b/src/html/demo.html @@ -32,7 +32,7 @@ - + @@ -65,6 +65,11 @@ + + + Download + + - - - + \ No newline at end of file diff --git a/src/scss/_overwrites.scss b/src/scss/_overwrites.scss index 7f2c17b4..0dda3765 100644 --- a/src/scss/_overwrites.scss +++ b/src/scss/_overwrites.scss @@ -1,9 +1,21 @@ // Things that originate from Bootstrap that we overwrite +// Legacy legend behavior legend { - @extend legend; - margin-top: 1rem; - margin-bottom: 1rem; - border: 0; - border-bottom: 1px solid rgba(0,0,0,0.1) + @extend legend; + margin-top: 1rem; + margin-bottom: 1rem; + border: 0; + border-bottom: 1px solid rgba(0, 0, 0, 0.1) +} + +// Ensure btn-outline colors remain the same even if there is no href +@each $color, $value in $theme-colors { + a.btn-outline-#{$color}:not([href]) { + color: $value; + } + + a.btn-outline-#{$color}:not([href]):hover { + color: $white; + } } \ No newline at end of file -- GitLab