Skip to content

Commit

Permalink
feat: add package button on navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Dec 22, 2019
1 parent 9584a9a commit c50ebe2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/.vuepress/theme/components/NavLinks.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<div>
<div class="nav-links">
<div class="nav-item packages-add">
<a href="/packages/add/" class="nav-link">
<i class="fas fa-plus-circle"></i>
</a>
</div>
</div>
<ParentLayout></ParentLayout>
</div>
</template>

<script>
import ParentLayout from "@parent-theme/components/Navlinks.vue";
export default {
components: { ParentLayout }
};
</script>

<style lang="stylus">
.nav-links
.nav-item
&.packages-add
margin-right 0.2rem
a
&:hover
border-bottom none
a
&.external
margin-right -0.7rem
</style>

0 comments on commit c50ebe2

Please sign in to comment.