dataease-dm/frontend/src/styles/topbar.scss
2021-10-12 11:48:47 +08:00

122 lines
2.3 KiB
SCSS

.top-nav {
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 1001;
overflow: hidden;
border-bottom: 1px solid var(--TopBG, #E6E6E6);
background-color: var(--TopBG, #f1f3f8);
.log {
padding: 0 16px;
line-height: 56px;
height: 56px;
font-size: 24px;
font-weight: bold;
float: left;
img {
width: auto;
max-height: 45px;
}
}
.el-menu {
float: left;
border: none !important;
background-color: var(--TopBG, #f1f3f8) !important;
.nav-item {
display: inline-block;
.el-menu-item:not(.is-active) {
color: var(--TopTextColor, #1e212a);
opacity: 0.65;
&:hover {
background-color: var(--MenuHovorBG, rgba(158,158,158,.2)) !important;
opacity: 1;
}
&:focus {
background-color: var(--MenuActiveBG, $--color-primary) !important;
opacity: 1;
color: var(--TopTextColor, #f4f4f5);
}
}
.el-menu-item.is-active {
background-color: var(--MenuActiveBG, $--color-primary) ;
color: var(--TextActive, #f4f4f5) !important;
opacity: 1;
}
}
}
.right-menu {
float: right;
height: 56px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
&:focus {
outline: none;
}
.right-menu-item {
display: inline-block;
padding: 10px 8px;
height: 100%;
font-size: 18px;
vertical-align: text-bottom;
&.hover-effect {
cursor: pointer;
transition: background .3s;
&:hover {
background-color: rgba(0, 0, 0, .025)
}
}
}
.avatar-container {
margin-right: 30px;
.avatar-wrapper {
margin-top: 5px;
position: relative;
.user-avatar {
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 10px;
}
.de-user-avatar {
cursor: pointer;
height: 40px;
border-radius: 10px;
span {
color: #ffffff;
}
}
.el-icon-caret-bottom {
cursor: pointer;
position: absolute;
right: -20px;
top: 25px;
font-size: 12px;
}
}
}
}
}