summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2026-03-20 11:28:13 +0100
committerVolpeon <git@volpeon.ink>2026-03-20 11:28:13 +0100
commitda132e65173c8409025f020c974f3841cd1ff362 (patch)
tree1d6278d16611f2fa470a8cfc78104c541240d4c8
parentSplit view cleanup (diff)
downloadiro-design-da132e65173c8409025f020c974f3841cd1ff362.tar.gz
iro-design-da132e65173c8409025f020c974f3841cd1ff362.tar.bz2
iro-design-da132e65173c8409025f020c974f3841cd1ff362.zip
o-button: Add justify modHEADmaster
-rw-r--r--src/objects/_button.scss12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/objects/_button.scss b/src/objects/_button.scss
index df90cc8..6cd3cc0 100644
--- a/src/objects/_button.scss
+++ b/src/objects/_button.scss
@@ -36,7 +36,7 @@
36 props.get(vars.$shadow-blur) 36 props.get(vars.$shadow-blur)
37 props.get(vars.$shadow-grow) 37 props.get(vars.$shadow-grow)
38 props.get($theme, list.join($key, --shadow-color)...); 38 props.get($theme, list.join($key, --shadow-color)...);
39 39
40 &:hover, 40 &:hover,
41 &:focus-visible { 41 &:focus-visible {
42 color: props.get($theme, list.join($key, --hover --label-color)...); 42 color: props.get($theme, list.join($key, --hover --label-color)...);
@@ -158,7 +158,7 @@
158 background-color: props.get($theme, list.join($key, --selected --hover --bg-color)...); 158 background-color: props.get($theme, list.join($key, --selected --hover --bg-color)...);
159 border-color: props.get($theme, list.join($key, --selected --hover --border-color)...); 159 border-color: props.get($theme, list.join($key, --selected --hover --border-color)...);
160 } 160 }
161 161
162 &:active { 162 &:active {
163 color: props.get($theme, list.join($key, --selected --active --label-color)...); 163 color: props.get($theme, list.join($key, --selected --active --label-color)...);
164 background-color: props.get($theme, list.join($key, --selected --active --bg-color)...); 164 background-color: props.get($theme, list.join($key, --selected --active --bg-color)...);
@@ -210,6 +210,7 @@
210 } 210 }
211 211
212 @include bem.elem('label') { 212 @include bem.elem('label') {
213 display: inline-block;
213 margin-inline: props.get(vars.$pad-i-label); 214 margin-inline: props.get(vars.$pad-i-label);
214 } 215 }
215 216
@@ -241,6 +242,11 @@
241 } 242 }
242 } 243 }
243 244
245 @include bem.modifier('justify') {
246 text-align: justify;
247 text-align-last: justify;
248 }
249
244 @each $mod, $pad-i, $pad-i-label, $pad-i-wide, $pad-i-pill, $pad-b, $font-size in vars.$fixed-sizes { 250 @each $mod, $pad-i, $pad-i-label, $pad-i-wide, $pad-i-pill, $pad-b, $font-size in vars.$fixed-sizes {
245 @include bem.modifier($mod) { 251 @include bem.modifier($mod) {
246 padding-block: props.get($pad-b); 252 padding-block: props.get($pad-b);
@@ -282,7 +288,7 @@
282 @each $mod, $pad-i, $pad-i-label, $pad-i-pill, $pad-b, $font-size in vars.$fixed-sizes { 288 @each $mod, $pad-i, $pad-i-label, $pad-i-pill, $pad-b, $font-size in vars.$fixed-sizes {
283 @include bem.modifier($mod) { 289 @include bem.modifier($mod) {
284 margin-inline: calc(-1 * props.get($pad-i) - props.get(vars.$border-width)); 290 margin-inline: calc(-1 * props.get($pad-i) - props.get(vars.$border-width));
285 291
286 @include bem.modifier('pill') { 292 @include bem.modifier('pill') {
287 margin-inline: calc(-1 * props.get($pad-i-pill) - props.get(vars.$border-width)); 293 margin-inline: calc(-1 * props.get($pad-i-pill) - props.get(vars.$border-width));
288 } 294 }