Skip to content

Commit

Permalink
Variable darken percentage for emphasized links
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and XhmikosR committed Oct 23, 2018
1 parent ff40e00 commit 1c91f48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down
2 changes: 1 addition & 1 deletion scss/mixins/_text-emphasis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
a#{$parent} {
@include hover-focus {
color: darken($color, 10%) !important;
color: darken($color, $emphasized-link-hover-darken-percentage) !important;
}
}
}

0 comments on commit 1c91f48

Please sign in to comment.