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
2.0 KiB

2 years ago
  1. <template>
  2. <modal name="cancellationPolicy" height="auto" :scrollable="true" :clickToClose="true">
  3. <div class="tw-text-base-primary xl:tw-p-[5px]">
  4. <div class="modal-header tw-flex tw-w-full tw-justify-center tw-mb-[32px] md:tw-mb-[21px] xl:tw-justify-start">
  5. <button class="close tw-transition tw-btn-md" @click="$modal.hide('cancellationPolicy')"></button>
  6. <div class="t18 tw-mt-[30px] xl:tw-text-[20px]">
  7. Cancellation Policy
  8. </div>
  9. </div>
  10. <div
  11. class="editor-styleguide modal-content tw-head-body tw-grid tw-gap-[10px] tw-px-[20px] tw-grid-cols-1 md:tw-text-[12px]">
  12. <div v-html="cancellationPolicy"></div>
  13. </div>
  14. </div>
  15. </modal>
  16. </template>
  17. <script>
  18. export default {
  19. name: "cancellation-policy-modal",
  20. data() {
  21. return {};
  22. },
  23. props: {
  24. cancellationPolicy: {
  25. type: String,
  26. },
  27. },
  28. };
  29. </script>
  30. <style lang="scss" scoped>
  31. .close {
  32. position: absolute;
  33. right: 25px;
  34. top: 30px;
  35. background-image: url("~/assets/svg/close.svg");
  36. background-position: center;
  37. background-repeat: no-repeat;
  38. background-size: cover;
  39. width: 14px;
  40. height: 14px;
  41. }
  42. .v--modal-overlay::v-deep {
  43. position: fixed;
  44. box-sizing: border-box;
  45. left: 0;
  46. bottom: 0;
  47. width: 100%;
  48. height: 100%;
  49. background: rgba(0, 0, 0, 0.2);
  50. z-index: 999 !important;
  51. opacity: 1;
  52. .v--modal {
  53. width: 100% !important;
  54. max-width: 100% !important;
  55. height: auto;
  56. max-height: 640px;
  57. border-top-left-radius: 16px;
  58. border-top-right-radius: 16px;
  59. top: 0 !important;
  60. left: 0 !important;
  61. right: 0 !important;
  62. margin: 0;
  63. @media screen and (min-width: 768px) {
  64. height: auto;
  65. max-height: 900px;
  66. }
  67. }
  68. .v--modal-box {
  69. overflow: auto;
  70. }
  71. .v--modal-background-click {
  72. display: flex;
  73. align-items: flex-end;
  74. @media screen and (min-width: 768px) {
  75. display: flex !important;
  76. align-items: flex-end !important;
  77. }
  78. }
  79. }
  80. </style>