UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

213 lines (212 loc) 5.64 kB
.ant-cascader { font-size: 12px; } .ant-cascader-input.ant-input { background-color: transparent; display: block; cursor: pointer; width: 100%; z-index: 1; } .ant-cascader-picker { position: relative; display: inline-block; cursor: pointer; vertical-align: middle; font-size: 12px; background-color: #fff; border-radius: 6px; } .ant-cascader-picker-with-value .ant-cascader-picker-label { color: transparent; } .ant-cascader-picker-disabled { cursor: not-allowed; } .ant-cascader-picker-disabled .ant-cascader-input { cursor: not-allowed; } .ant-cascader-picker-label { position: absolute; left: 0; height: 20px; line-height: 20px; top: 50%; margin-top: -10px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; width: 100%; padding: 0 12px 0 8px; } .ant-cascader-picker-clear { opacity: 0; position: absolute; right: 8px; z-index: 2; background: #fff; top: 50%; font-size: 12px; color: #ccc; width: 12px; height: 12px; margin-top: -6px; line-height: 12px; cursor: pointer; -webkit-transition: color 0.3s ease, opacity 0.15s ease; transition: color 0.3s ease, opacity 0.15s ease; } .ant-cascader-picker-clear:hover { color: #999; } .ant-cascader-picker:hover .ant-cascader-picker-clear { opacity: 1; } .ant-cascader-picker-arrow { position: absolute; z-index: 1; top: 50%; right: 8px; width: 12px; height: 12px; margin-top: -6px; line-height: 12px; color: #999; display: inline-block; font-size: 12px; font-size: 9px \9; -webkit-transform: scale(0.75) rotate(0deg); -ms-transform: scale(0.75) rotate(0deg); transform: scale(0.75) rotate(0deg); /* IE6-IE8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)"; zoom: 1; } :root .ant-cascader-picker-arrow { -webkit-filter: none; filter: none; } :root .ant-cascader-picker-arrow { font-size: 12px; } .ant-cascader-picker-arrow:before { -webkit-transition: -webkit-transform 0.2s ease; transition: -webkit-transform 0.2s ease; transition: transform 0.2s ease; transition: transform 0.2s ease, -webkit-transform 0.2s ease; } .ant-cascader-picker-arrow.ant-cascader-picker-arrow-expand { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; } .ant-cascader-picker-arrow.ant-cascader-picker-arrow-expand:before { -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } .ant-cascader-menus { font-size: 12px; background: #fff; position: absolute; z-index: 1050; border-radius: 6px; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); white-space: nowrap; } .ant-cascader-menus-empty, .ant-cascader-menus-hidden { display: none; } .ant-cascader-menus.slide-up-enter.slide-up-enter-active.ant-cascader-menus-placement-bottomLeft, .ant-cascader-menus.slide-up-appear.slide-up-appear-active.ant-cascader-menus-placement-bottomLeft { -webkit-animation-name: antSlideUpIn; animation-name: antSlideUpIn; } .ant-cascader-menus.slide-up-enter.slide-up-enter-active.ant-cascader-menus-placement-topLeft, .ant-cascader-menus.slide-up-appear.slide-up-appear-active.ant-cascader-menus-placement-topLeft { -webkit-animation-name: antSlideDownIn; animation-name: antSlideDownIn; } .ant-cascader-menus.slide-up-leave.slide-up-leave-active.ant-cascader-menus-placement-bottomLeft { -webkit-animation-name: antSlideUpOut; animation-name: antSlideUpOut; } .ant-cascader-menus.slide-up-leave.slide-up-leave-active.ant-cascader-menus-placement-topLeft { -webkit-animation-name: antSlideDownOut; animation-name: antSlideDownOut; } .ant-cascader-menu { display: inline-block; vertical-align: top; min-width: 111px; height: 180px; list-style: none; margin: 0; padding: 0; border-right: 1px solid #e9e9e9; overflow: auto; } .ant-cascader-menu:first-child { border-radius: 6px 0 0 6px; } .ant-cascader-menu:last-child { border-right-color: transparent; margin-right: -1px; border-radius: 0 6px 6px 0; } .ant-cascader-menu:only-child { border-radius: 6px; } .ant-cascader-menu-item { padding: 7px 26px 7px 16px; cursor: pointer; white-space: nowrap; -webkit-transition: all 0.3s ease; transition: all 0.3s ease; } .ant-cascader-menu-item:hover { background: #eaf8fe; } .ant-cascader-menu-item-disabled { cursor: not-allowed; color: #ccc; } .ant-cascader-menu-item-disabled:hover { background: transparent; } .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled), .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover { background-color: #f7f7f7; font-weight: bold; } .ant-cascader-menu-item-expand { position: relative; } .ant-cascader-menu-item-expand:after { font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e61f"; display: inline-block; font-size: 12px; font-size: 8px \9; -webkit-transform: scale(0.66666667) rotate(0deg); -ms-transform: scale(0.66666667) rotate(0deg); transform: scale(0.66666667) rotate(0deg); /* IE6-IE8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)"; zoom: 1; color: #999; position: absolute; right: 15px; } :root .ant-cascader-menu-item-expand:after { -webkit-filter: none; filter: none; } :root .ant-cascader-menu-item-expand:after { font-size: 12px; } .ant-cascader-menu-item .ant-cascader-menu-item-keyword { color: #f50; }