diff options
author | Volpeon <git@volpeon.ink> | 2024-04-21 16:17:46 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-04-21 16:17:46 +0200 |
commit | 71475febdd8b29e9902ebe6fabdc8ca6a6d2e167 (patch) | |
tree | a36c4909d72539f2adc85b7e4de4d302f70f9ef7 /src/objects | |
parent | Update (diff) | |
download | iro-design-71475febdd8b29e9902ebe6fabdc8ca6a6d2e167.tar.gz iro-design-71475febdd8b29e9902ebe6fabdc8ca6a6d2e167.tar.bz2 iro-design-71475febdd8b29e9902ebe6fabdc8ca6a6d2e167.zip |
Update
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/_icon.scss | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss index ea7ac46..c045056 100644 --- a/src/objects/_icon.scss +++ b/src/objects/_icon.scss | |||
@@ -4,9 +4,10 @@ | |||
4 | @include iro.props-namespace('icon') { | 4 | @include iro.props-namespace('icon') { |
5 | @include iro.props-store(( | 5 | @include iro.props-store(( |
6 | --dims: ( | 6 | --dims: ( |
7 | --stroke: 1.5px, | 7 | --stroke: 1.5px, |
8 | --size: calc(1 / 14 * 16em), | 8 | --size: calc(1 / 14 * 16em), |
9 | --valign: -.17em, | 9 | --vmargin: calc((1em - fn.dim(--size, null)) * .5), |
10 | --valign: -.14em, | ||
10 | ) | 11 | ) |
11 | ), 'dims'); | 12 | ), 'dims'); |
12 | 13 | ||
@@ -14,6 +15,8 @@ | |||
14 | display: inline; | 15 | display: inline; |
15 | width: fn.dim(--size); | 16 | width: fn.dim(--size); |
16 | height: fn.dim(--size); | 17 | height: fn.dim(--size); |
18 | margin-top: fn.dim(--vmargin); | ||
19 | margin-bottom: fn.dim(--vmargin); | ||
17 | stroke-width: fn.dim(--stroke); | 20 | stroke-width: fn.dim(--stroke); |
18 | stroke-linecap: round; | 21 | stroke-linecap: round; |
19 | stroke-linejoin: round; | 22 | stroke-linejoin: round; |