Skip to content

Commit 1c91f48

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Variable darken percentage for emphasized links
1 parent ff40e00 commit 1c91f48

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

scss/_variables.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,12 @@ $body-color: $gray-900 !default;
166166
//
167167
// Style anchor elements.
168168

169-
$link-color: $primary !default;
170-
$link-decoration: none !default;
171-
$link-hover-color: darken($link-color, 15%) !default;
172-
$link-hover-decoration: underline !default;
173-
169+
$link-color: $primary !default;
170+
$link-decoration: none !default;
171+
$link-hover-color: darken($link-color, 15%) !default;
172+
$link-hover-decoration: underline !default;
173+
// Darken percentage for links with `.text-*` class (e.g. `.text-success`)
174+
$emphasized-link-hover-darken-percentage: 15% !default;
174175

175176
// Paragraphs
176177
//

scss/mixins/_text-emphasis.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
a#{$parent} {
1010
@include hover-focus {
11-
color: darken($color, 10%) !important;
11+
color: darken($color, $emphasized-link-hover-darken-percentage) !important;
1212
}
1313
}
1414
}

0 commit comments

Comments
 (0)