aerwen_u_site/assets/css/Header/nav.scss
2024-05-05 16:58:03 +08:00

139 lines
2.5 KiB
SCSS

a {
color: black;
text-decoration: none;
}
[v-cloak] {
display: none !important;
}
.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,
.el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
background-color: #ffffff !important;
}
//HeaderNav.scss
.HeaderNav {
height: 100%;
//margin-right: 10%;
.HeaderNav-container {
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
.nav-active {
display: flex;
align-items: center;
span {
color: black !important;
}
// padding: 60px 30px !important;
}
.HeaderNav-box {
height: 100%;
border: none;
}
.HeaderNav-navItems {
padding: 0 35px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
font-weight: 600;
// color: rgb(198, 198, 198);
color: black;
position: relative;
transition: 0.4s;
&:hover,
:focus {
background-color: #ffffff !important;
}
&::before {
content: '';
width: 0;
height: 3px;
background: var(--rootColor);
position: absolute;
bottom: -28px;
text-align: center;
margin: 15px 0 auto;
transition: 0.3s;
}
&:hover {
&::before {
width: 100%;
}
}
.HeaderNav-navItems-child-box {
background: #ffffff;
position: absolute;
left: -20px;
top: 40px;
border-radius: 5px;
z-index: 9999999999999999;
min-width: 190px;
.HeaderNav-navItems-child-items {
word-break: keep-all;
position: relative;
& a {
width: 100%;
padding: 10px 40px;
}
&:hover {
&>a {
transition: .2s;
color: #ade8dd !important;
}
}
}
.HeaderNav-navItems-child-box-child-box {
box-shadow: 1px 1px 10px 0px #efefef;
background: #ffffff;
position: absolute;
border-radius: 5px;
z-index: 9999999999999999;
min-width: 190px;
left: 185px;
top: 0px;
.HeaderNav-navItems-child-items {
// padding: 10px ;
word-break: keep-all;
&:hover {
a {
transition: .2s;
color: #ade8dd !important;
}
}
}
}
}
}
}
}