_photos-mobile.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. $photos-main-family:'Microsoft JhengHei', Helvetica,Noto Sans TC,Roboto,Arial,sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  2. .html-mobile, .photos-mobile {
  3. position: relative;
  4. height: 100%;
  5. }
  6. .photos-mobile {
  7. margin: 0;
  8. padding: 0;
  9. font-family: $photos-main-family;
  10. }
  11. /* 照片輪播區塊 */
  12. .swiper-container {
  13. width: 100% !important;
  14. height: 73% !important;
  15. z-index: unset !important;
  16. }
  17. .swiper-wrapper{
  18. position: relative;
  19. width: 100%;
  20. height: 85% !important;
  21. z-index: 1;
  22. display: flex;
  23. transition-property: transform;
  24. box-sizing: content-box;
  25. }
  26. .swiper-slide {
  27. flex-shrink: 0;
  28. width: 100%;
  29. height: 100%;
  30. position: relative;
  31. /* Center slide text vertically */
  32. display: -webkit-box;
  33. display: -ms-flexbox;
  34. display: -webkit-flex;
  35. display: flex;
  36. -webkit-box-pack: center;
  37. -ms-flex-pack: center;
  38. -webkit-justify-content: center;
  39. justify-content: center;
  40. -webkit-box-align: center;
  41. -ms-flex-align: center;
  42. -webkit-align-items: center;
  43. align-items: center;
  44. }
  45. .img-wrapper{
  46. background-color: #6D6D6D;
  47. display: flex;
  48. width: 100%;
  49. height: 100%;
  50. justify-content: center;
  51. align-items: center;
  52. }
  53. .swiper-zoom-container{
  54. width: 100%;
  55. height: 100%;
  56. display: -webkit-box;
  57. display: -webkit-flex;
  58. display: -ms-flexbox;
  59. display: flex;
  60. -webkit-box-pack: center;
  61. -webkit-justify-content: center;
  62. -ms-flex-pack: center;
  63. justify-content: center;
  64. -webkit-box-align: center;
  65. -webkit-align-items: center;
  66. -ms-flex-align: center;
  67. align-items: center;
  68. text-align: center;
  69. img{
  70. width: 100%;
  71. height: auto;
  72. max-width: 100%;
  73. max-height: 100%;
  74. object-fit: cover !important;
  75. }
  76. }
  77. .swiper-button-prev, .swiper-button-next{
  78. top: 45% !important;
  79. }
  80. .swiper-button-prev:after{
  81. content:'';
  82. width: 30px;
  83. height: 105px;
  84. background: url("../images/section/icon/photos/LEFT-1.svg") no-repeat ;
  85. background-position: center;
  86. display: inline-block;
  87. color: transparent;
  88. filter: drop-shadow(0 3px 5px #333);
  89. }
  90. .swiper-button-next:after{
  91. content:'';
  92. width: 30px;
  93. height: 105px;
  94. background: url("../images/section/icon/photos/RIGHT-1.svg") no-repeat ;
  95. background-position: center;
  96. display: inline-block;
  97. color: transparent;
  98. filter: drop-shadow(0 3px 5px #333);
  99. }
  100. .swiper-button-prev, .swiper-button-next{
  101. &:focus{
  102. outline: none;
  103. }
  104. }
  105. .icon-close-wrapper{
  106. position: absolute;
  107. z-index: 99;
  108. right: 3%;
  109. left: auto;
  110. top: 3%;
  111. svg{
  112. filter: drop-shadow(0 3px 5px #333);
  113. }
  114. }
  115. .icon-wrapper{
  116. display: flex;
  117. justify-content: center;
  118. width: 100%;
  119. position: absolute;
  120. bottom: 17%;
  121. z-index: 99;
  122. }
  123. .icon{
  124. display: inline-block;
  125. width: 40px;
  126. height: 40px;
  127. background-size: cover;
  128. box-shadow: 1px 3px 13px -2px rgba(0, 0, 0, 0.35);
  129. &:hover, &:focus, &:active{
  130. box-shadow: 5px 3px 1px -3px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  131. }
  132. }
  133. .icon-media-wrapper{
  134. width: 100%;
  135. height: 80px;
  136. position: absolute;
  137. bottom: 20.5%;
  138. right: 0%;
  139. z-index: 99;
  140. opacity: 0;
  141. transition: opacity 300ms ease-in-out;
  142. .icon-media-box{
  143. width: 41%;
  144. padding: .5rem .5rem;
  145. margin-left: auto;
  146. margin-right: auto;
  147. }
  148. .close-btn{
  149. position: absolute;
  150. top: 3%;
  151. right: 12%;
  152. }
  153. }
  154. .icon-media-wrapper.active{
  155. opacity: 1;
  156. }
  157. .icon-share-m{
  158. background-image: url(../../assets/images/section/icon/photos/share-1.svg);
  159. }
  160. .icon-download-m{
  161. background-image: url(../../assets/images/section/icon/photos/download-1.svg);
  162. }
  163. .icon-like-m{
  164. background-image: url(../../assets/images/section/icon/photos/like-1.svg);
  165. &.icon-like-solid{
  166. background-image: url(../../assets/images/section/icon/photos/like-3.svg);
  167. }
  168. }
  169. /* 資訊區塊 */
  170. .divider{
  171. width: 100%;
  172. height: 1px;
  173. border-left: none;
  174. border-bottom: 1px solid #9c9c9c;
  175. margin: 10px 0;
  176. }
  177. .hmb-info-area{
  178. padding: 1rem;
  179. transform: translateY(-5%);
  180. }
  181. .info-area-title{
  182. font-size: 18px;
  183. font-weight: bold;
  184. }
  185. .info-area-other-case, .info-area-same-case, .info-area-data, .info-area-contact{
  186. font-size: 16px;
  187. font-weight: bold;
  188. color: #6D6D6D;
  189. }
  190. .info-area-other-case img, .info-area-same-case img{
  191. // width: 75px;
  192. width: 100%;
  193. height: 75px;
  194. }
  195. .data-table{
  196. width: 100%;
  197. font-size: 14px;
  198. padding: 0.55rem 0;
  199. .data-table-items{
  200. padding: .05rem 0;
  201. }
  202. .data-table-lf {
  203. flex-basis: 23%;
  204. flex-grow: 0;
  205. max-width: 25%;
  206. display: flex;
  207. justify-content: start;
  208. align-items: start;
  209. }
  210. .data-table-rt {
  211. flex-basis: 77%;
  212. flex-grow: 0;
  213. max-width: 75%;
  214. justify-content: start;
  215. word-break: break-all;
  216. }
  217. }
  218. .contact-section{
  219. a{
  220. &:hover, &:focus{
  221. text-decoration: none;
  222. }
  223. }
  224. .contact-section-avatar{
  225. width: 75px;
  226. height: 100px;
  227. background-position: center;
  228. background-repeat: no-repeat;
  229. background-size: cover;
  230. }
  231. span{
  232. font-size: 18px;
  233. font-weight: normal;
  234. }
  235. .contact-section-detail{
  236. font-size: 14px;
  237. }
  238. .contact-section-detail-lf{
  239. flex-basis: 7%;
  240. flex-grow: 0;
  241. display: flex;
  242. align-items: start;
  243. max-width: 7%;
  244. }
  245. .contact-section-detail-rt{
  246. flex-basis: 93%;
  247. flex-grow: 0;
  248. max-width: 93%;
  249. }
  250. }