Commit 49062fc0 authored by huangjie's avatar huangjie

*

parent 6b24b82c
<template> <template>
<div id="tags-view-container" class="tags-view-container"> <div id="tags-view-container" class="tags-view-container">
<div class="alltags" v-if="visitedViews.length > 0"> <div class="alltags" v-if="visitedViews.length > 0">
<div class="" @click="closeall"><i class="el-icon-arrow-down" v-if="!showall"></i> <i class="el-icon-arrow-up" v-if="showall"></i></div> <div class="imgs" @click="closeall">
<img src="@/assets/images/all.png" v-if="!showall"/>
<img src="@/assets/images/all_on.png" v-if="showall"/>
<!--<i class="el-icon-arrow-down" v-if="!showall"></i> <i class="el-icon-arrow-up" v-if="showall"></i>-->
</div>
<div class="tagslist" v-if="showall"> <div class="tagslist" v-if="showall">
<!--<div v-for="(tag, index) in visitedViews"--> <!--<div v-for="(tag, index) in visitedViews"-->
<!--:key="tag.path"--> <!--:key="tag.path"-->
...@@ -340,7 +344,7 @@ export default { ...@@ -340,7 +344,7 @@ export default {
} }
} }
&:first-of-type { &:first-of-type {
margin-left: 24px; margin-left: 64px;
} }
&:hover { &:hover {
.el-icon-close{ .el-icon-close{
...@@ -384,43 +388,55 @@ export default { ...@@ -384,43 +388,55 @@ export default {
} }
} }
.alltags{ .alltags{
position: fixed; position: absolute;
align-items: center; align-items: center;
border-radius: 9px;
height: 17px;
justify-content: center; justify-content: center;
width: 36px; width: 24px;
right: 10px; height: 24px;
top: 37px; left: 24px;
top: 28px;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
&:hover{ z-index: 10;
background: #EFEFEF; &::after{
content: ' ';
position: absolute;
border-right: 1px solid #EFEFEF;
height: 18px;
width: 0;
top: 3px;
right: -8px;
}
.imgs>img{
width: 24px;
height: 24px;
} }
.tagslist{ .tagslist{
position: absolute; position: absolute;
right: 0; left: 0;
top: 20px; top: 32px;
background-color: #fcfcfc; background-color: #fcfcfc;
color: #141414; color: #141414;
font-size: 13px; font-size: 13px;
line-height: 1em; line-height: 1em;
margin-bottom: 0; margin-bottom: 0;
max-height: 450px; max-height: 450px;
overflow-y: auto; /*overflow-y: auto;*/
overflow-y: overlay; overflow-y: overlay;
padding: 20px 0 10px; padding: 8px 0 0;
width: 325px; width: 325px;
text-align: left; text-align: left;
border-radius: 4px;
box-shadow: 0 2px 9px 2px rgba(0,0,0,.09), 0 1px 2px -2px rgba(0,0,0,.16); box-shadow: 0 2px 9px 2px rgba(0,0,0,.09), 0 1px 2px -2px rgba(0,0,0,.16);
.tags-view-item{ .tags-view-item{
display: block; display: block;
position: relative; position: relative;
>div{ >div{
padding: 8px 24px; padding: 8px 8px 8px 32px;
line-height: 20px;
} }
&:hover{ &:hover{
color: #0081FF; background: rgba(0, 0, 0, 0.04);
} }
.el-icon-check{ .el-icon-check{
display: none; display: none;
...@@ -429,18 +445,20 @@ export default { ...@@ -429,18 +445,20 @@ export default {
width: 13px; width: 13px;
} }
&.active{ &.active{
color: #0081FF; background: rgba(0, 129, 255, 0.04);
.el-icon-check{ .el-icon-check{
display: block; display: block;
color: #0081FF;
} }
} }
} }
.clasall{ .clasall{
border-top: 1px solid #EFEFEF; border-top: 1px solid #EFEFEF;
padding: 10px 24px 0; padding: 10px 32px;
margin-top: 10px; line-height: 20px;
color: #FF3C3C;
&:hover{ &:hover{
color: #0081FF; background: #FFECE8;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment