From 4b0510c8a6a8a0b5b22810c21730be8da98d6a43 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Tue, 20 Apr 2021 22:53:25 +0200 Subject: [PATCH] Extract foundry highlight text shadow to mixin --- src/scss/components/_check.scss | 4 +++- src/scss/utils/_mixins.scss | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/scss/components/_check.scss b/src/scss/components/_check.scss index e441499..796959d 100644 --- a/src/scss/components/_check.scss +++ b/src/scss/components/_check.scss @@ -1,9 +1,11 @@ +@use "../utils/mixins"; + .ds4-check { cursor: pointer; display: flex; justify-content: space-between; &:hover { - text-shadow: 0 0 10px red; + @include mixins.foundry-highlight-text-shadow; } } diff --git a/src/scss/utils/_mixins.scss b/src/scss/utils/_mixins.scss index 0c35484..9f0db34 100644 --- a/src/scss/utils/_mixins.scss +++ b/src/scss/utils/_mixins.scss @@ -30,3 +30,7 @@ background-color: transparent; } } + +@mixin foundry-highlight-text-shadow { + text-shadow: 0 0 10px red; +}