diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/_declare-vars.scss | 4 | ||||
-rw-r--r-- | assets/css/objects/_icon.scss | 10 | ||||
-rw-r--r-- | assets/css/scopes/_links.scss | 46 | ||||
-rw-r--r-- | assets/css/style.scss | 5 |
4 files changed, 14 insertions, 51 deletions
diff --git a/assets/css/_declare-vars.scss b/assets/css/_declare-vars.scss index 6ffbb11..a4723c2 100644 --- a/assets/css/_declare-vars.scss +++ b/assets/css/_declare-vars.scss | |||
@@ -74,6 +74,6 @@ | |||
74 | 74 | ||
75 | @include iro.props-store(( | 75 | @include iro.props-store(( |
76 | --colors: ( | 76 | --colors: ( |
77 | --gray: fn.gray-palette(15%), | 77 | --gray: fn.gray-palette(11%), |
78 | ), | 78 | ), |
79 | ), 'palette-dark-lo'); | 79 | ), 'palette-dark'); |
diff --git a/assets/css/objects/_icon.scss b/assets/css/objects/_icon.scss new file mode 100644 index 0000000..fe3d03b --- /dev/null +++ b/assets/css/objects/_icon.scss | |||
@@ -0,0 +1,10 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use 'iro-design/src/functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('icon') { | ||
5 | @include iro.props-store(( | ||
6 | --dims: ( | ||
7 | --size: calc(1 / 16 * 16em), | ||
8 | ) | ||
9 | ), 'dims'); | ||
10 | } | ||
diff --git a/assets/css/scopes/_links.scss b/assets/css/scopes/_links.scss deleted file mode 100644 index a08ccd8..0000000 --- a/assets/css/scopes/_links.scss +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
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 | } | ||
diff --git a/assets/css/style.scss b/assets/css/style.scss index 5759a50..d027a70 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss | |||
@@ -18,6 +18,7 @@ | |||
18 | @use 'iro-design/src/objects/alert' as iro-alert; | 18 | @use 'iro-design/src/objects/alert' as iro-alert; |
19 | @use 'iro-design/src/objects/lightbox' as iro-lightbox; | 19 | @use 'iro-design/src/objects/lightbox' as iro-lightbox; |
20 | @use 'objects/emoji'; | 20 | @use 'objects/emoji'; |
21 | @use 'objects/icon'; | ||
21 | 22 | ||
22 | @use 'components/main'; | 23 | @use 'components/main'; |
23 | @use 'components/footer'; | 24 | @use 'components/footer'; |
@@ -29,14 +30,12 @@ | |||
29 | 30 | ||
30 | @use 'iro-design/src/scopes/blockquotes' as iro-blockquotes; | 31 | @use 'iro-design/src/scopes/blockquotes' as iro-blockquotes; |
31 | @use 'iro-design/src/scopes/code' as iro-code; | 32 | @use 'iro-design/src/scopes/code' as iro-code; |
32 | @use 'iro-design/src/scopes/colored-links' as iro-colored-links; | 33 | @use 'iro-design/src/scopes/links' as iro-links; |
33 | @use 'iro-design/src/scopes/headings' as iro-headings; | 34 | @use 'iro-design/src/scopes/headings' as iro-headings; |
34 | @use 'iro-design/src/scopes/invisible-links' as iro-invisible-links; | ||
35 | @use 'iro-design/src/scopes/lists' as iro-lists; | 35 | @use 'iro-design/src/scopes/lists' as iro-lists; |
36 | @use 'iro-design/src/scopes/tables' as iro-tables; | 36 | @use 'iro-design/src/scopes/tables' as iro-tables; |
37 | @use 'scopes/small'; | 37 | @use 'scopes/small'; |
38 | @use 'scopes/alerts'; | 38 | @use 'scopes/alerts'; |
39 | @use 'scopes/links'; | ||
40 | 39 | ||
41 | @use 'iro-design/src/utils'; | 40 | @use 'iro-design/src/utils'; |
42 | 41 | ||