UNPKG

antd

Version:

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

234 lines (233 loc) 6.61 kB
.ant-dropdown { position: absolute; left: -9999px; top: -9999px; z-index: 1050; display: block; font-size: 12px; font-weight: normal; line-height: 1.5; } .ant-dropdown-wrap { position: relative; } .ant-dropdown-wrap .ant-btn > .anticon-down { 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-dropdown-wrap .ant-btn > .anticon-down { -webkit-filter: none; filter: none; } :root .ant-dropdown-wrap .ant-btn > .anticon-down { font-size: 12px; } .ant-dropdown-wrap .anticon-down: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-dropdown-wrap-open .anticon-down:before { -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } .ant-dropdown-hidden, .ant-dropdown-menu-hidden { display: none; } .ant-dropdown-menu { outline: none; position: relative; list-style-type: none; padding: 0; margin: 0; text-align: left; background-color: #fff; border-radius: 6px; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); background-clip: padding-box; } .ant-dropdown-menu-item, .ant-dropdown-menu-submenu-title { padding: 7px 16px; margin: 0; clear: both; font-size: 12px; font-weight: normal; color: #666; white-space: nowrap; cursor: pointer; -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-dropdown-menu-item > a, .ant-dropdown-menu-submenu-title > a { color: #666; display: block; padding: 7px 16px; margin: -7px -16px; } .ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover { background-color: #eaf8fe; } .ant-dropdown-menu-item-disabled, .ant-dropdown-menu-submenu-title-disabled { color: #ccc; cursor: not-allowed; pointer-events: none; } .ant-dropdown-menu-item-disabled:hover, .ant-dropdown-menu-submenu-title-disabled:hover { color: #ccc; background-color: #fff; cursor: not-allowed; } .ant-dropdown-menu-item:first-child, .ant-dropdown-menu-submenu-title:first-child { border-radius: 6px 6px 0 0; } .ant-dropdown-menu-item:last-child, .ant-dropdown-menu-submenu-title:last-child { border-radius: 0 0 6px 6px; } .ant-dropdown-menu-item:only-child, .ant-dropdown-menu-submenu-title:only-child { border-radius: 6px; } .ant-dropdown-menu-item-divider, .ant-dropdown-menu-submenu-title-divider { height: 1px; overflow: hidden; background-color: #e9e9e9; line-height: 0; } .ant-dropdown-menu-submenu-title:after { font-family: "anticon" !important; position: absolute; content: "\e61f"; right: 16px; 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-dropdown-menu-submenu-title:after { -webkit-filter: none; filter: none; } :root .ant-dropdown-menu-submenu-title:after { font-size: 12px; } .ant-dropdown-menu-submenu-vertical { position: relative; } .ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu { top: 0; left: 100%; position: absolute; min-width: 100%; margin-left: 4px; -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; } .ant-dropdown-menu-submenu:first-child .ant-dropdown-menu-submenu-title { border-radius: 6px 6px 0 0; } .ant-dropdown-menu-submenu:last-child .ant-dropdown-menu-submenu-title { border-radius: 0 0 6px 6px; } .ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-bottomLeft, .ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-bottomLeft { -webkit-animation-name: antSlideUpIn; animation-name: antSlideUpIn; } .ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topLeft, .ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topLeft { -webkit-animation-name: antSlideDownIn; animation-name: antSlideDownIn; } .ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-bottomLeft { -webkit-animation-name: antSlideUpOut; animation-name: antSlideUpOut; } .ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topLeft { -webkit-animation-name: antSlideDownOut; animation-name: antSlideDownOut; } .ant-dropdown-link { font-size: 12px; } .ant-dropdown-link .anticon-down { 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-dropdown-link .anticon-down { -webkit-filter: none; filter: none; } :root .ant-dropdown-link .anticon-down { font-size: 12px; } .ant-dropdown-button.ant-btn-group > .ant-btn:last-child:not(:first-child) { padding-right: 7px; } .ant-dropdown-button .anticon-down { 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-dropdown-button .anticon-down { -webkit-filter: none; filter: none; } :root .ant-dropdown-button .anticon-down { font-size: 12px; } .ant-btn .anticon-down { 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-btn .anticon-down { -webkit-filter: none; filter: none; } :root .ant-btn .anticon-down { font-size: 12px; }