mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 11:54:00 +08:00
wip(menu): perf menu
This commit is contained in:
@@ -34,30 +34,30 @@
|
||||
border: 1px solid darken(@border-color-light, 6%);
|
||||
transition: none;
|
||||
|
||||
&:not(.ant-tabs-tab-active)::after {
|
||||
position: absolute;
|
||||
bottom: -1px;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background-color: @primary-color;
|
||||
content: '';
|
||||
opacity: 0;
|
||||
transform: translate(-50%, 0) scaleX(0);
|
||||
transform-origin: center;
|
||||
transition: none;
|
||||
}
|
||||
// &:not(.ant-tabs-tab-active)::before {
|
||||
// position: absolute;
|
||||
// top: -1px;
|
||||
// left: 50%;
|
||||
// width: 100%;
|
||||
// height: 2px;
|
||||
// background-color: @primary-color;
|
||||
// content: '';
|
||||
// opacity: 0;
|
||||
// transform: translate(-50%, 0) scaleX(0);
|
||||
// transform-origin: center;
|
||||
// transition: none;
|
||||
// }
|
||||
|
||||
&:hover {
|
||||
.ant-tabs-close-x {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&:not(.ant-tabs-tab-active)::after {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, 0) scaleX(1);
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
// &:not(.ant-tabs-tab-active)::before {
|
||||
// opacity: 1;
|
||||
// transform: translate(-50%, 0) scaleX(1);
|
||||
// transition: all 0.3s ease-in-out;
|
||||
// }
|
||||
}
|
||||
|
||||
.ant-tabs-close-x {
|
||||
@@ -152,12 +152,13 @@
|
||||
}
|
||||
|
||||
&-content {
|
||||
&__extra {
|
||||
&__extra-quick,
|
||||
&__extra-redo {
|
||||
display: inline-block;
|
||||
width: @multiple-height;
|
||||
width: 36px;
|
||||
height: @multiple-height;
|
||||
line-height: @multiple-height;
|
||||
color: #999;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
border-left: 1px solid #eee;
|
||||
@@ -171,6 +172,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__extra-redo {
|
||||
span[role='img'] {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
&__info {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
|
Reference in New Issue
Block a user