add class to nav items with children
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<ul class="app__link-list">
|
||||
<li v-for="(item, j) in linkGroup.items" :key="j">
|
||||
<g-link :class="{ 'app__link': true, 'app__link--draft': item.draft === true }" :to="item.link" :exact="item.link === '/'">
|
||||
<g-link :class="{ 'app__link': true, 'app__link--draft': item.draft === true, 'app__link--with-children': item.items }" :to="item.link" :exact="item.link === '/'">
|
||||
{{ item.title }}
|
||||
</g-link>
|
||||
|
||||
|
||||
@@ -57,6 +57,11 @@ $menuBreakPoint: 750px;
|
||||
&--draft {
|
||||
color: rgba($colorBlack, 0.2);
|
||||
}
|
||||
|
||||
&--with-children::after {
|
||||
content: '→';
|
||||
color: rgba($colorBlack, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
&__header {
|
||||
|
||||
Reference in New Issue
Block a user