Skip to content

Commit

Permalink
Make BurgerMenuNavItems BEM compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrecoin committed Mar 4, 2021
1 parent f0c7ef2 commit fcf164e
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions components/BurgerMenuNavItems.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<ul class="burger-menu-nav__items">
<ul class="burger-menu-nav-items">
<li
v-for="item in items"
:key="item.id"
class="burger-menu-nav-items__link"
:class="
action
? 'burger-menu-nav-items__link--action'
: 'burger-menu-nav-items__link--link'
: 'burger-menu-nav-items__link--regular-link'
"
>
<pix-link :field="item.link">
Expand All @@ -34,19 +34,15 @@ export default {
</script>

<style lang="scss">
.burger-menu-nav {
&__items {
margin: 24px 0 0 0;
padding: 0;
list-style: none;
.burger-menu-nav-items {
margin: 24px 0 0 0;
padding: 0;
list-style: none;
&:last-child {
margin-top: 8px;
}
&:last-child {
margin-top: 8px;
}
}
.burger-menu-nav-items {
&__link {
padding-left: 0;
font-weight: 600;
Expand All @@ -70,7 +66,7 @@ export default {
}
}
&--link {
&--regular-link {
&:last-child {
& > a {
width: 256px;
Expand Down

0 comments on commit fcf164e

Please sign in to comment.