🎨 style: 优化样式

This commit is contained in:
wangsongsole 2023-06-15 17:13:00 +08:00
parent f4151cbd44
commit 43710e04c2
1 changed files with 22 additions and 6 deletions

View File

@ -4,38 +4,54 @@
margin-left: 287px; margin-left: 287px;
background: #fff; background: #fff;
position: relative; position: relative;
.first_menu { .first_menu {
display: flex; display: flex;
width: 60vw; width: 60vw;
>div { >div {
width: 140px; width: 140px;
.menu_items{
.menu_items {
// justify-content: flex-start; // justify-content: flex-start;
padding: 0; padding: 0;
font-size: 14px; font-size: 14px;
color: #333; color: #333;
width: 100%; width: 100%;
line-height: 40px; animation: line .4s forwards;
&:hover{
&:hover {
background: #f6f7f8; background: #f6f7f8;
color: #296bef; color: #296bef;
} }
} }
.mouse_menuactive{
.mouse_menuactive {
font-weight: bold; font-weight: bold;
color: #296bef; color: #296bef;
} }
} }
} }
@keyframes line {
0% {
line-height: 0px;
}
100% {
line-height: 40px;
}
}
.closeMenu { .closeMenu {
position: absolute; position: absolute;
bottom: 20px; bottom: 20px;
right: 5%; right: 5%;
font-size: 30px; font-size: 30px;
cursor: pointer; cursor: pointer;
&:hover{
&:hover {
color: #296bef; color: #296bef;
font-weight: bold; font-weight: bold;
} }