/* Dropdowns /* ---------------------------------------------------------- */ .dropdown { position: relative; z-index: 1000; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; float: left; min-width: 220px; padding: 5px 0; margin: 2px 0 0; background-color: #fff; border: color(var(--lightgrey) lightness(-15%)) 1px solid; border-radius: 4px; box-shadow: rgba(0, 0, 0, 0.175) 0 2px 6px; background-clip: padding-box; list-style: none; font-size: 1.4rem; font-weight: normal; text-transform: none; letter-spacing: 0; text-align: left; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 4px 0; overflow: hidden; background: color(var(--lightgrey) lightness(-5%)); } .dropdown-menu > li > a, .dropdown-menu > li > button { display: block; width: 100%; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.9em; text-align: left; color: #333; white-space: nowrap; transition: none; } .dropdown-menu i { font-size: 0.9em; margin-right: 0.5rem; } /* States /* ---------------------------------------------------------- */ /* Hover/Focus */ .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-menu > li > button:hover, .dropdown-menu > li > button:focus { text-decoration: none; color: #fff; background: var(--blue); } /* Active */ .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus, .dropdown-menu > .active > button, .dropdown-menu > .active > button:hover, .dropdown-menu > .active > button:focus { color: #fff; text-decoration: none; outline: 0; background-color: #428bca; } /* Disabled */ .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus, .dropdown-menu > .disabled > button, .dropdown-menu > .disabled > button:hover, .dropdown-menu > .disabled > button:focus { color: #777; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus, .dropdown-menu > .disabled > button:hover, .dropdown-menu > .disabled > button:focus { text-decoration: none; background-color: transparent; background-image: none; cursor: not-allowed; } /* Open / Close /* ---------------------------------------------------------- */ .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .closed > .dropdown-menu { display: none; }