diff options
author | Volpeon <git@volpeon.ink> | 2023-10-29 21:43:11 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-10-29 21:43:11 +0100 |
commit | 101934fcb11fe138abcd54eeb0b1d5c2b29a3502 (patch) | |
tree | 2b36b9308e6a999b74d1f1b4a64c000c35dae75c /src/objects | |
parent | Update (diff) | |
download | iro-design-101934fcb11fe138abcd54eeb0b1d5c2b29a3502.tar.gz iro-design-101934fcb11fe138abcd54eeb0b1d5c2b29a3502.tar.bz2 iro-design-101934fcb11fe138abcd54eeb0b1d5c2b29a3502.zip |
Normalize icon bounding box
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/_icon.scss | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss index 170dca5..bb48efd 100644 --- a/src/objects/_icon.scss +++ b/src/objects/_icon.scss | |||
@@ -6,7 +6,7 @@ | |||
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: -.18em | 9 | --valign: -.12em |
10 | ) | 10 | ) |
11 | ), 'dims'); | 11 | ), 'dims'); |
12 | 12 | ||
@@ -14,6 +14,7 @@ | |||
14 | display: inline; | 14 | display: inline; |
15 | width: fn.dim(--size); | 15 | width: fn.dim(--size); |
16 | height: fn.dim(--size); | 16 | height: fn.dim(--size); |
17 | margin: calc(.5 * (1em - fn.dim(--size))); | ||
17 | stroke-width: fn.dim(--stroke); | 18 | stroke-width: fn.dim(--stroke); |
18 | stroke-linecap: round; | 19 | stroke-linecap: round; |
19 | stroke-linejoin: round; | 20 | stroke-linejoin: round; |