mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
modify(menu): change the menuItem background-image
This commit is contained in:
parent
b0d3ddfdef
commit
8b104563be
@ -48,7 +48,9 @@ $layout-nav-height: 64px;
|
||||
// }
|
||||
&::before { // item background
|
||||
content: "";
|
||||
background-size: 300%;
|
||||
background-image: $menu-item-selected-background-image;
|
||||
background-position: $--menu-item-background-position;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
@ -1,5 +1,5 @@
|
||||
@mixin setup-dark-menu {
|
||||
$menu-background-color: $--n-card-color !global;
|
||||
$menu-item-selected-background-image: linear-gradient(47deg,rgba(232,232,235,.4) 0%,rgba(31,38,62,.4) 100%) !global;
|
||||
$--service-kayout-item-active-color: $--primary-6 !global;
|
||||
$menu-item-selected-background-image: linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .03) 40%, rgba(0, 0, 0, .09) 60%, rgba(0, 0, 0, .09) 100%) !global;
|
||||
$--menu-item-background-position: 0% !global;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
@mixin setup-light-menu {
|
||||
$menu-background-color: $--neutral-10 !global;
|
||||
$menu-item-selected-background-image: linear-gradient(47deg, $--neutral-7, $--neutral-7) !global;
|
||||
$--service-kayout-item-active-color: $--primary-6 !global;
|
||||
$menu-item-selected-background-image: linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .03) 40%, rgba(0, 0, 0, .09) 60%, rgba(0, 0, 0, .09) 100%) !global;
|
||||
$--menu-item-background-position: 100% !global;
|
||||
}
|
Loading…
Reference in New Issue
Block a user