_card.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. $lines-to-show-sm: 1;
  2. $lines-to-show: 2;
  3. $line-height-sm: 1.25;
  4. $line-height: 1.39;
  5. $item-card-content-size-xs:0.875rem;
  6. $item-card-content-size-sm:1rem;
  7. $item-card-content-size:18px;
  8. //沒有資料版本
  9. .item-card-none{
  10. .item-card-none-text{
  11. color: #43484C;
  12. font-weight: bold;
  13. }
  14. }
  15. .onlyCase {
  16. margin-top: -4rem;
  17. @media screen and(max-width: 576px) {
  18. margin-top: -5rem;
  19. }
  20. }
  21. h4.onlyCase-title {
  22. font-family: $main-font-family;
  23. }
  24. //有資料版本
  25. .item-card{
  26. display: flex;
  27. flex-direction: column;
  28. min-width: 0;
  29. word-wrap: break-word;
  30. position: relative;
  31. font-family: $main-font-family;
  32. box-shadow: 0px 0px 3px rgba(66, 66, 66, 0.376);
  33. -moz-box-shadow: 0px 0px 3px rgba(66, 66, 66, 0.376);
  34. -ms-box-shadow: 0px 0px 3px rgba(66, 66, 66, 0.376);
  35. //精選案例
  36. &.item-card-onlyCase {
  37. a {
  38. color: #727679;
  39. font-family: $main-font-family;
  40. &:hover {
  41. color: #727679;
  42. text-decoration: none;
  43. }
  44. }
  45. }
  46. .item-card-img{
  47. position: relative;
  48. width: 100%;
  49. height: 300px; // 因應建案圖片,調整為H300
  50. background-size: cover;
  51. background-position: center center;
  52. // 建案有撥放鍵
  53. .play {
  54. position: absolute;
  55. top: 45%;
  56. left: 45%;
  57. width: 46px;
  58. height: 46px;
  59. transition: all 300ms ease-in-out;
  60. }
  61. }
  62. .item-card-product {
  63. background-repeat: no-repeat;
  64. background-position: center center;
  65. }
  66. .item-card-person{
  67. width: 80px;
  68. height: 80px;
  69. border-radius: 50%;
  70. background-size: cover;
  71. box-shadow: 2px 2px 10px -2px rgba(0,0,0,0.15);
  72. }
  73. .item-card-position{
  74. margin-top: -.5rem;
  75. }
  76. //search_2 使用
  77. .item-card-video{
  78. position: relative;
  79. .item-card-videoBtn{
  80. position: absolute;
  81. top: 40%;
  82. left: 43%;
  83. }
  84. }
  85. .item-card-body{
  86. position: relative;
  87. a{
  88. color: #000;
  89. margin-right: 0.25rem;
  90. &:hover, &:active{
  91. color: #000;
  92. text-decoration: none;
  93. }
  94. }
  95. // .item-card-circle{
  96. // width: 82px;
  97. // height: 82px;
  98. // border-radius: 50%;
  99. // .item-card-img-person{
  100. // border-radius: 50%;
  101. // }
  102. // }
  103. //search_1&4 使用
  104. .item-card-company{
  105. -webkit-box-orient: vertical;
  106. -moz-box-orient:vertical;
  107. box-orient:vertical;
  108. font-size: 0.875rem;
  109. overflow: hidden;
  110. text-overflow:ellipsis;
  111. display: -webkit-box;
  112. -webkit-line-clamp: 1;
  113. line-height: 1.25;
  114. height: $item-card-content-size-xs * $line-height-sm * $lines-to-show-sm;
  115. &+h6{
  116. -webkit-box-orient: vertical;
  117. -moz-box-orient:vertical;
  118. box-orient:vertical;
  119. font-size: 0.875rem;
  120. overflow: hidden;
  121. text-overflow:ellipsis;
  122. display: -webkit-box;
  123. -webkit-line-clamp: 1;
  124. line-height: 1.25;
  125. height: $item-card-content-size-xs * $line-height-sm * $lines-to-show-sm;
  126. }
  127. }
  128. .item-card-job{
  129. font-size: 14px;
  130. }
  131. .item-card-media{
  132. display: none;
  133. position: absolute;
  134. bottom: calc(1rem + 48px); //padding + item-card-media高度
  135. left: 32%;
  136. }
  137. .item-card-text-video {
  138. margin-top: -5px;
  139. }
  140. .item-card-text-tag{
  141. font-size: 14px;
  142. //品專欄
  143. &.item-card-text-tag-column{
  144. margin-top: -5px;
  145. display: -webkit-box;
  146. -webkit-box-orient: vertical;
  147. -moz-box-orient:vertical;
  148. box-orient:vertical;
  149. height: calc(14px * 1.5 * 1.39); //font-size + 1.5行 + line-height
  150. }
  151. }
  152. .tag-item{
  153. word-break: break-all;
  154. }
  155. .tag-item:hover{
  156. color: #EE7800;
  157. }
  158. .item-card-text-date{
  159. color:#c3c3c3;
  160. font-size: 12px;
  161. }
  162. //品專欄
  163. .item-card-title{
  164. font-size: 18px;
  165. -webkit-box-orient: vertical;
  166. -moz-box-orient:vertical;
  167. box-orient:vertical;
  168. -webkit-line-clamp: $lines-to-show-sm;
  169. height: $item-card-content-size * $line-height-sm * $lines-to-show-sm;
  170. overflow:hidden;
  171. text-overflow:ellipsis;
  172. display: -webkit-box;
  173. }
  174. //選好貨
  175. .item-card-subtitle{
  176. -webkit-box-orient: vertical;
  177. -moz-box-orient:vertical;
  178. box-orient:vertical;
  179. -webkit-line-clamp: $lines-to-show-sm;
  180. height: $item-card-content-size-sm * $line-height-sm * $lines-to-show-sm;
  181. overflow:hidden;
  182. text-overflow:ellipsis;
  183. display: -webkit-box;
  184. }
  185. //選好貨
  186. .item-card-title-product{
  187. font-size: 18px;
  188. -webkit-box-orient: vertical;
  189. -moz-box-orient:vertical;
  190. box-orient:vertical;
  191. -webkit-line-clamp: $lines-to-show-sm;
  192. height: $item-card-content-size * $line-height * $lines-to-show-sm;
  193. overflow:hidden;
  194. text-overflow:ellipsis;
  195. display: -webkit-box;
  196. }
  197. .item-card-options{
  198. align-items: flex-end;
  199. justify-content: end;
  200. }
  201. .item-card-options-list{
  202. color: #AAAAAA;
  203. }
  204. }
  205. .icon-share1, .icon-share2{
  206. display: block;
  207. transition: display 5000s;
  208. &.active{
  209. display: none;
  210. }
  211. }
  212. .item-card-icon{
  213. display: block;
  214. &.after{
  215. display: none;
  216. }
  217. }
  218. .item-card-icon-close{
  219. display: none;
  220. transition: display 5000s;
  221. &.active{
  222. display: block;
  223. }
  224. }
  225. .item-card-options-list:hover{
  226. cursor: pointer;
  227. .item-card-icon.before{
  228. display: none;
  229. }
  230. .item-card-icon.after{
  231. display: block;
  232. &.active{
  233. display: none;
  234. }
  235. }
  236. .item-card-options-text{
  237. color:#EE7800;
  238. }
  239. }
  240. .item-card-options-list{
  241. .item-card-icon.before{
  242. display: block;
  243. &.active{
  244. display: none;
  245. }
  246. }
  247. .item-card-icon.after{
  248. display: none;
  249. &.active{
  250. display: none;
  251. }
  252. }
  253. }
  254. .item-card-content{
  255. font-size: 1rem;
  256. font-weight: bold;
  257. color: #43484C;
  258. -webkit-box-orient: vertical;
  259. -moz-box-orient:vertical;
  260. box-orient:vertical;
  261. line-height: 1.25;
  262. -webkit-line-clamp: $lines-to-show-sm;
  263. height: $item-card-content-size-sm * $line-height-sm * $lines-to-show-sm;
  264. overflow:hidden;
  265. text-overflow:ellipsis;
  266. display: -webkit-box;
  267. }
  268. .item-card-content-video{
  269. font-size: 16px;
  270. font-weight: bold;
  271. color: #43484C;
  272. -webkit-box-orient: vertical;
  273. -moz-box-orient:vertical;
  274. box-orient:vertical;
  275. -webkit-line-clamp: $lines-to-show;
  276. height: $item-card-content-size-sm * $line-height * $lines-to-show;
  277. overflow:hidden;
  278. text-overflow:ellipsis;
  279. display: -webkit-box;
  280. }
  281. .item-card-brand{
  282. font-size: 16px;
  283. font-weight: bold;
  284. color: #43484C;
  285. -webkit-box-orient: vertical;
  286. -moz-box-orient:vertical;
  287. box-orient:vertical;
  288. -webkit-line-clamp: $lines-to-show-sm;
  289. height: $item-card-content-size-sm * $line-height-sm * $lines-to-show-sm;
  290. overflow:hidden;
  291. text-overflow:ellipsis;
  292. display: -webkit-box;
  293. }
  294. //選好貨、專欄內文
  295. .item-card-content-product, .item-card-content-cloumn{
  296. font-size: 16px;
  297. color: #43484C;
  298. -webkit-box-orient: vertical;
  299. -moz-box-orient:vertical;
  300. box-orient:vertical;
  301. -webkit-line-clamp: $lines-to-show;
  302. height: $item-card-content-size-sm * $line-height * $lines-to-show;
  303. overflow:hidden;
  304. text-overflow:ellipsis;
  305. display: -webkit-box;
  306. }
  307. }
  308. //轉寄 modal
  309. .modal{
  310. font-family: $main-font-family;
  311. .modal-header{
  312. border-bottom: 1px solid transparent;
  313. }
  314. .input-group{
  315. .fm-input-border{
  316. border-right-width: 0;
  317. }
  318. .fm-btn-border{
  319. border-left-width: 0;
  320. border-top-width: 1px;
  321. border-right-width: 1px;
  322. border-bottom-width: 1px;
  323. border-color: red;
  324. }
  325. .btn-outline-secondary:hover{
  326. color: #AAAAAA;
  327. background-color: transparent;
  328. }
  329. }
  330. .form-control{
  331. border-width: 1px;
  332. }
  333. .fm-email-btnWrapper{
  334. border:1px solid;
  335. border-radius: 28px;
  336. &.active{
  337. display: none;
  338. }
  339. .fm-email-btn{
  340. padding:2px 5px 2px 5px;
  341. }
  342. }
  343. .fm-close{
  344. cursor: pointer;
  345. }
  346. .border-revise{
  347. border: 1px solid red;
  348. }
  349. .modal-title{
  350. font-size: 18px;
  351. margin-left: auto;
  352. margin-right: auto;
  353. }
  354. .modal-button-wrapper{
  355. .modal-button{
  356. // width: 50%;
  357. width: 30%;
  358. border: none;
  359. padding: 0.875rem 1rem;
  360. background-color: #D1D2D3;
  361. border-radius: 2px;
  362. color: #fff;
  363. &:hover, &.active{
  364. background-color: #EE7800;
  365. }
  366. }
  367. }
  368. }