_photos-desktop.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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-desktop,
  3. .photos-desktop {
  4. position: relative;
  5. height: 100%;
  6. }
  7. .photos-desktop {
  8. margin: 0;
  9. padding: 0;
  10. font-family: $photos-main-family;
  11. }
  12. /* 照片輪播區塊 */
  13. .swiper-container.swiper-container-desktop{
  14. width: calc(100% - 480px) !important;
  15. height: 100% !important;
  16. margin-left: 0;
  17. margin-right: 0;
  18. transition: width 30ms ease-in-out;
  19. &.active{
  20. width: 100% !important;
  21. }
  22. }
  23. .swiper-wrapper.swiper-wrapper-desktop{
  24. width: 100%;
  25. height: 100% !important;
  26. }
  27. .img-wrapper-desktop{
  28. background-color: #6D6D6D;
  29. display: flex;
  30. width: 100%;
  31. height: 100%;
  32. justify-content: center;
  33. align-items: center;
  34. }
  35. .swiper-zoom-container-desktop{
  36. width: 100%;
  37. height: 100%;
  38. display: -webkit-box;
  39. display: -webkit-flex;
  40. display: -ms-flexbox;
  41. display: flex;
  42. -webkit-box-pack: center;
  43. -webkit-justify-content: center;
  44. -ms-flex-pack: center;
  45. justify-content: center;
  46. -webkit-box-align: center;
  47. -webkit-align-items: center;
  48. -ms-flex-align: center;
  49. align-items: center;
  50. text-align: center;
  51. img{
  52. width: 100%;
  53. height: auto;
  54. max-width: 100%;
  55. max-height: 100%;
  56. object-fit: contain;
  57. }
  58. }
  59. .swiper-zoom-container-sm-desktop{
  60. width: 50%;
  61. height: 70%;
  62. }
  63. .swiper-button-next.swiper-button-next-desktop{
  64. right: 0px;
  65. }
  66. .swiper-button-prev.swiper-button-prev-desktop{
  67. left: 0px;
  68. }
  69. .swiper-button-prev.swiper-button-prev-desktop, .swiper-button-next.swiper-button-next-desktop{
  70. top: 50% !important;
  71. width: 8%;
  72. }
  73. .swiper-button-prev.swiper-button-prev-desktop:after{
  74. content:'';
  75. width: 50px;
  76. height: 180px;
  77. background: url("../images/section/icon/photos/LEFT-2.svg") no-repeat ;
  78. background-position: center;
  79. display: inline-block;
  80. color: transparent;
  81. }
  82. .swiper-button-next.swiper-button-next-desktop:after{
  83. content:'';
  84. width: 50px;
  85. height: 180px;
  86. background: url("../images/section/icon/photos/RIGHT-2.svg") no-repeat ;
  87. background-position: center;
  88. display: inline-block;
  89. color: transparent;
  90. }
  91. .icon-wrapper-desktop{
  92. width: 50px;
  93. position: absolute;
  94. bottom: 5%;
  95. right: 2%;
  96. z-index: 99;
  97. flex-direction: column;
  98. display: flex;
  99. justify-content: flex-end;
  100. align-items: flex-end;
  101. }
  102. .icon-share-box{
  103. height: 50px;
  104. }
  105. .icon-share-box:hover .icon-media-box{
  106. display: block;
  107. }
  108. .icon-media-wrapper-desktop{
  109. // width: 10.45vw;
  110. width: 200px;
  111. // height: 20vh;
  112. height: 50px;
  113. position: absolute;
  114. // bottom: 14%;
  115. bottom: 177px;
  116. // right: 120%;
  117. right: 59px;
  118. z-index: 99;
  119. .icon-media-box{
  120. position: relative;
  121. padding: .3rem .3rem;
  122. 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);
  123. display: none;
  124. }
  125. }
  126. .icon-media-item{
  127. display: inline-block;
  128. width: 40px;
  129. height: 40px;
  130. background-size: contain;
  131. background-repeat: no-repeat;
  132. background-position: center;
  133. }
  134. .icon-media-item-line{
  135. background-image: url(../../assets/images/section/icon/photos/share-LINE1.svg);
  136. &:hover, &:focus, &:active{
  137. cursor: pointer;
  138. background-image: url(../../assets/images/section/icon/photos/share-LINE2.svg);
  139. }
  140. }
  141. .icon-media-item-fb{
  142. background-image: url(../../assets/images/section/icon/photos/share-FB1.svg);
  143. // 解決 IE FB 圖被吃掉
  144. background-position-x: 62%;
  145. &:hover, &:focus, &:active{
  146. cursor: pointer;
  147. background-image: url(../../assets/images/section/icon/photos/share-FB2.svg);
  148. }
  149. }
  150. .icon-media-item-wechat{
  151. background-image: url(../../assets/images/section/icon/photos/share-wechat1.svg);
  152. &:hover, &:focus, &:active{
  153. cursor: pointer;
  154. background-image: url(../../assets/images/section/icon/photos/share-wechat2.svg);
  155. }
  156. }
  157. .icon-desktop {
  158. display: inline-block;
  159. width: 50px;
  160. height: 50px;
  161. background-size: cover;
  162. box-shadow: 1px 3px 13px -2px rgba(0, 0, 0, 0.35);
  163. &:hover, &:focus, &:active{
  164. 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);
  165. }
  166. }
  167. .icon-share{
  168. background-image: url(../../assets/images/section/icon/photos/share-1.svg);
  169. &:hover, &:focus, &:active{
  170. cursor: pointer;
  171. }
  172. }
  173. .icon-download{
  174. background-image: url(../../assets/images/section/icon/photos/download-1.svg);
  175. &:hover, &:focus, &:active{
  176. cursor: pointer;
  177. }
  178. }
  179. .icon-like{
  180. background-image: url(../../assets/images/section/icon/photos/like-1.svg);
  181. &:hover, &:focus, &:active{
  182. cursor: pointer;
  183. background-image: url(../../assets/images/section/icon/photos/like-2.svg);
  184. }
  185. &.icon-like-solid{
  186. background-image: url(../../assets/images/section/icon/photos/like-3.svg);
  187. }
  188. }
  189. .icon-zoom{
  190. background-image: url(../../assets/images/section/icon/photos/zoomin-1.svg);
  191. &:hover, &:focus, &:active{
  192. cursor: pointer;
  193. }
  194. &.active{
  195. background-image: url(../../assets/images/section/icon/photos/zoomout.svg);
  196. }
  197. }
  198. /* 資訊區塊 */
  199. .h-info-area{
  200. width: 480px;
  201. display: block;
  202. position: absolute;
  203. top: 0;
  204. right: 0;
  205. bottom: 0;
  206. padding: 1rem;
  207. overflow-y: scroll;
  208. &.active{
  209. display: none;
  210. }
  211. }
  212. .icon-close-wrapper-desktop{
  213. position: absolute;
  214. right: 4%;
  215. &:hover{
  216. cursor: pointer;
  217. }
  218. }
  219. .info-area-title-desktop{
  220. font-size: 18px;
  221. font-weight: bold;
  222. padding: 0.6rem 0 0.6rem 0.6rem;
  223. margin: 1.6rem 0 1rem 0;
  224. background-color: #EFEFEF;
  225. }
  226. .info-area-other-case-desktop, .info-area-same-case-desktop, .info-area-data-desktop, .info-area-contact-desktop{
  227. font-size: 16px;
  228. font-weight: bold;
  229. color: #6D6D6D;
  230. }
  231. .other-case-desktop-items, .same-case-desktop-items{
  232. width: 101%;
  233. }
  234. .data-table-desktop{
  235. width: 100%;
  236. font-size: 14px;
  237. padding: 0.55rem 0;
  238. .data-table-items{
  239. padding: .05rem 0;
  240. }
  241. .data-table-lf {
  242. flex-basis: 18%;
  243. flex-grow: 0;
  244. max-width: 25%;
  245. display: flex;
  246. justify-content: start;
  247. align-items: start;
  248. }
  249. .data-table-rt {
  250. flex-basis: 82%;
  251. flex-grow: 0;
  252. max-width: 75%;
  253. justify-content: start;
  254. word-break: break-all;
  255. }
  256. }
  257. .contact-section-desktop{
  258. a{
  259. &:hover, &:focus{
  260. text-decoration: none;
  261. }
  262. }
  263. .contact-section-detail-desktop{
  264. font-size: 14px;
  265. }
  266. }
  267. .contact-section-avatar{
  268. width: 75px;
  269. height: 100px;
  270. background-position: center;
  271. background-repeat: no-repeat;
  272. background-size: cover;
  273. }
  274. .contact-section-company{
  275. font-weight: bold;
  276. font-size: 18px;
  277. -webkit-box-orient: vertical;
  278. -moz-box-orient:vertical;
  279. box-orient:vertical;
  280. -webkit-line-clamp: 2;
  281. height: calc(18px * 2 *1.39);
  282. overflow:hidden;
  283. text-overflow:ellipsis;
  284. display: -webkit-box;
  285. }
  286. .contact-section-detail-lf{
  287. flex-basis: 7%;
  288. flex-grow: 0;
  289. display: flex;
  290. align-items: start;
  291. max-width: 7%;
  292. }
  293. .contact-section-detail-rt{
  294. flex-basis: 93%;
  295. flex-grow: 0;
  296. max-width: 93%;
  297. }