_dropdowns.scss 633 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Dropdown
  2. .dropdown {
  3. display: inline-block;
  4. position: relative;
  5. .menu {
  6. animation: slide-down .15s ease 1;
  7. display: none;
  8. left: 0;
  9. max-height: 50vh;
  10. overflow-y: auto;
  11. position: absolute;
  12. top: 100%;
  13. }
  14. &.dropdown-right {
  15. .menu {
  16. left: auto;
  17. right: 0;
  18. }
  19. }
  20. &.active .menu,
  21. .dropdown-toggle:focus + .menu,
  22. .menu:hover {
  23. display: block;
  24. }
  25. // Fix dropdown-toggle border radius in button groups
  26. .btn-group {
  27. .dropdown-toggle:nth-last-child(2) {
  28. border-bottom-right-radius: $border-radius;
  29. border-top-right-radius: $border-radius;
  30. }
  31. }
  32. }