123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506 |
- /**
- * 下拉菜单模块
- * date:2019-07-12 License By http://easyweb.vip
- */
- .dropdown-no-scroll {
- overflow: hidden;
- }
- .dropdown-fixParent {
- z-index: auto;
- }
- /** 遮罩层 */
- .dropdown-menu-shade {
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 9998;
- background-color: rgba(0, 0, 0, .1);
- }
- .dropdown-menu-shade.no-shade {
- background-color: transparent;
- }
- /** 夜间主题 */
- .dropdown-menu-nav.dark {
- background: #32363F;
- border-color: #484e58;
- }
- .dropdown-menu-nav.dark > li > a {
- color: #a1a8b8;
- }
- .dropdown-menu-nav.dark > li > a:hover {
- background-color: #272b34;
- }
- .dropdown-menu-nav.dark > li.disabled > a, .dropdown-menu-nav > li.disabled > a:hover {
- color: #7a8191;
- }
- .dropdown-menu-nav.dark hr {
- background-color: #484e58;
- }
- .dropdown-menu-nav.dark > li.title {
- color: #868b9a;
- }
- .dropdown-menu-nav.dark .dropdown-anchor {
- border-color: #484e58;
- }
- .dropdown-menu-nav.dark .dropdown-anchor::after {
- border-color: #32363F;
- }
- /** 白色主题 */
- .dropdown-menu {
- position: relative;
- display: inline-block;
- }
- .dropdown-menu-nav {
- position: absolute;
- padding: 5px 0;
- margin: 0;
- overflow: visible;
- min-width: 110px;
- background: #fff;
- border-radius: 2px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
- border: 1px solid #d2d2d2;
- text-align: left;
- z-index: 9999;
- }
- .dropdown-menu .dropdown-menu-nav {
- display: none;
- }
- .dropdown-menu.dropdown-open .dropdown-menu-nav {
- display: block;
- }
- .dropdown-menu-nav.fixed {
- position: fixed;
- }
- .dropdown-menu-nav > li {
- padding: 0;
- margin: 0;
- line-height: 18px;
- user-select: none;
- list-style: none;
- }
- .dropdown-menu-nav > li > a {
- display: block;
- color: #555;
- font-size: 14px;
- padding: 10px 15px;
- text-decoration: none;
- white-space: nowrap;
- cursor: pointer;
- user-select: none;
- }
- .dropdown-menu-nav > li > a:hover {
- background-color: #eeeeee;
- }
- .dropdown-menu-nav > li .layui-icon {
- font-size: 14px;
- margin-right: 5px;
- }
- .dropdown-menu-nav > hr {
- height: 1px;
- margin: 3px 0;
- background-color: #e6e6e6;
- }
- /** 禁用样式 */
- .dropdown-menu-nav > li.disabled {
- cursor: not-allowed;
- }
- .dropdown-menu-nav > li.disabled > a, .dropdown-menu-nav > li.disabled > a:hover {
- color: #999;
- cursor: not-allowed;
- pointer-events: none;
- background-color: transparent;
- }
- /** 标题样式 */
- .dropdown-menu-nav > li.title {
- color: #999;
- font-size: 12px;
- padding: 3px 15px;
- }
- /** 小箭头 */
- .dropdown-menu-nav .dropdown-anchor, .dropdown-menu-nav .dropdown-anchor:after {
- border: 8px solid #d2d2d2;
- position: absolute;
- display: inline-block;
- }
- .dropdown-menu-nav .dropdown-anchor:after {
- content: '';
- border: 7px solid #fff;
- }
- /** 下左位置 */
- .dropdown-menu-nav.dropdown-bottom-left {
- top: 100%;
- }
- .dropdown-menu-nav.dropdown-bottom-left {
- margin-top: 8px;
- }
- .dropdown-menu-nav.dropdown-bottom-left .dropdown-anchor, .dropdown-menu-nav.dropdown-bottom-left .dropdown-anchor:after {
- border-top-color: transparent;
- border-right-color: transparent;
- border-left-color: transparent;
- top: -16px;
- }
- .dropdown-menu-nav.dropdown-bottom-left .dropdown-anchor:after {
- top: -6px;
- left: -7px;
- }
- .dropdown-menu-nav.dropdown-bottom-left .dropdown-anchor {
- left: 12px;
- }
- /** 下右位置 */
- .dropdown-menu-nav.dropdown-bottom-right {
- right: 0;
- }
- .dropdown-menu-nav.dropdown-bottom-right {
- margin-top: 8px;
- }
- .dropdown-menu-nav.dropdown-bottom-right .dropdown-anchor, .dropdown-menu-nav.dropdown-bottom-right .dropdown-anchor:after {
- border-top-color: transparent;
- border-right-color: transparent;
- border-left-color: transparent;
- top: -16px;
- }
- .dropdown-menu-nav.dropdown-bottom-right .dropdown-anchor:after {
- top: -6px;
- left: -7px;
- }
- .dropdown-menu-nav.dropdown-bottom-right .dropdown-anchor {
- right: 12px;
- }
- /** 下中位置 */
- .dropdown-menu-nav.dropdown-bottom-center {
- left: 50%;
- /*transform: translateX(-50%);*/
- }
- .dropdown-menu-nav.dropdown-bottom-center {
- margin-top: 8px;
- }
- .dropdown-menu-nav.dropdown-bottom-center .dropdown-anchor, .dropdown-menu-nav.dropdown-bottom-center .dropdown-anchor:after {
- border-top-color: transparent;
- border-right-color: transparent;
- border-left-color: transparent;
- top: -16px;
- }
- .dropdown-menu-nav.dropdown-bottom-center .dropdown-anchor:after {
- top: -6px;
- left: -7px;
- }
- .dropdown-menu-nav.dropdown-bottom-center .dropdown-anchor {
- left: calc(50% - 8px);
- }
- /** 上左位置 */
- .dropdown-menu-nav.dropdown-top-left {
- bottom: 100%;
- }
- .dropdown-menu-nav.dropdown-top-left {
- margin-bottom: 8px;
- }
- .dropdown-menu-nav.dropdown-top-left .dropdown-anchor, .dropdown-menu-nav.dropdown-top-left .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-right-color: transparent;
- border-left-color: transparent;
- bottom: -16px;
- }
- .dropdown-menu-nav.dropdown-top-left .dropdown-anchor:after {
- top: -8px;
- left: -7px;
- bottom: auto;
- }
- .dropdown-menu-nav.dropdown-top-left .dropdown-anchor {
- left: 12px;
- }
- /** 上右位置 */
- .dropdown-menu-nav.dropdown-top-right {
- bottom: 100%;
- right: 0;
- }
- .dropdown-menu-nav.dropdown-top-right {
- margin-bottom: 8px;
- }
- .dropdown-menu-nav.dropdown-top-right .dropdown-anchor, .dropdown-menu-nav.dropdown-top-right .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-right-color: transparent;
- border-left-color: transparent;
- bottom: -16px;
- }
- .dropdown-menu-nav.dropdown-top-right .dropdown-anchor:after {
- top: -8px;
- left: -7px;
- bottom: auto;
- }
- .dropdown-menu-nav.dropdown-top-right .dropdown-anchor {
- right: 12px;
- }
- /** 上中位置 */
- .dropdown-menu-nav.dropdown-top-center {
- bottom: 100%;
- left: 50%;
- /*transform: translateX(-50%);*/
- }
- .dropdown-menu-nav.dropdown-top-center {
- margin-bottom: 8px;
- }
- .dropdown-menu-nav.dropdown-top-center .dropdown-anchor, .dropdown-menu-nav.dropdown-top-center .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-right-color: transparent;
- border-left-color: transparent;
- bottom: -16px;
- }
- .dropdown-menu-nav.dropdown-top-center .dropdown-anchor:after {
- top: -8px;
- left: -7px;
- bottom: auto;
- }
- .dropdown-menu-nav.dropdown-top-center .dropdown-anchor {
- left: calc(50% - 8px);
- }
- /** 左上位置 */
- .dropdown-menu-nav.dropdown-left-top {
- right: 100%;
- bottom: 0;
- }
- .dropdown-menu-nav.dropdown-left-top {
- margin-right: 8px;
- }
- .dropdown-menu-nav.dropdown-left-top .dropdown-anchor, .dropdown-menu-nav.dropdown-left-top .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-right-color: transparent;
- border-top-color: transparent;
- right: -16px;
- }
- .dropdown-menu-nav.dropdown-left-top .dropdown-anchor:after {
- top: -7px;
- left: -8px;
- right: auto;
- }
- .dropdown-menu-nav.dropdown-left-top .dropdown-anchor {
- bottom: 12px;
- }
- /** 左下位置 */
- .dropdown-menu-nav.dropdown-left-bottom {
- right: 100%;
- top: 0;
- }
- .dropdown-menu-nav.dropdown-left-bottom {
- margin-right: 8px;
- }
- .dropdown-menu-nav.dropdown-left-bottom .dropdown-anchor, .dropdown-menu-nav.dropdown-left-bottom .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-right-color: transparent;
- border-top-color: transparent;
- right: -16px;
- }
- .dropdown-menu-nav.dropdown-left-bottom .dropdown-anchor:after {
- top: -7px;
- left: -8px;
- right: auto;
- }
- .dropdown-menu-nav.dropdown-left-bottom .dropdown-anchor {
- top: 12px;
- }
- /** 左中位置 */
- .dropdown-menu-nav.dropdown-left-center {
- right: 100%;
- top: 50%;
- /*transform: translateY(-50%);*/
- }
- .dropdown-menu-nav.dropdown-left-center {
- margin-right: 8px;
- }
- .dropdown-menu-nav.dropdown-left-center .dropdown-anchor, .dropdown-menu-nav.dropdown-left-center .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-right-color: transparent;
- border-top-color: transparent;
- right: -16px;
- }
- .dropdown-menu-nav.dropdown-left-center .dropdown-anchor:after {
- top: -7px;
- left: -8px;
- right: auto;
- }
- .dropdown-menu-nav.dropdown-left-center .dropdown-anchor {
- top: calc(50% - 8px);
- }
- /** 右上位置 */
- .dropdown-menu-nav.dropdown-right-top {
- left: 100%;
- bottom: 0;
- }
- .dropdown-menu-nav.dropdown-right-top {
- margin-left: 8px;
- }
- .dropdown-menu-nav.dropdown-right-top .dropdown-anchor, .dropdown-menu-nav.dropdown-right-top .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-left-color: transparent;
- border-top-color: transparent;
- left: -16px;
- }
- .dropdown-menu-nav.dropdown-right-top .dropdown-anchor:after {
- top: -7px;
- left: -6px;
- }
- .dropdown-menu-nav.dropdown-right-top .dropdown-anchor {
- bottom: 12px;
- }
- /** 右下位置 */
- .dropdown-menu-nav.dropdown-right-bottom {
- left: 100%;
- top: 0;
- }
- .dropdown-menu-nav.dropdown-right-bottom {
- margin-left: 8px;
- }
- .dropdown-menu-nav.dropdown-right-bottom .dropdown-anchor, .dropdown-menu-nav.dropdown-right-bottom .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-left-color: transparent;
- border-top-color: transparent;
- left: -16px;
- }
- .dropdown-menu-nav.dropdown-right-bottom .dropdown-anchor:after {
- top: -7px;
- left: -6px;
- }
- .dropdown-menu-nav.dropdown-right-bottom .dropdown-anchor {
- top: 12px;
- }
- /** 右中位置 */
- .dropdown-menu-nav.dropdown-right-center {
- left: 100%;
- top: 50%;
- /*transform: translateY(-50%);*/
- }
- .dropdown-menu-nav.dropdown-right-center {
- margin-left: 8px;
- }
- .dropdown-menu-nav.dropdown-right-center .dropdown-anchor, .dropdown-menu-nav.dropdown-right-center .dropdown-anchor:after {
- border-bottom-color: transparent;
- border-left-color: transparent;
- border-top-color: transparent;
- left: -16px;
- }
- .dropdown-menu-nav.dropdown-right-center .dropdown-anchor:after {
- top: -7px;
- left: -6px;
- }
- .dropdown-menu-nav.dropdown-right-center .dropdown-anchor {
- top: calc(50% - 8px);
- }
- /** 按钮里面三角形样式 */
- .icon-btn .layui-icon-drop {
- margin-right: 0;
- font-size: 14px;
- }
- .layui-icon-drop:before {
- content: "\e625";
- }
- .layui-icon-drop.top {
- transform: rotate(180deg);
- display: inline-table;
- }
- .layui-icon-drop.left {
- transform: rotate(90deg);
- display: inline-table;
- }
- .layui-icon-drop.right {
- transform: rotate(-90deg);
- display: inline-table;
- }
- .dropdown-menu + .dropdown-menu, .layui-btn + .dropdown-menu, .dropdown-menu + .layui-btn {
- margin-left: 10px;
- }
|