git.fiddlerwoaroof.com
less/dropdowns.less
ffc9d555
 // DROPDOWN MENUS
 // --------------
 
 // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
 .dropup,
 .dropdown {
   position: relative;
 }
d68d8083
 
43bb22fc
 button.dropdown-toggle:active,
c1496ad9
 .btn-group.open button.btn.dropdown-toggle {
98840c8e
     outline: 0;
     background-color: #383838;
     border-bottom-left-radius: 0;
     border-bottom-right-radius: 0;
d68d8083
     border-bottom-color: #383838;
ffc9d555
 }
 
 // Dropdown arrow/caret
 // --------------------
 .caret {
   display: inline-block;
   width: 0;
   height: 0;
   vertical-align: top;
ec53a187
   border-top:   4pt solid @zenburnFgLight;
ffc9d555
   border-right: 4pt solid transparent;
   border-left:  4pt solid transparent;
   content: "";
 }
cf0e5a7f
 .btn-group:hover .caret {border-top:   4pt solid @zenburnFgDark;}
ffc9d555
 
 // Place the caret
 .dropdown .caret {
   margin-top: 8pt;
   margin-left: 2pt;
 }
 
 // The dropdown menu (ul)
 // ----------------------
4c1156a8
 .btn-group > .btn.dropdown-toggle {
8da428df
     transition: color 0.1s;
4c1156a8
     border: 1pt solid @green;
 }
 
90575a17
 .btn-group > button.btn.dropdown-toggle {
7e60afb6
     z-index: @zindexDropdown + 10;
 }
ffc9d555
 .dropdown-menu {
   position: absolute;
   top: 100%;
   left: 0;
   z-index: @zindexDropdown;
98840c8e
 
aa6056e8
   transition: transform 0.15s, width 0.15s;
98840c8e
   transform: scaleY(0);
   transform-origin: top;
467921c7
 
   margin: 0; // override default ul
98840c8e
   margin-top: -1pt;
 
ffc9d555
   float: left;
aa6056e8
   width: 100%;
ffc9d555
   padding: 4pt 0;
   list-style: none;
   background-color: @dropdownBackground;
e563466f
   border: 1pt solid @green;
96f4775e
   background-clip: padding-box;
ffc9d555
 
   // Aligns the dropdown menu to right
   &.pull-right {
     right: 0;
     left: auto;
   }
 
   // Dividers (basically an hr) within the dropdown
   .divider {
     .nav-divider();
   }
 
   // Links within the dropdown menu
   a {
     display: block;
     padding: 3pt 15pt;
     clear: both;
     font-weight: normal;
     line-height: @baseLineHeight;
     color: @dropdownLinkColor;
     white-space: nowrap;
   }
 
   .dropdown-header {
       display: block;
       padding: 3pt 15pt;
       font-size: 11pt;
       font-weight: bold;
       line-height: @baseLineHeight;
caf51e18
       color: @zenburnFgLight;
ffc9d555
       text-transform: uppercase;
     }
9b87a512
 
aa6056e8
   .search {
       background-color: rgba(63,63,63, 0.8);
       margin: 3%;
       max-width: 94%;
   }
ffc9d555
 }
 
 // Hover state
 // -----------
 .dropdown-menu li > a:hover,
 .dropdown-menu .active > a,
 .dropdown-menu .active > a:hover {
   color: @dropdownLinkColorHover;
   text-decoration: none;
   background-color: @dropdownLinkBackgroundHover;
 }
 
 // Open state for the dropdown
 // ---------------------------
 .open {
aa6056e8
     .dropdown-menu {
         transform: scaleY(1);
         backface-visibility: hidden;
         width: calc(100% + 52pt);
     }
ffc9d555
 }
 
 // Right aligned dropdowns
 // ---------------------------
 .pull-right .dropdown-menu {
   right: 0;
   left: auto;
 }