123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- //
- // Dropdown menus
- // --------------------------------------------------
- /* All Displays */
- .dropdown-menu {
- border: none;
- border-radius: @border-radius-base !important;
- box-shadow: 0px 0px 0px 6px @dropdown-shadow;
- margin-top: 12px;
- max-height: 310px;
- &:after {
- border: solid transparent;
- border-bottom-color: @dropdown-bg;
- border-width: 6px;
- content: "";
- height: 0;
- position: absolute;
- pointer-events: none;
- left: 12px;
- top: -11px;
- width: 0;
- }
- li {
- /* Links */
- a {
- padding: @padding-base-vertical @padding-large-horizontal;
- }
- /* Buttons */
- button {
- background: none;
- border: none;
- border-radius: 0px;
- padding: @padding-base-vertical @padding-large-horizontal;
- width: 100%;
- color: @dropdown-link-color;
- text-align: left;
- white-space: nowrap;
- }
- /* Colors */
- a, button {
- &:hover {
- background-color: @dropdown-link-hover-bg;
- transition-timing-function: ease;
- transition-duration: 0.15s;
- color: @dropdown-link-hover-color;
- }
- &:active, &:focus {
- background-color: @dropdown-link-active-bg;
- outline: none;
- transition-duration: 0.07s;
- color: @dropdown-link-active-color;
- }
- }
- /* Icons */
- a, button {
- .glyphicon, .fa {
- display: inline-block;
- margin-right: 4px;
- width: 16px;
- text-align: center;
- }
- }
- /* Badges */
- a {
- .badge {
- border-radius: @border-radius-small;
- position: relative;
- top: 1px;
- }
- &:link, &:visited {
- .badge {
- background-color: @brand-danger;
- color: @dropdown-bg;
- }
- }
- &:hover {
- .badge {
- background-color: @dropdown-bg;
- color: @dropdown-link-hover-bg;
- }
- }
- &:active {
- .badge {
- background-color: @dropdown-bg;
- color: @dropdown-link-active-bg;
- }
- }
- }
- }
- }
- /* Move arrow to right on pull-right dropdowns */
- .pull-right {
- .dropdown-menu:after {
- left: auto;
- right: 12px;
- }
- }
- /* Big displays */
- @media (min-width: @screen-sm-min) {
- .dropdown-menu {
- &.width-medium {
- max-width: 200px;
- }
- &.width-large {
- max-width: 300px;
- }
- .dropdown-title {
- background-color: @dropdown-title-bg;
- border-bottom: 1px solid @dropdown-title-border;
- border-radius: @border-radius-base @border-radius-base 0px 0px;
- margin-top: -5px;
- margin-bottom: 5px;
- padding: @padding-base-vertical @padding-base-horizontal;
- color: @dropdown-title-color;
- font-weight: bold;
- .badge {
- background-color: darken(@brand-danger, 10%);
- border-radius: @border-radius-small;
- }
- }
- .dropdown-footer {
- background-color: @dropdown-title-bg;
- border-top: 1px solid @dropdown-title-border;
- .box-shadow(0px -3px 3px -1px darken(@dropdown-title-bg, 5%));
- border-radius: 0px 0px @border-radius-base @border-radius-base;
- margin-bottom: -5px;
- padding: @padding-base-vertical @padding-base-horizontal;
- color: @dropdown-title-color;
- font-weight: bold;
- }
- &>li {
- .badge {
- margin-left: @line-height-computed / 2;
- }
- button {
- background: none;
- border: none;
- width: 100%;
- color: @dropdown-link-color;
- text-align: left;
- &:hover {
- background-color: @dropdown-link-hover-bg;
- color: @dropdown-link-hover-color;
- }
- &:active, &:focus {
- background-color: @dropdown-link-active-bg;
- color: @dropdown-link-active-color;
- }
- }
- }
- }
- }
- // Dropup tweak
- .dropup {
- .dropdown-menu {
- margin-top: 0px;
- margin-bottom: 8px;
- }
- }
- // Utility class for js scroll handling
- .scrollable {
- overflow-y: auto;
- }
|