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.

133 lines
2.9 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <modal name="NoticeDetails" :clickToClose="false">
  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-between">
  5. <div class="t18 xl:tw-text-[20px]">Notice Details</div>
  6. <button class="close tw-transition tw-btn-md" @click="$modal.hide('NoticeDetails')"></button>
  7. </div>
  8. <div class="modal-content tw-head-body tw-grid tw-gap-[30px] tw-grid-cols-1">
  9. <div v-html="BookingOrder.NoticeDetail">
  10. </div>
  11. </div>
  12. <div class="tw-flex tw-justify-end tw-hidden xl:tw-flex">
  13. <button
  14. class="tw-body-2 tw-text-neutrals-0 tw-bg-base-secondary tw-rounded-[16px] tw-px-[24px] tw-py-[12px] tw-mb-[10px]"
  15. @click="$modal.hide('NoticeDetails')">
  16. OK
  17. </button>
  18. </div>
  19. </div>
  20. </modal>
  21. </template>
  22. <script>
  23. export default {
  24. name: "NoticeDetails",
  25. data() {
  26. return {};
  27. },
  28. props: {
  29. BookingOrder: {
  30. type: Object,
  31. }
  32. },
  33. };
  34. </script>
  35. <style lang="scss" scoped>
  36. .close {
  37. position: absolute;
  38. right: 25px;
  39. top: 25px;
  40. background-image: url("~/assets/svg/close.svg");
  41. background-position: center;
  42. background-repeat: no-repeat;
  43. background-size: cover;
  44. width: 14px;
  45. height: 14px;
  46. @media screen and (min-width: 1366px) {
  47. position: relative;
  48. right: initial;
  49. top: initial;
  50. }
  51. }
  52. :deep() {
  53. .v--modal {
  54. background-color: #f8f8f8 !important;
  55. text-align: left;
  56. border-top-left-radius: 16px;
  57. border-top-right-radius: 16px;
  58. box-shadow: 0 20px 60px -2px rgb(27 33 58 / 40%);
  59. padding: 20px;
  60. min-width: 100% !important;
  61. top: 0 !important;
  62. left: 0 !important;
  63. right: 0 !important;
  64. margin: 0;
  65. height: auto !important;
  66. vertical-align: bottom;
  67. @media screen and (min-width: 1366px) {
  68. border-radius: 16px;
  69. //width: max-content;
  70. vertical-align: middle;
  71. }
  72. }
  73. .v--modal-overlay {
  74. position: fixed;
  75. box-sizing: border-box;
  76. left: 0;
  77. top: 0;
  78. align-items: flex-end;
  79. width: 100%;
  80. height: auto;
  81. background: rgba(0, 0, 0, 0.2);
  82. z-index: 999;
  83. opacity: 1;
  84. @media screen and (min-width: 1366px) {
  85. width: max-content !important;
  86. display: flex;
  87. justify-content: center;
  88. }
  89. }
  90. .v--modal-overlay[data-modal=""] {
  91. width: max-content !important;
  92. display: flex;
  93. justify-content: center;
  94. }
  95. .v--modal-box {
  96. top: 0;
  97. left: 0;
  98. width: 100%;
  99. height: 0;
  100. @media screen and (min-width: 1366px) {
  101. width: max-content;
  102. }
  103. }
  104. .v--modal-top-right {
  105. display: block;
  106. position: fixed;
  107. right: 0;
  108. top: 0;
  109. }
  110. .v--modal-background-click {
  111. display: flex;
  112. align-items: flex-end;
  113. margin: 0 auto;
  114. @media screen and (min-width: 1366px) {
  115. width: 600px !important;
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. }
  120. }
  121. }
  122. </style>