init
This commit is contained in:
74
uni_modules/nutui-uni/components/menu/index.scss
Normal file
74
uni_modules/nutui-uni/components/menu/index.scss
Normal file
@@ -0,0 +1,74 @@
|
||||
.nut-theme-dark {
|
||||
.nut-menu {
|
||||
.nut-menu__bar {
|
||||
background-color: $dark-background;
|
||||
|
||||
.nut-menu__item {
|
||||
color: $dark-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nut-menu {
|
||||
&.scroll-fixed {
|
||||
position: fixed;
|
||||
top: $menu-scroll-fixed-top;
|
||||
z-index: $menu-scroll-fixed-z-index;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nut-menu__bar {
|
||||
position: relative;
|
||||
display: flex;
|
||||
line-height: $menu-bar-line-height;
|
||||
background-color: $white;
|
||||
box-shadow: $menu-bar-box-shadow;
|
||||
|
||||
&.opened {
|
||||
z-index: $menu-bar-opened-z-index;
|
||||
}
|
||||
|
||||
.nut-menu__item {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: $menu-item-font-size;
|
||||
color: $menu-item-text-color;
|
||||
text-align: center;
|
||||
|
||||
|
||||
&.active {
|
||||
color: $menu-item-active-text-color;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
color: $menu-item-disabled-color;
|
||||
}
|
||||
|
||||
.nut-menu__title-icon {
|
||||
display: flex;
|
||||
transition: all 0.2s linear;
|
||||
}
|
||||
|
||||
.nut-menu__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
max-width: 100%;
|
||||
|
||||
.nut-menu__title-text {
|
||||
display: block;
|
||||
padding-right: $menu-title-text-padding-right;
|
||||
padding-left: $menu-title-text-padding-left;
|
||||
|
||||
@include text-ellipsis;
|
||||
|
||||
}
|
||||
|
||||
&.active .nut-menu__title-icon {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user