diff options
author | Volpeon <git@volpeon.ink> | 2023-01-10 12:42:16 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-10 12:42:16 +0100 |
commit | 416436b6a757479de8ce58fd87c4927cb52b541d (patch) | |
tree | 210d1844066982a9022ed69bbf532e7b2d5edcf8 /assets/css/scopes | |
parent | Improved appearance of related content (diff) | |
download | volpeon.ink-416436b6a757479de8ce58fd87c4927cb52b541d.tar.gz volpeon.ink-416436b6a757479de8ce58fd87c4927cb52b541d.tar.bz2 volpeon.ink-416436b6a757479de8ce58fd87c4927cb52b541d.zip |
Improved list page header
Diffstat (limited to 'assets/css/scopes')
-rw-r--r-- | assets/css/scopes/_links.scss | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/assets/css/scopes/_links.scss b/assets/css/scopes/_links.scss new file mode 100644 index 0000000..a08ccd8 --- /dev/null +++ b/assets/css/scopes/_links.scss | |||
@@ -0,0 +1,46 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use 'iro-design/src/functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('links') { | ||
5 | @include iro.props-store(( | ||
6 | --colors: ( | ||
7 | --idle: fn.global-color(--accent --link-idle --obj-lo), | ||
8 | --visited: fn.global-color(--accent --link-visited --obj-lo), | ||
9 | --key-focus: ( | ||
10 | --border: fn.global-color(--focus --fill), | ||
11 | --shadow: 0 0 0 calc(fn.global-dim(--focus --outline-width) + 2px) fn.global-color(--accent --primary --semi), | ||
12 | ), | ||
13 | ) | ||
14 | ), 'colors'); | ||
15 | |||
16 | @include iro.bem-scope(iro.props-namespace()) { | ||
17 | :link { | ||
18 | text-decoration: underline; | ||
19 | } | ||
20 | |||
21 | :visited { | ||
22 | text-decoration: underline; | ||
23 | } | ||
24 | |||
25 | :link, | ||
26 | :visited { | ||
27 | border-radius: .5px; | ||
28 | |||
29 | @include iro.bem-at-theme('keyboard') { | ||
30 | &:focus { | ||
31 | box-shadow: 0 0 0 2px fn.color(--key-focus --border), fn.color(--key-focus --shadow); | ||
32 | } | ||
33 | } | ||
34 | } | ||
35 | |||
36 | @include iro.bem-modifier('colored') { | ||
37 | :link { | ||
38 | color: fn.color(--idle); | ||
39 | } | ||
40 | |||
41 | :visited { | ||
42 | color: fn.color(--visited); | ||
43 | } | ||
44 | } | ||
45 | } | ||
46 | } | ||