Files
lingji-work-fe/src/styles/components/ant-select.scss
rd c357e4a885 feat: 添加原料库上传功能和相关组件
- 在 `raw-material` 组件中添加上传按钮和抽屉组件
- 新增 `add-raw-material-drawer` 组件及其样式文件
- 更新样式文件以支持新的上传界面
- 调整 Ant Select 和 Drawer 组件的样式
2025-09-16 17:03:06 +08:00

171 lines
3.4 KiB
SCSS

.ant-select {
.ant-select-selector {
padding: 0 12px !important;
border-radius: 4px !important;
border-color: #d7d7d9 !important;
background-color: #fff !important;
align-items: center;
.ant-select-selection-search-input {
height: 100% !important;
}
.ant-select-selection-placeholder {
color: var(--Text-4, #737478);
font-family: $font-family-regular;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px;
}
.ant-select-selection-item {
color: var(--Text-4, #211f24);
font-family: $font-family-regular;
font-size: 14px;
font-style: normal;
font-weight: 400;
}
}
&:focus,
&-focused {
.ant-select-selector {
background-color: var(--color-bg-2) !important;
border-color: rgb(var(--primary-6)) !important;
box-shadow: 0 0 0 0 var(--color-primary-light-2) !important;
}
}
&.ant-select-status-error {
border-color: $color-error !important;
}
}
.ant-select {
.ant-select-selector {
height: 32px !important;
}
&.ant-select-lg {
.ant-select-selector {
height: 36px !important;
}
}
&.ant-select-sm {
.ant-select-selector {
height: 28px !important;
}
}
&.ant-select-multiple {
.ant-select-selector {
padding: 0 12px 0 4px !important;
.ant-select-selection-overflow-item {
.ant-select-selection-item {
border-radius: 4px;
background: #E6E6E8;
border: none;
padding: 1px 8px;
.ant-select-selection-item-remove {
color: #737478;
}
}
}
}
&.ant-select-lg {
.ant-select-selector {
.ant-select-selection-overflow-item {
.ant-select-selection-item {
height: 24px;
line-height: 24px;
}
}
}
}
&.ant-select-sm {
.ant-select-selector {
.ant-select-selection-overflow-item {
.ant-select-selection-item {
height: 22px;
line-height: 22px;
.ant-select-selection-item-content {
font-size: 12px;
}
}
}
}
}
}
&.ant-select-single {
.ant-select-selector {
height: 32px !important;
}
&.ant-select-lg {
.ant-select-selector {
height: 36px !important;
}
}
&.ant-select-sm {
.ant-select-selector {
height: 28px !important;
}
}
}
}
.ant-select-dropdown {
padding: 4px 0;
.ant-select-item-option {
padding: 0 12px;
height: 36px;
align-items: center;
.ant-select-item-option-state {
display: none;
}
&:not(.ant-select-item-option-disabled) {
&:hover {
background-color: #F2F3F5 !important;
}
.ant-select-item-option-content {
color: #211F24;
font-family: $font-family-regular;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px;
}
&.ant-select-item-option-selected {
background-color: transparent !important;
color: #6D4CFE !important;
&:hover {
background-color: #F2F3F5 !important;
}
.ant-select-item-option-content {
color: #6D4CFE;
font-weight: 500;
font-family: $font-family-medium;
}
}
&.ant-select-item-option-active {
}
}
}
}