Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
cadecode committed Jul 31, 2020
2 parents 2d5049e + 06a835b commit 39825b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions components/Catalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@
for (let i = 0; i < len - 1; i++) {
if (scrollTop >= arr[i] && scrollTop < arr[i + 1]) {
this.$tool.addClass(list[i], 'catalog-item-active')
list[i].scrollIntoView()
} else {
this.$tool.removeClass(list[i], 'catalog-item-active')
}
if (scrollTop >= arr[len - 1]) {
this.$tool.addClass(list[len - 1], 'catalog-active')
list[i].scrollIntoView()
} else {
this.$tool.removeClass(list[len - 1], 'catalog-active')
}
Expand Down
8 changes: 0 additions & 8 deletions layouts/Tag.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<template>
<div class="tag-container">
<el-row>
<el-col :xs="{span: 20, offset: 2}"
:sm="{span: 18, offset: 3}"
:md="{span: 16, offset: 4}"
:lg="{span: 14, offset: 5}"
:xl="{span: 12, offset: 6}">
<p class="tag-name">
<i class="el-icon-collection" />
{{tagName}}
Expand Down Expand Up @@ -38,8 +32,6 @@
</div>
</el-col>
</el-row>
</el-col>
</el-row>
</div>
</template>

Expand Down
4 changes: 2 additions & 2 deletions styles/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@

// Tag.vue
.tag-container
padding-top 60px
padding-bottom 20px
padding 60px 20px 20px
max-width 1000px

.tag-name
font-size 18px
Expand Down

0 comments on commit 39825b9

Please sign in to comment.