_drop.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. $popover-arrow-size: 10px;
  2. $color: inherit;
  3. $color: $text-color;
  4. $useDropShadow: false;
  5. $attachmentOffset: 0%;
  6. $easing: cubic-bezier(0, 0, 0.265, 1);
  7. @include drop-theme('error', $popover-error-bg, $white);
  8. @include drop-theme('popover', $popover-bg, $popover-color, $popover-border-color);
  9. @include drop-theme('help', $popover-help-bg, $popover-help-color);
  10. @include drop-animation-scale('drop', 'help', $attachmentOffset: $attachmentOffset, $easing: $easing);
  11. @include drop-animation-scale('drop', 'error', $attachmentOffset: $attachmentOffset, $easing: $easing);
  12. @include drop-animation-scale('drop', 'popover', $attachmentOffset: $attachmentOffset, $easing: $easing);
  13. .drop-element {
  14. z-index: 10000;
  15. position: absolute;
  16. display: none;
  17. opacity: 0;
  18. &.drop-open {
  19. display: block;
  20. }
  21. }
  22. .drop-element,
  23. .drop-element * {
  24. box-sizing: border-box;
  25. }
  26. .drop-popopver-close {
  27. position: absolute;
  28. top: -5px;
  29. right: 0;
  30. font-size: $font-size-lg;
  31. }
  32. .drop-help {
  33. a {
  34. color: $gray-6;
  35. &:hover {
  36. color: $white;
  37. }
  38. }
  39. }
  40. .drop-hide-out-of-bounds {
  41. &.drop-open.drop-help.drop-out-of-bounds,
  42. &.drop-open-transitionend.drop-help.drop-out-of-bounds {
  43. display: none;
  44. }
  45. }
  46. .drop-element.drop-popover {
  47. .drop-content {
  48. box-shadow: $popover-shadow;
  49. }
  50. }
  51. .drop-element.drop-popover--form {
  52. .drop-content {
  53. max-width: none;
  54. padding: 0;
  55. }
  56. }
  57. .drop-element.drop-popover--annotation {
  58. .drop-content {
  59. padding: 0;
  60. }
  61. }