less文件中引入另一个less文件样式内容,多用于使用公用样式
common.js
:global {
//下拉框失去焦点样式
.CM_DB-select-selection {
background-color: #061437 !important;
border: 1px solid #27436D !important;
.CM_DB-select-selection__placeholder {
color: rgba(255, 255, 255, 0.5);
font-size: 12px;
line-height: 20px;
}
.CM_DB-select-arrow {
right: 2px !important;
color: rgba(255, 255, 255, 0.5) !important;
}
}
index.less 使用:
.advancedSearchContainer {
@import url(../../../../../../public/common.less);
}