Skip to content

Commit

Permalink
improve sponsor drop down style
Browse files Browse the repository at this point in the history
  • Loading branch information
jamshidi799 committed Apr 20, 2021
1 parent c74c548 commit aa54785
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
6 changes: 6 additions & 0 deletions assets/fonts/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: LTZaridSans;
src: url('./29LTZaridSans-Bold.otf');
font-weight: bold;
font-style: normal;
}
39 changes: 34 additions & 5 deletions components/landing/SponserDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@
<span>اسپانسر</span>
</v-btn>
</template>
<v-list>
<v-list-item link :to="item.to" v-for="(item, index) in items" :key="index">
<v-list-item-title>{{ item.title }}</v-list-item-title>
<v-list class="sponsor-dropdown">
<v-list-item link :to="items[0].to">
<v-list-item-title>{{ items[0].title }}</v-list-item-title>
</v-list-item>
<v-list-item link :to="items[1].to" class="aparat">
<v-list-item-title>
{{ items[1].title }}
<span>(حامی رسانه‌ای)</span>
</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
Expand All @@ -19,7 +25,7 @@ export default {
data: () => ({
items: [
{ title: ' دیجی کالا', to: '/sponsors/digikala' },
{ title: 'آپارات (حامی رسانه‌ای) ', to: '/sponsors/aparat' },
{ title: 'آپارات ', to: '/sponsors/aparat' },
],
}),
methods: {
Expand All @@ -30,7 +36,30 @@ export default {
};
</script>

<style scoped lang="scss">
<style lang="scss">
.sponsor-dropdown {
padding: 0px;
.v-list-item {
border-bottom: 1px solid var(--v-primary-base);
&:hover {
background-color: #0e1224;
.v-list-item__title {
color: var(--v-primary-base);
transition: all 0.5s;
}
transition: all 0.5s;
}
}
.v-list-item__title {
font-family: LTZaridSans;
font-weight: bold;
}
.aparat {
span {
font-size: 13px;
}
}
}
// .hover_white {
// &.v-btn--active,
// &:hover {
Expand Down

0 comments on commit aa54785

Please sign in to comment.