From 851b9ac9c0ec6d389aa53a520b5d47e41261f291 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Tue, 2 Aug 2022 12:04:07 +0200 Subject: [PATCH] links header --- assets/sass/_theme/_utils.sass | 8 ++++---- assets/sass/_theme/design-system/nav.sass | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/sass/_theme/_utils.sass b/assets/sass/_theme/_utils.sass index f4e43181..23c23450 100644 --- a/assets/sass/_theme/_utils.sass +++ b/assets/sass/_theme/_utils.sass @@ -18,15 +18,15 @@ body.full-width &, @content -@mixin link - color: $link-color - text-decoration-color: rgba($link-color, 0.3) +@mixin link($color: $link-color) + color: $color + text-decoration-color: rgba($color, 0.3) text-decoration-line: underline text-decoration-thickness: 1px text-underline-offset: 3px transition: text-decoration-color .3s ease &:hover - text-decoration-color: rgba($link-color, 1) + text-decoration-color: rgba($color, 1) text-decoration-thickness: 1px @mixin hover-translate-icon($pseudo: after, $distance: 10) diff --git a/assets/sass/_theme/design-system/nav.sass b/assets/sass/_theme/design-system/nav.sass index 87817407..a676281e 100644 --- a/assets/sass/_theme/design-system/nav.sass +++ b/assets/sass/_theme/design-system/nav.sass @@ -19,7 +19,7 @@ a:hover, a:focus, a:active - color: $header-color + @include link($header-color) ul display: flex list-style: none -- GitLab