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.

128 lines
2.7 KiB

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