Files
cmgd-mini-app/uni_modules/nutui-uni/components/picker/index.scss
2026-01-05 12:47:14 +08:00

113 lines
1.9 KiB
SCSS

@import "../pickercolumn/index";
.nut-theme-dark {
.nut-picker {
position: relative;
background: $dark-background;
border-radius: 5px;
/* #ifndef H5 */
&__mask {
background: none !important;
}
/* #endif */
&__bar {
display: flex;
align-items: center;
justify-content: space-between;
height: 46px;
}
&__title {
color: $dark-color;
}
&-content {
color: $dark-color;
}
&-item {
color: $dark-color;
}
}
}
.nut-picker {
position: relative;
background: #fff;
border-radius: 5px;
&__bar {
display: flex;
align-items: center;
justify-content: space-between;
height: 46px;
}
&__left {
display: flex;
align-items: center;
justify-content: center;
min-width: 50px;
height: 100%;
padding: $picker-bar-button-padding;
font-size: $picker-bar-cancel-font-size;
color: $picker-cancel-color;
cursor: pointer;
}
&__right {
display: flex;
align-items: center;
justify-content: center;
min-width: 50px;
height: 100%;
padding: $picker-bar-button-padding;
font-size: $picker-bar-ok-font-size;
color: $picker-ok-color;
cursor: pointer;
}
&__column {
position: relative;
display: flex;
&::before {
position: absolute;
top: 50%;
width: 100%;
height: var(--line-height);
content: "";
border: $picker-item-active-line-border;
border-right: 0;
border-left: 0;
transform: scale(0.9);
transform: translateY(-50%);
}
}
&__columnitem {
flex-grow: 1;
width: 0;
height: 100%;
cursor: grab;
user-select: none;
}
&__title {
flex: 1;
font-size: $picker-bar-title-font-size;
font-weight: $picker-bar-title-font-weight;
color: $picker-bar-title-color;
text-align: center;
@include oneline-ellipsis;
}
&__wrapper {
display: block;
}
}