/* Table of Contents ================================================== # Dropdown # Submenu # Dropup */ /* # Dropdown ================================================== */ .dropup, .dropdown { position: relative; } .dropdown-toggle:active, .open .dropdown-toggle { outline: 0; } .dropdown-menu { background: $color-haze-light; background-clip: padding-box; border: 2px solid $color-haze-dark; box-shadow: 0 0 3px rgba(220,220,220,1); box-sizing: border-box; color: $color-black; display: block; float: left; font-weight: bold; font-size: 12px; letter-spacing: 0; line-height: 12px; list-style: none; margin: 2px 0 0 0; min-width: 180px; opacity: 0; padding: 10px 0; position: absolute; text-align: left; text-transform: none; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; top: 100%; visibility: hidden; z-index: 1000; } .dropdown-menu.pull-right { left: auto; right: 0; } .dropdown-menu > .divider { background: $color-haze; height: 1px; margin: 5px 0px; overflow: hidden; } .dropdown-menu > li > a { clear: both; color: $color-black; cursor: pointer; display: block; padding: 8px 15px; text-decoration: none; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:active, .dropdown-menu > li > a.active, .dropdown-menu > li > a:focus, .dropdown-submenu:hover > a, .dropdown-submenu:active > a, .dropdown-submenu.active > a, .dropdown-submenu:focus > a { 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: -10px 0; padding: 4px; } .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 $color-haze-dark; 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 $color-haze-dark; 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; } .dropdown-menu-title { background: $color-haze; letter-spacing: 1px; padding: 8px 15px; text-transform: uppercase; } /* # 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.pull-left { float: none; } .dropdown-submenu.pull-left > .dropdown-menu { left: -100%; margin-left: -8px; } /* # Dropup ================================================== */ .dropup .dropdown-menu { top: auto; bottom: 100%; margin: 0 0 2px 0; } .dropup .dropdown-menu.dropdown-caret { bottom: calc(100% + 5px); top: auto; } .dropup .dropdown-menu.dropdown-caret:before { border-bottom: 0; border-top: 7px solid $color-haze-dark; bottom: -9px; left: 9px; top: auto; } .dropup .dropdown-menu.dropdown-caret:after { border-bottom: 0; border-top: 6px solid $color-haze-dark; 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; }