antd-multi-cascader
Version:
A multiple cascader component for antd
99 lines (98 loc) • 2.2 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.antd-multi-cascader {
text-align: left;
}
.antd-multi-cascader-hidden {
display: none;
}
.antd-multi-cascader-menu {
display: flex;
flex-wrap: nowrap;
}
.antd-multi-cascader-column {
display: inline-flex;
flex: 1 0 auto;
min-width: 164px;
height: 180px;
}
.antd-multi-cascader-column:not(:first-child) {
border-left: 1px solid #f0f0f0;
}
.antd-multi-cascader-column > ul {
position: relative;
width: 100%;
padding: 8px 0;
overflow-y: auto;
}
.antd-multi-cascader-column-item {
display: flex;
align-items: flex-start;
width: 100%;
padding: 5px 12px;
background: white;
cursor: pointer;
transition: 0.3s;
}
.antd-multi-cascader-column-item-active,
.antd-multi-cascader-column-item:hover {
background: #e6f7ff;
}
.antd-multi-cascader-column-item-icon {
margin-top: 6px;
color: rgba(0, 0, 0, 0.45);
font-size: 10px;
}
.antd-multi-cascader-column-item-label {
flex: 1;
padding: 0 8px;
line-height: 22px;
margin-bottom: 0;
}
.antd-multi-cascader-column-item-label > span {
max-width: 100%;
word-break: break-all;
}
.antd-multi-cascader-popup {
overflow-x: hidden;
overflow-y: auto;
background: #fff;
border-radius: 2px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.antd-multi-cascader-popup .ant-empty-normal {
min-width: 114px;
}
.antd-multi-cascader-popup-all {
margin-right: 16px;
}
.antd-multi-cascader-popup-buttons {
margin-left: auto;
}
.antd-multi-cascader-popup-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.antd-multi-cascader-popup-footer button + button {
margin-left: 8px;
}
.antd-multi-cascader-placeholder {
user-select: none;
}
.antd-multi-cascader-overflow {
position: relative;
display: flex;
flex: auto;
flex-wrap: wrap;
max-width: 100%;
}
.antd-multi-cascader-overflow-item {
flex: none;
align-self: center;
max-width: 100%;
}