dropdown-extra.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* ========================================================================
  2. Component: dropdown-extras
  3. ========================================================================== */
  4. // Allows to mix list group inside dropdowns
  5. .dropdown-list {
  6. .dropdown-item {
  7. padding: 0;
  8. }
  9. >.dropdown-menu {
  10. padding: 0;
  11. min-width: 220px;
  12. }
  13. .list-group {
  14. margin: 0;
  15. }
  16. .list-group-item {
  17. border-radius: 0;
  18. border-left: 0;
  19. border-right: 0;
  20. &:first-child {
  21. border-top: 0;
  22. }
  23. &:last-child {
  24. border-bottom: 0;
  25. }
  26. }
  27. }
  28. // Labels inside dropdowns
  29. .dropdown {
  30. >a {
  31. position: relative;
  32. >.badge {
  33. position: absolute;
  34. top: 10px;
  35. right: 0;
  36. padding: 2px 5px;
  37. }
  38. }
  39. }
  40. // Popper doesnt place correctly dropdowns
  41. // we can use forced class to place them
  42. .dropdown-menu-right-forced {
  43. right: 0 !important;
  44. left: auto !important;
  45. }
  46. // Remove default icon from dropdowns
  47. .dropdown-toggle-nocaret {
  48. &:after {
  49. display: none;
  50. }
  51. }