@fle-ui/pro-layout
Version:
@fle-ui/pro-layout
137 lines (127 loc) • 2.74 kB
text/less
@import '../../style/theme.less';
@import (reference) '~@fle-ui/next/es/menu/style/index.less';
.@{pro-menu-prefix-cls} {
padding-top: 12px;
height: 100%;
&-sider {
position: fixed;
z-index: 100;
overflow: auto;
background: #fcfcfc;
&::-webkit-scrollbar {
width: 0px;
}
&-title {
width: 100%;
height: 22px;
line-height: 22px;
padding-left: 24px;
font-size: 16px;
color: #262626;
margin-top: 13px;
}
&-app {
cursor: pointer;
&-name {
background: #fff;
display: inline-block;
overflow: hidden;
font-size: 20px;
line-height: 59px;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
width: 100%;
text-align: center;
font-weight: 400px;
}
&-subName {
border-top: 1px #eeeeee solid;
position: relative;
display: flex;
align-items: center;
justify-content: center;
span {
background: #fff;
display: inline-block;
padding-right: 10px;
padding-left: 10px;
font-size: 12px;
margin-top: -10px;
}
}
}
}
&-left {
position: fixed;
z-index: 100;
overflow: auto;
background: #141a3c;
&::-webkit-scrollbar {
width: 0px;
}
&-toggle {
width: 100%;
height: 10px;
}
&-icon {
width: 34px;
margin: 20px auto 20px auto;
cursor: pointer;
img {
width: 100%;
height: auto;
}
}
}
&-menu {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 68px;
color: #ffffff;
font-size: 14px;
cursor: pointer;
&:hover {
background-color: rgba(44, 104, 255, 0.39);
.@{pro-menu-prefix-cls}-menu-icon {
color: #ffffff;
}
.@{pro-menu-prefix-cls}-menu-item {
color: #ffffff;
}
}
&-icon {
font-size: 20px;
height: 20px;
line-height: 20px;
cursor: pointer;
color: rgba(255, 255, 255, 0.7);
}
&-item {
max-width: 56px;
font-size: 14px;
height: 20px;
line-height: 20px;
margin-top: 4px;
font-weight: 400;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: rgba(255, 255, 255, 0.7);
}
&-active {
font-weight: 500;
background-color: #2c68ff ;
.@{pro-menu-prefix-cls}-menu-icon {
color: #ffffff;
}
.@{pro-menu-prefix-cls}-menu-item {
color: #ffffff;
font-weight: 500;
}
}
}
}