diff options
author | Volpeon <git@volpeon.ink> | 2023-02-22 09:05:16 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-02-22 09:05:16 +0100 |
commit | f21995712db77b20efa167b4624cdea6cbc40f5d (patch) | |
tree | 023d7008d266d03c7bade4de847b105df44ac592 /src/objects | |
parent | Better menu (diff) | |
download | iro-design-f21995712db77b20efa167b4624cdea6cbc40f5d.tar.gz iro-design-f21995712db77b20efa167b4624cdea6cbc40f5d.tar.bz2 iro-design-f21995712db77b20efa167b4624cdea6cbc40f5d.zip |
More avatar sizes
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/_action-menu.scss | 2 | ||||
-rw-r--r-- | src/objects/_avatar.scss | 17 |
2 files changed, 17 insertions, 2 deletions
diff --git a/src/objects/_action-menu.scss b/src/objects/_action-menu.scss index 5675ac4..3061293 100644 --- a/src/objects/_action-menu.scss +++ b/src/objects/_action-menu.scss | |||
@@ -116,7 +116,7 @@ | |||
116 | @include iro.bem-elem('icon-slot') { | 116 | @include iro.bem-elem('icon-slot') { |
117 | display: flex; | 117 | display: flex; |
118 | justify-content: center; | 118 | justify-content: center; |
119 | width: 1.2em; | 119 | width: fn.foreign-dim(--icon, --size); |
120 | } | 120 | } |
121 | } | 121 | } |
122 | } | 122 | } |
diff --git a/src/objects/_avatar.scss b/src/objects/_avatar.scss index 51b144a..958d939 100644 --- a/src/objects/_avatar.scss +++ b/src/objects/_avatar.scss | |||
@@ -21,6 +21,21 @@ | |||
21 | @include iro.props-namespace('avatar') { | 21 | @include iro.props-namespace('avatar') { |
22 | @include iro.props-store(( | 22 | @include iro.props-store(( |
23 | --dims: ( | 23 | --dims: ( |
24 | --400: ( | ||
25 | --size: fn.global-dim(--size --1600), | ||
26 | --font-size: fn.global-dim(--font-size --800), | ||
27 | --indicator-size: fn.global-dim(--size --400), | ||
28 | ), | ||
29 | --300: ( | ||
30 | --size: fn.global-dim(--size --1200), | ||
31 | --font-size: fn.global-dim(--font-size --600), | ||
32 | --indicator-size: fn.global-dim(--size --300), | ||
33 | ), | ||
34 | --200: ( | ||
35 | --size: fn.global-dim(--size --800), | ||
36 | --font-size: fn.global-dim(--font-size --300), | ||
37 | --indicator-size: fn.global-dim(--size --225), | ||
38 | ), | ||
24 | --150: ( | 39 | --150: ( |
25 | --size: fn.global-dim(--size --650), | 40 | --size: fn.global-dim(--size --650), |
26 | --font-size: fn.global-dim(--font-size --200), | 41 | --font-size: fn.global-dim(--font-size --200), |
@@ -124,7 +139,7 @@ | |||
124 | } | 139 | } |
125 | } | 140 | } |
126 | 141 | ||
127 | @each $size in 50 75 150 { | 142 | @each $size in 50 75 150 200 300 400 { |
128 | @include iro.bem-modifier($size) { | 143 | @include iro.bem-modifier($size) { |
129 | font-size: fn.dim(--#{$size} --font-size); | 144 | font-size: fn.dim(--#{$size} --font-size); |
130 | 145 | ||