Skip to content

Commit

Permalink
update catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
funanamy committed Nov 15, 2017
1 parent d311cb6 commit 1528b3f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
File renamed without changes
17 changes: 11 additions & 6 deletions document/components/home/home.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="home-view" :class="{ right: showCatalog}">
<div class="navigator" :class="{ active: showTabs }">
<img v-show="isDocs" class="toggle-catalog" @click="toggleCatalog" src="../../../assets/catalog.svg"/>
<img v-show="isDocs" class="toggle-catalog" @click="toggleCatalog" src="./catalog.svg"/>
<h1 class="logo">
<router-link to="/"><span>cube-ui</span></router-link>
</h1>
Expand All @@ -10,7 +10,7 @@
<site-lang></site-lang>
</div>
<span class="toggle-nav" @click="toggleNav">
<img src="../../../assets/nav.svg"/>
<img src="./nav.svg"/>
</span>
</div>
<div class="router-view">
Expand All @@ -20,6 +20,7 @@
</template>

<script>
import Vue from 'vue'
import Lang from '../lang/lang.vue'
export default {
data() {
Expand All @@ -32,7 +33,12 @@
watch: {
$route(val) {
this.isDocs = val.path.includes('/docs')
console.log(val)
Vue.nextTick(() => {
})
setTimeout(() => {
this.showTabs = false
this.showCatalog = false
}, 100)
}
},
components: {
Expand All @@ -52,12 +58,12 @@
@import "~@/common/stylus/variable.styl"
.home-view
@media screen and (min-width: 960px)
min-width: 800px
height: 100%
padding-top: 70px
box-sizing: border-box
transition: all 250ms ease
@media screen and (min-width: 960px)
min-width: 800px
&.right
transform: translate(190px, 0)
.router-view
Expand Down Expand Up @@ -122,7 +128,6 @@
display: block
line-height: 45px
margin: 0 20px
text-align: center
color: $color-white
transition: color .2s
&:hover
Expand Down
File renamed without changes
3 changes: 1 addition & 2 deletions document/components/lang/lang.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
@media screen and (max-width: 960px)
display: block
line-height: 45px
padding: 0 20px
text-align: center
margin: 0 20px
a
color: $color-white
&::after
Expand Down

0 comments on commit 1528b3f

Please sign in to comment.