From 12f7368c6db07db650b7d36dafb6c1289f1a1ffc Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 15 Feb 2022 16:18:54 +0100 Subject: Added scope for colored links --- src/scopes/_colored-links.scss | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/scopes/_colored-links.scss (limited to 'src/scopes') diff --git a/src/scopes/_colored-links.scss b/src/scopes/_colored-links.scss new file mode 100644 index 0000000..d44dffc --- /dev/null +++ b/src/scopes/_colored-links.scss @@ -0,0 +1,25 @@ +@use 'iro-sass/src/index' as iro; +@use '../functions' as fn; + +@include iro.props-namespace('colored-links') { + @include iro.props-store(( + --colors: ( + --link: ( + --idle: fn.global-color(--accent --link-idle --obj-lo), + --visited: fn.global-color(--accent --link-visited --obj-lo), + ) + ) + ), 'colors'); + + @include iro.bem-scope(iro.props-namespace()) { + :link { + color: fn.color(--link --idle); + text-decoration: underline; + } + + :visited { + color: fn.color(--link --visited); + text-decoration: underline; + } + } +} -- cgit v1.2.3-70-g09d2