_drop.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. a {
  28. color: $white;
  29. &:hover {
  30. color: darken($white, 10%);
  31. }
  32. }
  33. }
  34. .drop-hide-out-of-bounds {
  35. &.drop-open.drop-help.drop-out-of-bounds,
  36. &.drop-open-transitionend.drop-help.drop-out-of-bounds {
  37. display: none;
  38. }
  39. }
  40. @include drop-theme("help", $popover-help-bg, $popover-help-color);
  41. @include drop-theme("error", $errorBackground, $popover-color);
  42. @include drop-theme("popover", $popover-bg, $popover-color);
  43. @include drop-animation-scale("drop", "help", $attachmentOffset: $attachmentOffset, $easing: $easing);
  44. @include drop-animation-scale("drop", "error", $attachmentOffset: $attachmentOffset, $easing: $easing);
  45. @include drop-animation-scale("drop", "popover", $attachmentOffset: $attachmentOffset, $easing: $easing);