diff options
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; |
