.dropdown-menu { border: 0; padding: 8px 0; margin-top: 7px; background: @fl-body-bg; color: @fl-body-color; .box-shadow(0 2px 6px @fl-shadow-color); & > li > a:hover, & > li > a:focus, & > .active > a, & > .active > a:hover, & > .active > a:focus { color: @fl-body-color; background-color: @fl-body-control-bg; } & > li > a { padding: 8px 15px; color: @fl-body-color; &.has-icon { padding-left: 40px; } &.disabled { color: #aaa; cursor: default; &:hover, &:focus { color: #aaa; background: none; } } & .icon { float: left; margin-left: -25px; margin-top: 2px; font-size: 14px; } & .count { font-weight: bold; font-size: 12px; margin-left: 5px; } } & .divider { margin: 8px 0; background-color: @fl-body-control-bg; } & .dropdown-header { padding: 10px 15px; color: @fl-body-heading-color; text-transform: uppercase; font-size: 12px; font-weight: bold; margin-top: 8px; border-top: 1px solid @fl-body-control-bg; &:first-child { margin-top: -8px; border-top: 0; } } } @media @tablet, @desktop, @desktop-hd { .dropdown-split { &.item-count-1 { & .btn { border-radius: @border-radius-base !important; } & .dropdown-toggle { display: none; } } & .dropdown-menu li:first-child { &, & + li.divider { display: none; } } } } @media @phone { .dropdown.open { z-index: @zindex-modal; } .dropdown { & .dropdown-menu { margin: 0; position: fixed; left: 0 !important; right: 0 !important; width: auto !important; bottom: 0; top: auto; padding: 0; padding-bottom: 40px !important; display: block; max-height: 70vh; border-radius: 0; .box-shadow(0 2px 6px @fl-shadow-color); visibility: hidden; overflow: auto; -webkit-overflow-scrolling: touch; .translate3d(0, 70vh, 0); .transition-transform(~" 0.3s, visibility 0s 0.3s"); & > li > a { background: #fff; font-size: 16px; padding: 15px 20px; &.has-icon { padding-left: 50px; } & .icon { font-size: 16px; margin-left: -30px; } &:hover { background: @fl-body-secondary-color; } } & .divider { margin: 0; } & > .active > a { &, &:hover { background: @fl-body-primary-color !important; color: #fff !important; } } .open& { -webkit-transform: none; transform: none; visibility: visible; transition-delay: 0s; } } & .dropdown-backdrop { background: fade(@fl-secondary-color, 90%); opacity: 0; .transition(~"opacity 0.3s"); .translate3d(0, 0, 0); .open& { opacity: 1; } } } } // ------------------------------------ // Mixins .expand-dropdown() { & .dropdown-toggle { display: none; } & .dropdown-menu { display: block; border: 0; width: auto; margin: 0; padding: 0; min-width: 0; float: none; position: static; background: none; .box-shadow(none); } } .nav-list() { & > li > a { padding: 8px 0 8px 30px; color: @fl-body-muted-color; &:hover { background: none; color: @link-hover-color; } & .icon { float: left; margin-left: -30px; margin-top: 1px; font-size: 15px; } } & > li.active > a { background: none; color: @fl-body-primary-color; font-weight: bold; } & > li.divider { background: none; } }