diff options
author | Volpeon <git@volpeon.ink> | 2024-04-23 17:51:49 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-04-23 17:51:49 +0200 |
commit | 0855207eda7258f84aebd8b6b35adc7ec7365192 (patch) | |
tree | dabbdf91dfe9708e87eaa3df8927792b4ea18abe /src/objects/_icon.scss | |
parent | Update (diff) | |
download | iro-design-0855207eda7258f84aebd8b6b35adc7ec7365192.tar.gz iro-design-0855207eda7258f84aebd8b6b35adc7ec7365192.tar.bz2 iro-design-0855207eda7258f84aebd8b6b35adc7ec7365192.zip |
Button fixes to handle icons without margin adjustments
Diffstat (limited to 'src/objects/_icon.scss')
-rw-r--r-- | src/objects/_icon.scss | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss index 0522d4b..5c4bfab 100644 --- a/src/objects/_icon.scss +++ b/src/objects/_icon.scss | |||
@@ -6,8 +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 | --margin: calc((1em - fn.dim(--size, null)) * .5), | 9 | --valign: -.2em, |
10 | --valign: -.14em, | ||
11 | ) | 10 | ) |
12 | ), 'dims'); | 11 | ), 'dims'); |
13 | 12 | ||
@@ -15,7 +14,6 @@ | |||
15 | display: inline; | 14 | display: inline; |
16 | width: fn.dim(--size); | 15 | width: fn.dim(--size); |
17 | height: fn.dim(--size); | 16 | height: fn.dim(--size); |
18 | margin: fn.dim(--margin); | ||
19 | stroke-width: fn.dim(--stroke); | 17 | stroke-width: fn.dim(--stroke); |
20 | stroke-linecap: round; | 18 | stroke-linecap: round; |
21 | stroke-linejoin: round; | 19 | stroke-linejoin: round; |