diff options
Diffstat (limited to 'src/objects/_menu.scss')
| -rw-r--r-- | src/objects/_menu.scss | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/objects/_menu.scss b/src/objects/_menu.scss index 0741929..46ca109 100644 --- a/src/objects/_menu.scss +++ b/src/objects/_menu.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 | @use 'icon.vars' as icon; | 5 | @use 'icon.vars' as icon; |
| @@ -10,12 +10,12 @@ | |||
| 10 | @mixin styles { | 10 | @mixin styles { |
| 11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
| 12 | 12 | ||
| 13 | @include iro.bem-object('menu') { | 13 | @include bem.object('menu') { |
| 14 | display: flex; | 14 | display: flex; |
| 15 | flex-direction: column; | 15 | flex-direction: column; |
| 16 | gap: props.get(vars.$spacing); | 16 | gap: props.get(vars.$spacing); |
| 17 | 17 | ||
| 18 | @include iro.bem-elem('header') { | 18 | @include bem.elem('header') { |
| 19 | padding-block: props.get(vars.$item--pad-b); | 19 | padding-block: props.get(vars.$item--pad-b); |
| 20 | padding-inline: props.get(vars.$item--pad-i); | 20 | padding-inline: props.get(vars.$item--pad-i); |
| 21 | font-size: props.get(vars.$header--font-size); | 21 | font-size: props.get(vars.$header--font-size); |
| @@ -24,12 +24,12 @@ | |||
| 24 | text-transform: uppercase; | 24 | text-transform: uppercase; |
| 25 | letter-spacing: .5px; | 25 | letter-spacing: .5px; |
| 26 | 26 | ||
| 27 | @include iro.bem-next-twin-elem { | 27 | @include bem.next-twin-elem { |
| 28 | margin-block-start: calc(props.get(vars.$separator-width) + props.get(vars.$spacing)); | 28 | margin-block-start: calc(props.get(vars.$separator-width) + props.get(vars.$spacing)); |
| 29 | } | 29 | } |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | @include iro.bem-elem('item') { | 32 | @include bem.elem('item') { |
| 33 | padding-block: props.get(vars.$item--pad-b); | 33 | padding-block: props.get(vars.$item--pad-b); |
| 34 | padding-inline: props.get(vars.$item--pad-i); | 34 | padding-inline: props.get(vars.$item--pad-i); |
| 35 | margin: calc(-1 * props.get(vars.$item--key-focus--outline-width)); | 35 | margin: calc(-1 * props.get(vars.$item--key-focus--outline-width)); |
| @@ -43,7 +43,7 @@ | |||
| 43 | &:enabled { | 43 | &:enabled { |
| 44 | color: currentColor; | 44 | color: currentColor; |
| 45 | 45 | ||
| 46 | @include iro.bem-multi('&:hover, &:focus-visible', 'is' 'selected') { | 46 | @include bem.multi('&:hover, &:focus-visible', 'is' 'selected') { |
| 47 | color: props.get(vars.$item--hover--label-color); | 47 | color: props.get(vars.$item--hover--label-color); |
| 48 | background-color: props.get(vars.$item--hover--bg-color); | 48 | background-color: props.get(vars.$item--hover--bg-color); |
| 49 | } | 49 | } |
| @@ -64,12 +64,12 @@ | |||
| 64 | } | 64 | } |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | @include iro.bem-next-elem('header') { | 67 | @include bem.next-elem('header') { |
| 68 | margin-block-start: calc(props.get(vars.$separator-width) + props.get(vars.$spacing)); | 68 | margin-block-start: calc(props.get(vars.$separator-width) + props.get(vars.$spacing)); |
| 69 | } | 69 | } |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | @include iro.bem-elem('header') { | 72 | @include bem.elem('header') { |
| 73 | &:link, | 73 | &:link, |
| 74 | &:visited, | 74 | &:visited, |
| 75 | &:enabled { | 75 | &:enabled { |
| @@ -77,25 +77,25 @@ | |||
| 77 | } | 77 | } |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | @include iro.bem-elem('separator') { | 80 | @include bem.elem('separator') { |
| 81 | block-size: 1px; | 81 | block-size: 1px; |
| 82 | margin-block: props.get(vars.$separator-width); | 82 | margin-block: props.get(vars.$separator-width); |
| 83 | margin-inline: props.get(vars.$item--pad-i); | 83 | margin-inline: props.get(vars.$item--pad-i); |
| 84 | background-color: props.get(vars.$separator-color); | 84 | background-color: props.get(vars.$separator-color); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | @include iro.bem-elem('slot') { | 87 | @include bem.elem('slot') { |
| 88 | padding-block: props.get(vars.$item--pad-b); | 88 | padding-block: props.get(vars.$item--pad-b); |
| 89 | padding-inline: props.get(vars.$item--pad-i); | 89 | padding-inline: props.get(vars.$item--pad-i); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | @include iro.bem-elem('icon-slot') { | 92 | @include bem.elem('icon-slot') { |
| 93 | display: flex; | 93 | display: flex; |
| 94 | justify-content: center; | 94 | justify-content: center; |
| 95 | inline-size: props.get(icon.$size); | 95 | inline-size: props.get(icon.$size); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | @include iro.bem-modifier('pull') { | 98 | @include bem.modifier('pull') { |
| 99 | margin: calc(-1 * props.get(vars.$item--pad-i)); | 99 | margin: calc(-1 * props.get(vars.$item--pad-i)); |
| 100 | } | 100 | } |
| 101 | } | 101 | } |
