You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.0 KiB

  1. /**
  2. * Popups
  3. * --------------------------------------------------
  4. */
  5. .popup-container {
  6. position: absolute;
  7. top: 0;
  8. left: 0;
  9. bottom: 0;
  10. right: 0;
  11. background: rgba(0,0,0,0);
  12. @include display-flex();
  13. @include justify-content(center);
  14. @include align-items(center);
  15. z-index: $z-index-popup;
  16. // Start hidden
  17. visibility: hidden;
  18. &.popup-showing {
  19. visibility: visible;
  20. }
  21. &.popup-hidden .popup {
  22. @include animation-name(scaleOut);
  23. @include animation-duration($popup-leave-animation-duration);
  24. @include animation-timing-function(ease-in-out);
  25. @include animation-fill-mode(both);
  26. }
  27. &.active .popup {
  28. @include animation-name(superScaleIn);
  29. @include animation-duration($popup-enter-animation-duration);
  30. @include animation-timing-function(ease-in-out);
  31. @include animation-fill-mode(both);
  32. }
  33. .popup {
  34. width: $popup-width;
  35. max-width: 100%;
  36. max-height: 90%;
  37. border-radius: $popup-border-radius;
  38. background-color: $popup-background-color;
  39. @include display-flex();
  40. @include flex-direction(column);
  41. }
  42. input,
  43. textarea {
  44. width: 100%;
  45. }
  46. }
  47. .popup-head {
  48. padding: 15px 10px;
  49. border-bottom: 1px solid #eee;
  50. text-align: center;
  51. }
  52. .popup-title {
  53. margin: 0;
  54. padding: 0;
  55. font-size: 15px;
  56. }
  57. .popup-sub-title {
  58. margin: 5px 0 0 0;
  59. padding: 0;
  60. font-weight: normal;
  61. font-size: 11px;
  62. }
  63. .popup-body {
  64. padding: 10px;
  65. overflow: auto;
  66. }
  67. .popup-buttons {
  68. @include display-flex();
  69. @include flex-direction(row);
  70. padding: 10px;
  71. min-height: $popup-button-min-height + 20;
  72. .button {
  73. @include flex(1);
  74. display: block;
  75. min-height: $popup-button-min-height;
  76. border-radius: $popup-button-border-radius;
  77. line-height: $popup-button-line-height;
  78. margin-right: 5px;
  79. &:last-child {
  80. margin-right: 0px;
  81. }
  82. }
  83. }
  84. .popup-open {
  85. pointer-events: none;
  86. &.modal-open .modal {
  87. pointer-events: none;
  88. }
  89. .popup-backdrop, .popup {
  90. pointer-events: auto;
  91. }
  92. }