/* Table of Contents ================================================== # Dropdown # Submenu # Dropup # Colors # Media Queries */ /* # Dropdown ================================================== */ .dropup, .dropdown { position: relative; } .dropdown-toggle:active, .open .dropdown-toggle { outline: 0; } .dropdown-menu { background: $color-white; background-clip: padding-box; border: 2px solid; border-color: $color-haze !important; box-shadow: 0 0 3px $color-dark-haze; box-sizing: border-box; color: $color-black; display: block; float: left; font-size: 12px; font-weight: bold; letter-spacing: 0; line-height: 1; list-style: none; margin: 2px 0 0 0; min-width: 180px; opacity: 0; padding: 8px 0; position: absolute; text-align: left; text-transform: none; @include transition(all 0.09s ease-in-out); top: 100%; visibility: hidden; z-index: 1000; } .dropdown-menu.pull-right { left: auto; right: 0; } .dropdown-menu > .title, .dropdown-menu > .divider { background: $color-light-haze; } .dropdown-menu > .title { border-bottom: 1px solid; border-top: 1px solid; border-color: inherit; letter-spacing: 1px; margin: 3px 0 5px 0; padding: 7px 15px; text-transform: uppercase; } .dropdown-menu > .divider { height: 1px; margin: 5px 0 4px 0; overflow: hidden; } .dropdown-menu > li > a { clear: both; display: block; padding: 8px 15px; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:active, .dropdown-menu > li > a.active, .dropdown-menu > li > a:focus { color: $color-primary; } .dropdown-menu > li > a i:first-child { display: inline-block; min-width: 14px; text-align: center; } .dropdown-menu > li .badge, .dropdown-menu > li .label { margin: -5px 0; padding: 4px 6px; } .open > .dropdown-menu { display: block; opacity: 1; visibility: visible; } .pull-right > .dropdown-menu { left: auto; right: 0; } .dropdown-menu.dropdown-caret { top: calc(100% + 5px); } .dropdown-menu.dropdown-caret:before { border-bottom: 7px solid; border-color: inherit; border-left: 7px solid $color-transparent; border-right: 7px solid $color-transparent; content: ""; display: inline-block; left: 9px; position: absolute; top: -9px; } .dropdown-menu.dropdown-caret:after { border-bottom: 6px solid; border-color: inherit; border-left: 6px solid $color-transparent; border-right: 6px solid $color-transparent; content: ""; display: inline-block; left: 10px; position: absolute; top: -7px; } .dropdown-menu.pull-right.dropdown-caret:before { left: auto; right: 9px; } .dropdown-menu.pull-right.dropdown-caret:after { left: auto; right: 10px; } /* # Submenu ================================================== */ .dropdown-submenu { position: relative; } .dropdown-submenu > .dropdown-menu { left: 100%; margin-left: 6px; margin-top: -6px; top: 0; } .dropdown-submenu:hover > .dropdown-menu { display: block; opacity: 1; visibility: visible; } .dropdown-submenu > a:after { content: " "; display: block; float: right; height: 0; margin-right: -10px; margin-top: 5px; width: 0; } .dropdown-submenu:hover > a, .dropdown-submenu:active > a, .dropdown-submenu.active > a, .dropdown-submenu:focus > a { color: $color-primary; } .dropdown-submenu.pull-left { float: none; } .dropdown-submenu.pull-left > .dropdown-menu { left: -100%; margin-left: -8px; } /* # Dropup ================================================== */ .dropup .dropdown-menu { bottom: 100%; margin: 0 0 2px 0; top: auto; } .dropup .dropdown-menu.dropdown-caret { bottom: calc(100% + 5px); top: auto; } .dropup .dropdown-menu.dropdown-caret:before { border-bottom: 0; border-top: 7px solid; border-top-color: inherit; bottom: -9px; left: 9px; top: auto; } .dropup .dropdown-menu.dropdown-caret:after { border-bottom: 0; border-top: 6px solid; border-top-color: inherit; bottom: -7px; left: 10px; top: auto; } .dropup .dropdown-menu.pull-right.dropdown-caret:before { left: auto; right: 9px; } .dropup .dropdown-menu.pull-right.dropdown-caret:after { left: auto; right: 10px; } .dropup .dropdown-submenu > .dropdown-menu { margin-left: 6px; } .dropup .dropdown-submenu.pull-left > .dropdown-menu { margin-left: -8px; } /* # Colors ================================================== */ .dropdown-dark { background: $color-black; border-color: $color-light-black !important; box-shadow: 0 0 3px $color-dark-black; color: $color-white; } .dropdown-light { background: $color-light-haze; border-color: $color-dark-haze !important; } .dropdown-dark > .title { background: $color-light-black; border-color: $color-dark-black; } .dropdown-dark > .divider { background: $color-dark-black; } .dropdown-light > .title, .dropdown-light > .divider { background: $color-haze; } /* # Media Queries ================================================== */ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ( min--moz-device-pixel-ratio: 2), only screen and ( -o-min-device-pixel-ratio: 2/1), only screen and ( min-device-pixel-ratio: 2), only screen and ( min-resolution: 192dpi), only screen and ( min-resolution: 2dppx) { .dropdown-menu > .title { border-width: 0.5px; letter-spacing: 0.5px; } }