feat: antd组件库相关样式
This commit is contained in:
69
src/styles/components/ant-select.scss
Normal file
69
src/styles/components/ant-select.scss
Normal file
@ -0,0 +1,69 @@
|
||||
.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-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.ant-select-multiple {
|
||||
.ant-select-selection-search-input {
|
||||
min-height: 32px !important;
|
||||
}
|
||||
&.ant-select-lg {
|
||||
.ant-select-selection-search-input {
|
||||
min-height: 36px !important;
|
||||
}
|
||||
}
|
||||
&.ant-select-sm {
|
||||
.ant-select-selection-search-input {
|
||||
min-height: 28px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user