_drop.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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-popover-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. }
  62. .drop-popover.gf-color-picker {
  63. .drop-content {
  64. width: 210px;
  65. }
  66. }
  67. // TODO: Remove. This is a temporary solution until color picker popovers are used
  68. // with Drop.js.
  69. .drop-popover.drop-popover--transparent {
  70. .drop-content {
  71. border: none;
  72. background: none;
  73. padding: 0;
  74. max-width: none;
  75. &:before {
  76. display: none;
  77. }
  78. }
  79. }