/* 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: 1px solid; border-color: $color-haze !important; border-radius: 3px; box-sizing: border-box; color: $color-black; display: none; 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; padding: 8px 0; position: absolute; text-align: left; text-transform: none; @include transition(all 0.09s ease-in-out); top: 100%; z-index: 1040; } .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 { border-color: inherit; line-height: 1; } .dropdown-menu > li > a { border-bottom: 1px solid; border-top: 1px solid; border-color: $color-transparent; clear: both; display: block; padding: 8px 15px 9px 15px; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:active, .dropdown-menu > li > a.active, .dropdown-menu > li > a:focus { background: $color-light-haze; border-color: inherit; 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: -4px 0 -6px 0; padding: 4px 6px; } .open > .dropdown-menu { @include animation-duration(0.5s); @include animation-fill-mode(both); @include animation-name(animation-bounce-in); display: block; } .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: -7px; } .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: -6px; } .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, .dropdown-submenu:active > .dropdown-menu, .dropdown-submenu.active > .dropdown-menu, .dropdown-submenu:focus > .dropdown-menu { @include animation-duration(0.5s); @include animation-fill-mode(both); @include animation-name(animation-bounce-in); display: block; } .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: -7px; left: 9px; top: auto; } .dropup .dropdown-menu.dropdown-caret:after { border-bottom: 0; border-top: 6px solid; border-top-color: inherit; bottom: -6px; 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-dark-black !important; color: $color-white; } .dropdown-light { background: $color-light-haze; border-color: $color-dark-haze !important; } .dropdown-dark > .title, .dropdown-dark > li > a:hover, .dropdown-dark > li > a:active, .dropdown-dark > li > a.active, .dropdown-dark > li > a:focus { background: $color-light-black; border-color: $color-dark-black; } .dropdown-dark > .divider { background: $color-dark-black; } .dropdown-light > .title, .dropdown-light > .divider, .dropdown-light .dropdown-menu > li > a:hover, .dropdown-light .dropdown-menu > li > a:active, .dropdown-light .dropdown-menu > li > a.active, .dropdown-light .dropdown-menu > li > a:focus { 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, .dropdown-menu > .title, .dropdown-menu > li > a { border-width: 0.5px; } .dropdown-menu > .title { letter-spacing: 0.5px; } }