_drop.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $popover-arrow-size: 0.7rem;
  2. $color: inherit;
  3. $backgroundColor: $btn-secondary-bg;
  4. $color: $text-color;
  5. $useDropShadow: false;
  6. $attachmentOffset: 0%;
  7. $easing: cubic-bezier(0, 0, 0.265, 1.00);
  8. .drop-element {
  9. z-index: 10000;
  10. position: absolute;
  11. display: none;
  12. opacity: 0;
  13. &.drop-open {
  14. display: block;
  15. }
  16. }
  17. .drop-element, .drop-element * {
  18. box-sizing: border-box;
  19. }
  20. .drop-popopver-close {
  21. position: absolute;
  22. top: -5px;
  23. right: 0;
  24. font-size: $font-size-lg;
  25. }
  26. .drop-help {
  27. ul {
  28. padding-left: $spacer;
  29. }
  30. }
  31. .drop-hide-out-of-bounds {
  32. &.drop-open.drop-help.drop-out-of-bounds,
  33. &.drop-open-transitionend.drop-help.drop-out-of-bounds {
  34. display: none;
  35. }
  36. }
  37. @include drop-theme("help", $popover-help-bg, $popover-help-color);
  38. @include drop-theme("popover", $popover-bg, $popover-color);
  39. @include drop-animation-scale("drop", "help", $attachmentOffset: $attachmentOffset, $easing: $easing);
  40. @include drop-animation-scale("drop", "popover", $attachmentOffset: $attachmentOffset, $easing: $easing);