@choerodon/master
Version:
A package of Master for Choerodon platform.
108 lines (104 loc) • 2.41 kB
text/less
// @import "../../../style/theme/default";
@c7n-boot-header-user: ~"c7n-boot-header-user";
.@{c7n-boot-header-user} {
&-popover {
z-index: 1500 ;
position: absolute ;
min-width: 260px;
// top: 40px !important;
right: 25px;
left: auto ;
.c7n-popover-inner-content {
padding: 0;
}
&-menu {
border-bottom: 1px solid rgba(0, 0, 0, .2);
margin-top: 2px;
// padding-bottom: 7px;
&-item {
text-align: left;
padding: 0 ;
> i {
margin-left: 20px;
color: var(--text-color);
}
}
.c7n-menu-item-divider {
border-bottom: 1px solid rgba(0, 0, 0, .2);
background: transparent ;
}
}
&-content {
padding-top: 8px;
text-align: center;
max-width: 260px;
.@{c7n-boot-header-user}-avatar {
width: 40px;
height: 40px;
line-height: 40px;
font-size: 20px;
float: left;
margin-left: 20px;
margin-top: 12px;
}
}
&-title {
margin-left: 20px;
margin-top: 12px;
color: #000;
height: 50px;
span {
float: left;
margin-left: 15px;
line-height: 20px;
width: 170px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-align: left;
}
span:nth-child(2) {
display: inline-block;
color: rgba(0, 0, 0, 0.54);
}
}
&-logout {
height: 50px;
> li {
cursor: pointer;
height: 50px;
line-height: 50px;
vertical-align: center;
text-align: left;
&:hover {
background-color: rgba(0, 0, 0, 0.04);
}
> i {
margin-right: 10px;
margin-left: 20px;
vertical-align: sub;
color: var(--text-color);
}
}
}
}
&-avatar {
display: inline-block;
width: 30px;
height: 30px;
line-height: 30px;
cursor: pointer;
user-select: none;
border-radius: 50%;
font-size: 18px;
font-weight: bold;
background-color: #c5cbe8;
background-position: center;
background-size: 100%;
background-repeat: no-repeat;
color: @primary-color;
text-transform: uppercase;
text-align: center;
vertical-align: middle;
}
}