forked from nayarahilton/vue-pwa-profil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lucasjs
committed
Nov 20, 2017
1 parent
dd80e86
commit 629fdde
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<template> | ||
<nav class="tabs-top"> | ||
<ul class="tabs-top__links"> | ||
<li | ||
v-for="link of links" | ||
:key="link.class" | ||
class="tabs-top__link" | ||
> | ||
<a | ||
:href="link.url" | ||
:class="link.class" | ||
> | ||
{{ link.name }} | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
links: [ | ||
{ | ||
class: 'minha-area', | ||
url: '#', | ||
name: 'minha área', | ||
}, | ||
{ | ||
class: 'todas-areas', | ||
url: '#', | ||
name: 'todas as áreas', | ||
}, | ||
{ | ||
class: 'hashtags', | ||
url: '#', | ||
name: '#hashtags', | ||
}, | ||
], | ||
}; | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="stylus" scoped> | ||
@import '../assets/styles/_colors' | ||
* | ||
box-sizing border-box | ||
.tabs-top | ||
background transparent | ||
border-bottom 1px solid $pink | ||
margin-bottom 20px | ||
padding 15px | ||
width 100% | ||
&__links | ||
align-items center | ||
display flex | ||
justify-content: space-between; | ||
margin 0 | ||
&__link | ||
list-style none | ||
a | ||
color $pink | ||
font-size 12pt | ||
text-transform lowercase | ||
&.active | ||
font-weight 600 | ||
position relative | ||
&:after | ||
background $pink | ||
bottom 0 | ||
content '' | ||
display block | ||
height 4px | ||
position absolute | ||
width inherit | ||
</style> |