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.

85 lines
1.9 KiB

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