diff options
Diffstat (limited to 'src/layouts/_form.scss')
-rw-r--r-- | src/layouts/_form.scss | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/layouts/_form.scss b/src/layouts/_form.scss index 0bb9d4a..4ccf334 100644 --- a/src/layouts/_form.scss +++ b/src/layouts/_form.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,49 +9,49 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-layout('form') { | 12 | @include bem.layout('form') { |
13 | display: flex; | 13 | display: flex; |
14 | flex-direction: column; | 14 | flex-direction: column; |
15 | gap: props.get(vars.$item-spacing-b) props.get(vars.$label-spacing-i); | 15 | gap: props.get(vars.$item-spacing-b) props.get(vars.$label-spacing-i); |
16 | 16 | ||
17 | @include iro.bem-elem('item') { | 17 | @include bem.elem('item') { |
18 | display: block; | 18 | display: block; |
19 | } | 19 | } |
20 | 20 | ||
21 | @include iro.bem-elem('item-content') { | 21 | @include bem.elem('item-content') { |
22 | @include iro.bem-modifier('align-start') { | 22 | @include bem.modifier('align-start') { |
23 | align-self: start; | 23 | align-self: start; |
24 | } | 24 | } |
25 | } | 25 | } |
26 | 26 | ||
27 | @include iro.bem-modifier('row') { | 27 | @include bem.modifier('row') { |
28 | flex-direction: row; | 28 | flex-direction: row; |
29 | align-items: flex-end; | 29 | align-items: flex-end; |
30 | } | 30 | } |
31 | 31 | ||
32 | @include iro.bem-modifier('labels-start', 'labels-end') { | 32 | @include bem.modifier('labels-start', 'labels-end') { |
33 | display: grid; | 33 | display: grid; |
34 | grid-template-rows: auto; | 34 | grid-template-rows: auto; |
35 | grid-template-columns: auto 1fr; | 35 | grid-template-columns: auto 1fr; |
36 | align-items: baseline; | 36 | align-items: baseline; |
37 | 37 | ||
38 | @include iro.bem-elem('item') { | 38 | @include bem.elem('item') { |
39 | display: contents; | 39 | display: contents; |
40 | } | 40 | } |
41 | 41 | ||
42 | @include iro.bem-elem('item-label') { | 42 | @include bem.elem('item-label') { |
43 | grid-column: 1; | 43 | grid-column: 1; |
44 | padding-inline-end: 0; | 44 | padding-inline-end: 0; |
45 | } | 45 | } |
46 | 46 | ||
47 | @include iro.bem-elem('item-content') { | 47 | @include bem.elem('item-content') { |
48 | grid-column: 2; | 48 | grid-column: 2; |
49 | margin-block-start: 0; | 49 | margin-block-start: 0; |
50 | } | 50 | } |
51 | } | 51 | } |
52 | 52 | ||
53 | @include iro.bem-modifier('labels-end') { | 53 | @include bem.modifier('labels-end') { |
54 | @include iro.bem-elem('item-label') { | 54 | @include bem.elem('item-label') { |
55 | text-align: end; | 55 | text-align: end; |
56 | } | 56 | } |
57 | } | 57 | } |