1 Star 0 Fork 36

tide的群/vue-tab

forked from alex qian/vue-tab 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue-tabs.css 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
alex qian 提交于 2016-12-10 19:02 . add feat: tabs persist
.vue-tabs {
position: relative;
}
.tabs-list-wrapper {
padding: 0px 8px;
}
@keyframes loading-rotate {
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes loading-rotate {
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
}
.tabs-list {
list-style: none;
margin: 0px;
padding: 0px;
overflow: auto;
width: auto;
zoom: 1;
}
.tabs-list > li {
float: left;
padding: 6px 18px;
position: relative;
color: #999;
}
.tabs-list > li.loading:before {
content: ' ';
box-sizing: border-box;
display: inline-block;
width: 14px;
height: 14px;
position: absolute;
left: 0px;
top: 10px;
border-radius: 9px;
border: 2px solid #1ab394;
border-top-color: transparent;
border-left-color: transparent;
animation: loading-rotate 0.8s infinite linear;
-webkit-animation: loading-rotate 0.8s infinite linear;
}
.tabs-list > li.active {
color: #333;
}
.tabs-list > li.active:after {
content: ' ';
position: absolute;
bottom: 0px;
width: 100%;
height: 2px;
background-color: #1ab394;
left: 0px;
}
.tabs-list > li.active .btn-close {
opacity: 1;
}
.tabs-list > li:hover {
cursor: pointer;
}
.tabs-list > li:hover .btn-close {
opacity: 1;
}
.tabs-list > li .btn-close {
position: absolute;
display: inline-block;
opacity: 0;
top: 2px;
right: 0px;
line-height: 12px;
width: 14px;
height: 14px;
border-radius: 14px;
font-size: 12px;
color: #999;
transition: all 0.2s ease;
}
.tabs-list > li .btn-close:hover {
color: #333;
transform: scale(1.5);
cursor: pointer;
}
.tabs-content-wrapper {
position: relative;
}
.tabs-content-wrapper .tabs-content {
display: none;
}
.tabs-content-wrapper .tabs-content.active {
display: block;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/the_group_of_tide/vue-tab.git
[email protected]:the_group_of_tide/vue-tab.git
the_group_of_tide
vue-tab
vue-tab
master

搜索帮助