aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2018-10-22 19:52:20 +0200
committerXhmikosR <[email protected]>2018-10-23 05:58:19 +0300
commit1c91f48251cc290e7ed9a23feb0b0d0f4d5fd684 (patch)
tree93e988f3a31bf016204db060ef6da4cc43fa03fa
parentff40e00323f9256d8dfb678d13b57bfb01ac7354 (diff)
downloadbootstrap-1c91f48251cc290e7ed9a23feb0b0d0f4d5fd684.tar.xz
bootstrap-1c91f48251cc290e7ed9a23feb0b0d0f4d5fd684.zip
Variable darken percentage for emphasized links
-rw-r--r--scss/_variables.scss11
-rw-r--r--scss/mixins/_text-emphasis.scss2
2 files changed, 7 insertions, 6 deletions
diff --git a/scss/_variables.scss b/scss/_variables.scss
index ada9af5a1..a16ea1fbb 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -166,11 +166,12 @@ $body-color: $gray-900 !default;
//
// Style anchor elements.
-$link-color: $primary !default;
-$link-decoration: none !default;
-$link-hover-color: darken($link-color, 15%) !default;
-$link-hover-decoration: underline !default;
-
+$link-color: $primary !default;
+$link-decoration: none !default;
+$link-hover-color: darken($link-color, 15%) !default;
+$link-hover-decoration: underline !default;
+// Darken percentage for links with `.text-*` class (e.g. `.text-success`)
+$emphasized-link-hover-darken-percentage: 15% !default;
// Paragraphs
//
diff --git a/scss/mixins/_text-emphasis.scss b/scss/mixins/_text-emphasis.scss
index 58db3e0fc..1819fb03d 100644
--- a/scss/mixins/_text-emphasis.scss
+++ b/scss/mixins/_text-emphasis.scss
@@ -8,7 +8,7 @@
}
a#{$parent} {
@include hover-focus {
- color: darken($color, 10%) !important;
+ color: darken($color, $emphasized-link-hover-darken-percentage) !important;
}
}
}