photos_main.scss 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. $lines-to-show-sm: 1;
  2. $lines-to-show: 2;
  3. $line-height-sm: 1.30;
  4. $line-height: 1.39;
  5. $photos-main-color:#6D6D6D;
  6. $photos-second-color:#EE7800;
  7. $light-gray:#9D9D9D;
  8. $photos-main-font-size:16px;
  9. $photos-second-font-size:14px;
  10. $photos-mob-main-font-size:16px;
  11. $photos-mob-second-font-size:12px;
  12. //圖庫 大裝置沒有空白底部
  13. .empty{
  14. height: 0;
  15. }
  16. .item-card{
  17. .photos-item-card{
  18. width: 100%;
  19. overflow: hidden;
  20. &:hover{
  21. .item-card-img{
  22. transform: scale(1.05);
  23. }
  24. }
  25. }
  26. .item-card-img{
  27. width: 100%;
  28. padding-top: 100%;
  29. background-size: cover;
  30. background-position: center center;
  31. transition: transform 300ms ease-in-out;
  32. }
  33. .item-card-text{
  34. a{
  35. font-size:$photos-main-font-size;
  36. height: $photos-main-font-size * $line-height-sm * 1.2;
  37. -webkit-line-clamp: 1;
  38. -webkit-box-orient: vertical;
  39. -moz-box-orient:vertical;
  40. box-orient:vertical;
  41. overflow:hidden;
  42. text-overflow:ellipsis;
  43. display: -webkit-box;
  44. color: #212529;
  45. &:hover{
  46. cursor: pointer;
  47. }
  48. }
  49. }
  50. }
  51. // @media screen and (min-width: 992px) and (max-width: 1260px){
  52. // .navbar{
  53. // .navbar-nav{
  54. // .nav-link{
  55. // padding-left: 10px; //避免縮小螢幕主選單有折行問題
  56. // padding-right: 10px; //避免縮小螢幕主選單有折行問題
  57. // }
  58. // }
  59. // }
  60. // }
  61. @media screen and (min-width: 1200px) {
  62. .navbar-brand-block{
  63. display: inline-block;
  64. position: absolute;
  65. left: 8px;
  66. @media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){
  67. position: relative;
  68. }
  69. }
  70. .navbar-collapse-block{
  71. margin-left: auto;
  72. margin-right: auto;
  73. }
  74. .nav-user-block{
  75. display: flex;
  76. justify-content: flex-end;
  77. position: absolute;
  78. right: 8px;
  79. @media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){
  80. position: relative;
  81. }
  82. }
  83. //小裝置保持logo置中
  84. .navbar-brand-block-sm{
  85. display: none;
  86. }
  87. body{
  88. overflow: auto;
  89. }
  90. .nb-mobile, .nb-mobile-icon{
  91. display: none;
  92. }
  93. .dropdown-wrapper{
  94. display: flex !important;
  95. }
  96. .st-mobile, .footer-fix, .searchall{
  97. display: none;
  98. }
  99. .top-designer, .search-bar, .search-tab{
  100. display: block;
  101. }
  102. .item-card-img-wrapper{
  103. width: 100%;
  104. height: 100%;
  105. max-width: 100%;
  106. max-height: 100%;
  107. }
  108. .item-card-img{
  109. position: relative;
  110. width: 100%;
  111. height: 290px;
  112. background-size: cover;
  113. background-position: center center;
  114. }
  115. }
  116. @media screen and (min-width: 992px) and (max-width: 1199px){
  117. //列表 gotop btn
  118. .gotop-btn-wrapper{
  119. right: 2%;
  120. bottom: 10%;
  121. z-index: 999;
  122. }
  123. //圖庫第一層箭頭寬度
  124. .owl-nav{
  125. width: calc(100% + 70px);
  126. z-index: 10;
  127. }
  128. .photos-owl-wrapper{
  129. background-image: url(../images/section/icon/photos/owl-bg-m.svg);
  130. background-repeat:no-repeat;
  131. background-position: center;
  132. height: 300px;
  133. }
  134. .nb-mobile-icon{
  135. display: block;
  136. .bars{
  137. display: block;
  138. &.active{
  139. display: none;
  140. }
  141. }
  142. .arrow{
  143. display: none;
  144. &.active{
  145. display: block;
  146. }
  147. }
  148. }
  149. .navbar-brand-block, .navbar-collapse-block, .nav-user-block{
  150. display: none;
  151. }
  152. .navbar-brand-block-sm{
  153. display: inline-block;
  154. margin-left: auto;
  155. margin-right: auto;
  156. }
  157. }
  158. @media screen and (min-width: 768px) and (max-width: 992px){
  159. //列表 gotop btn
  160. .gotop-btn-wrapper{
  161. right: 2%;
  162. bottom: 10%;
  163. z-index: 999;
  164. }
  165. //##### 圖庫第三層平板樣式-start #####
  166. .icon{
  167. width: 74px;
  168. height: 70px;
  169. }
  170. .info-area-other-case img, .info-area-same-case img{
  171. // width:170px;
  172. width: 100%;
  173. height:170px;
  174. }
  175. .info-area-title{
  176. font-size: 22px;
  177. }
  178. .data-table{
  179. font-size: 18px;
  180. .data-table-lf {
  181. flex-basis: 14%;
  182. flex-grow: 0;
  183. max-width: 14%;
  184. }
  185. .data-table-rt {
  186. flex-basis: 86%;
  187. flex-grow: 0;
  188. max-width: 86%;
  189. word-break: break-all;
  190. }
  191. }
  192. .contact-section{
  193. span{
  194. font-size: 22px;
  195. }
  196. .contact-section-detail{
  197. font-size: 18px;
  198. }
  199. }
  200. .info-area-other-case, .info-area-same-case, .info-area-data, .info-area-contact{
  201. font-size: 20px;
  202. }
  203. //##### 圖庫第三層平板樣式-end #####
  204. //圖庫第一層箭頭寬度
  205. .owl-nav{
  206. width: calc(100% + 70px);
  207. z-index: 10;
  208. }
  209. .photos-owl-wrapper{
  210. background-image: url(../images/section/icon/photos/owl-bg-s.svg);
  211. background-repeat:no-repeat;
  212. background-position: center;
  213. height: 300px;
  214. }
  215. .member{
  216. padding-top: 5.5rem;
  217. }
  218. .navbar-brand-block, .navbar-collapse-block, .nav-user-block{
  219. display: none;
  220. }
  221. .navbar-brand-block-sm{
  222. display: inline-block;
  223. margin-left: auto;
  224. margin-right: auto;
  225. }
  226. .nb-mobile-icon{
  227. display: block;
  228. .bars{
  229. display: block;
  230. &.active{
  231. display: none;
  232. }
  233. }
  234. .arrow{
  235. display: none;
  236. &.active{
  237. display: block;
  238. }
  239. }
  240. }
  241. .search-tab-itemBtn{
  242. .dropdown-wrapper{
  243. display: -webkit-box !important;
  244. }
  245. }
  246. .footer .footer-media{
  247. color: #3b5998;
  248. }
  249. }
  250. @media screen and (min-width: 576px) and (max-width: 768px){
  251. //圖庫第一層箭頭寬度
  252. .owl-nav{
  253. width: calc(100% + 40px);
  254. height: 0%;
  255. z-index: 10;
  256. }
  257. .photos-owl-wrapper{
  258. background-image: url(../images/section/icon/photos/owl-bg-s.svg);
  259. background-repeat:no-repeat;
  260. background-position: center;
  261. height: 300px;
  262. }
  263. .member{
  264. padding-top: 5.5rem;
  265. .item-card-member{
  266. .item-card-img-member{
  267. width: 100%;
  268. height: 360px;
  269. background-size: cover;
  270. background-repeat: no-repeat;
  271. background-position: center;
  272. }
  273. }
  274. }
  275. .navbar-brand-block, .navbar-collapse-block, .nav-user-block{
  276. display: none;
  277. }
  278. .navbar-brand-block-sm{
  279. display: inline-block;
  280. margin-left: auto;
  281. margin-right: auto;
  282. }
  283. .nb-mobile-icon{
  284. display: block;
  285. .bars{
  286. display: block;
  287. &.active{
  288. display: none;
  289. }
  290. }
  291. .arrow{
  292. display: none;
  293. &.active{
  294. display: block;
  295. }
  296. }
  297. }
  298. .nb-mobile{
  299. &.active{
  300. position: fixed;
  301. bottom: 0;
  302. }
  303. }
  304. #navbarSupportedContent{
  305. display: none;
  306. }
  307. .search-tab-itemBtn{
  308. .dropdown-wrapper{
  309. display: -webkit-box !important;
  310. }
  311. }
  312. }
  313. @media screen and (max-width: 576px){
  314. //列表 gotop btn
  315. .gotop-btn-wrapper{
  316. right: 3%;
  317. bottom: 10%;
  318. z-index: 999;
  319. }
  320. //圖庫 有空白底部
  321. .empty{
  322. display: inline-block;
  323. height: 35px;
  324. }
  325. //圖庫第一、二層x軸捲動
  326. .photos-overflow{
  327. overflow-x: hidden;
  328. }
  329. //圖庫第一層箭頭寬度
  330. .owl-nav{
  331. width: calc(100% + 40px);
  332. height: 0%;
  333. z-index: 10;
  334. }
  335. .photos-owl-wrapper{
  336. background-image: url(../images/section/icon/photos/owl-bg-s.svg);
  337. background-repeat:no-repeat;
  338. background-position: center;
  339. height: 300px;
  340. }
  341. .member{
  342. padding-top: 5.5rem;
  343. .item-card-member{
  344. .item-card-img-member{
  345. width: 100%;
  346. height: 360px;
  347. background-size: cover;
  348. background-repeat: no-repeat;
  349. background-position: center;
  350. }
  351. }
  352. }
  353. .navbar-brand-block, .navbar-collapse-block, .nav-user-block{
  354. display: none;
  355. }
  356. .navbar-brand-block-sm{
  357. display: inline-block;
  358. margin-left: auto;
  359. margin-right: auto;
  360. }
  361. .nb-mobile-icon{
  362. display: block;
  363. .bars{
  364. display: block;
  365. &.active{
  366. display: none;
  367. }
  368. }
  369. .arrow{
  370. display: none;
  371. &.active{
  372. display: block;
  373. }
  374. }
  375. }
  376. .search-tab-itemBtn{
  377. .dropdown-wrapper{
  378. display: -webkit-box !important;
  379. }
  380. }
  381. }