Drupal 8 Site using Vue
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.

86 lines
1.4 KiB

  1. // Import site utilities.
  2. @import '../../global/utils/init';
  3. .modal {
  4. .modal__modal {
  5. display: flex;
  6. height: 100%;
  7. .modal__content {
  8. margin: auto;
  9. padding: 20px 30px;
  10. background-color: $color-white;
  11. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
  12. transition: opacity 300ms ease;
  13. width: 80%;
  14. max-width: 1000px;
  15. max-height: 70%;
  16. border-radius: 2px;
  17. position: relative;
  18. @include breakpoint($lg) {
  19. width: 55%;
  20. }
  21. }
  22. &:focus {
  23. outline: none;
  24. }
  25. h1,
  26. h2,
  27. h3,
  28. h4 {
  29. margin-top: 0;
  30. }
  31. .modal__close {
  32. cursor: pointer;
  33. position: absolute;
  34. top: 10px;
  35. right: 10px;
  36. }
  37. .modal__footer {
  38. border-radius: 0 0 2px 2px;
  39. background-color: #fafafa;
  40. padding: 4px 6px;
  41. height: 56px;
  42. width: 100%;
  43. text-align: right;
  44. .btn,
  45. .btn-flat {
  46. margin: 6px 0;
  47. }
  48. }
  49. }
  50. .modal__mask {
  51. position: fixed;
  52. z-index: 999;
  53. top: 0;
  54. left: 0;
  55. bottom: 0;
  56. right: 0;
  57. height: 100%;
  58. width: 100%;
  59. background: rgba(0, 0, 0, 0.6);
  60. opacity: 1;
  61. transition: opacity 300ms ease;
  62. will-change: opacity;
  63. }
  64. .modal-enter {
  65. opacity: 0;
  66. }
  67. .modal-leave-active {
  68. opacity: 0;
  69. }
  70. .modal-enter .modal-container,
  71. .modal-leave-active .modal-container {
  72. transform: scale(1.1);
  73. }
  74. }