aboutsummaryrefslogtreecommitdiff
path: root/src/components/nav_panel/nav_panel.vue
blob: 1d96f4d6cd34330b72018ffa0af28d4539713c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<template>
  <div class="nav-panel">
    <div class="panel panel-default base02-background">
      <ul>
        <li v-if='currentUser'>
          <router-link class="base01-background" to='/main/friends'>
            Timeline
          </router-link>
        </li>
        <li v-if='currentUser'>
          <router-link class="base01-background" :to="{ name: 'mentions', params: { username: currentUser.screen_name } }">
            Mentions
          </router-link>
        </li>
        <li>
          <router-link class="base01-background" to='/main/public'>
            Public Timeline
          </router-link>
        </li>
        <li>
          <router-link class="base01-background" to='/main/all'>
            The Whole Known Network
          </router-link>
        </li>
      </ul>
    </div>
  </div>
</template>

<script src="./nav_panel.js" ></script>

<style lang="scss">
 .nav-panel ul {
     list-style: none;
     margin: 0;
     padding: 0;
 }

 .nav-panel li {
     border-bottom: 1px solid;
     padding: 0;
     &:first-child a {
       border-top-right-radius: 10px;
       border-top-left-radius: 10px;
     }
     &:last-child a {
       border-bottom-right-radius: 10px;
       border-bottom-left-radius: 10px;
     }
 }

 .nav-panel li:last-child {
     border: none;
 }

 .nav-panel a {
     display: block;
     padding: 0.8em 0.85em;
     &:hover {
       background-color: transparent;
     }
     &.router-link-active {
       font-weight: bolder;
       background-color: transparent;
       &:hover {
         text-decoration: underline;
       }
     }
 }

</style>