lists.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. /* 列表頁共用樣式 */
  2. .list-content {
  3. margin: 55px auto 100px;
  4. font-weight: 500;
  5. letter-spacing: .5px;
  6. @media (max-width: 575px) {
  7. margin: 50px auto;
  8. }
  9. }
  10. .list-headline {
  11. height: 25px;
  12. font-size: 24px;
  13. font-weight: 500;
  14. }
  15. .search-card {
  16. a {
  17. color: #EE7800;
  18. }
  19. .search-bar-keyword {
  20. font-size: 14px;
  21. p {
  22. @media (max-width: 575px) {
  23. min-width: 75px;
  24. margin-top: 3px;
  25. }
  26. }
  27. li {
  28. margin-right: 15px;
  29. @media (max-width: 575px) {
  30. margin: 3px 10px 3px 0;
  31. }
  32. }
  33. }
  34. .form-control {
  35. font-size: 0.875rem;
  36. border: 2px solid #EE7800;
  37. }
  38. .input-group-text {
  39. padding: 1rem 2rem;
  40. color: #fff;
  41. font-weight: 400;
  42. font-size: 0.875rem;
  43. text-align: center;
  44. background-color: #EE7800;
  45. border: 2px solid #EE7800;
  46. border-radius: 0 .25rem .25rem 0;
  47. }
  48. }
  49. .filter-list {
  50. .form-check {
  51. display: flex;
  52. align-items: center;
  53. }
  54. .form-check-label {
  55. margin-left: 10px;
  56. }
  57. .mt-masonry {
  58. margin-top: -2rem;
  59. @media (max-width: 767px) {
  60. margin-top: 0;
  61. }
  62. }
  63. .search-tab {
  64. margin: 10px;
  65. border-color: #dbdbdb;
  66. background-color: white;
  67. &:hover {
  68. color: #EE7800;
  69. border-color: #EE7800;
  70. }
  71. &.active {
  72. color: #EE7800;
  73. border-color: #EE7800;
  74. }
  75. }
  76. .play-img {
  77. width: 50px;
  78. position: absolute;
  79. top: 50%;
  80. left: 50%;
  81. transform: translate(-50%, -50%);
  82. }
  83. .dropdown-menu {
  84. padding: 0;
  85. min-width: 15rem;
  86. max-height: 300px;
  87. overflow-y: auto;
  88. li {
  89. padding: 0.75rem 1.25rem;
  90. border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  91. input,
  92. label {
  93. cursor: pointer;
  94. }
  95. }
  96. }
  97. .search-btn-filter {
  98. button {
  99. border: none;
  100. background-color: white;
  101. &:hover {
  102. color: #EE7800;
  103. }
  104. &.active {
  105. color: #EE7800;
  106. }
  107. }
  108. }
  109. .search-tab-result {
  110. font-size: 14px;
  111. img {
  112. cursor: pointer;
  113. transition: all .3s;
  114. &:hover {
  115. opacity: .7;
  116. }
  117. }
  118. }
  119. .lists-card {
  120. height: 100%;
  121. &:hover {
  122. .title,
  123. .video-title {
  124. opacity: .7;
  125. }
  126. }
  127. .person-img {
  128. width: 100%;
  129. height: 80px;
  130. max-width: 80px;
  131. background-size: cover;
  132. background-position: top;
  133. border-radius: 50%;
  134. box-shadow: 2px 2px 10px -2px rgba(0, 0, 0, 0.15);
  135. @media (max-width: 991px) {
  136. height: 70px;
  137. max-width: 70px;
  138. }
  139. @media (max-width: 767px) {
  140. height: 80px;
  141. max-width: 80px;
  142. }
  143. }
  144. .cover-img {
  145. width: 100%;
  146. height: 235px;
  147. object-fit: cover;
  148. @media (max-width: 991px) {
  149. height: 160px;
  150. }
  151. @media (max-width: 767px) {
  152. height: 235px;
  153. }
  154. }
  155. .video-cover-img {
  156. height: 225px;
  157. object-fit: cover;
  158. @media (max-width: 1400px) {
  159. height: 190px;
  160. }
  161. @media (max-width: 1200px) {
  162. height: 160px;
  163. }
  164. @media (max-width: 991px) {
  165. height: 115px;
  166. }
  167. @media (max-width: 767px) {
  168. height: 275px;
  169. }
  170. @media (max-width: 575px) {
  171. height: 48.5vw;
  172. }
  173. }
  174. .card-body {
  175. h5,
  176. h6,
  177. p,
  178. .video-title {
  179. line-height: 1.5;
  180. font-size: 1rem;
  181. // 換行
  182. -webkit-box-orient: vertical;
  183. overflow: hidden;
  184. text-overflow: ellipsis;
  185. display: -webkit-box;
  186. }
  187. h5 {
  188. -webkit-line-clamp: 1;
  189. }
  190. h6 {
  191. -webkit-line-clamp: 2;
  192. }
  193. p {
  194. font-weight: 400;
  195. }
  196. .video-title {
  197. font-weight: bold;
  198. color: #43484C;
  199. -webkit-line-clamp: 2;
  200. transition: all .3s;
  201. }
  202. .tags-container {
  203. span {
  204. display: inline-block;
  205. margin: 3px 6px 3px 0;
  206. padding: 4px 6px;
  207. border-radius: 3px;
  208. font-size: 0.75rem;
  209. color: #EE7800;
  210. border: 1px solid #EE7800;
  211. transition: all .3s;
  212. &:hover {
  213. opacity: .7;
  214. }
  215. }
  216. &.columns-tag {
  217. height: 30px;
  218. overflow: hidden;
  219. }
  220. }
  221. .title {
  222. font-weight: 500;
  223. transition: all .3s;
  224. }
  225. }
  226. }
  227. .category-btn {
  228. button {
  229. color: #212529;
  230. transition: all .3s;
  231. }
  232. .main {
  233. button {
  234. width: 18%;
  235. margin: .6em;
  236. padding: 1.25rem 0.5rem;
  237. font-weight: 400;
  238. border: 1px solid transparent;
  239. border-radius: 5px;
  240. background-color: #fff;
  241. box-shadow: 2px 3px 5px 2px #eee;
  242. @media (max-width: 1200px) {
  243. width: 22%;
  244. }
  245. @media (max-width: 767px) {
  246. margin: .45rem;
  247. }
  248. @media (max-width: 575px) {
  249. width: 25vw;
  250. font-size: 0.875rem;
  251. padding: 1rem 0.5rem;
  252. }
  253. }
  254. }
  255. .sub {
  256. display: none;
  257. margin: 2rem auto;
  258. padding: 1rem;
  259. border-radius: 5px;
  260. background-color: #F4F4F4;
  261. button {
  262. padding: .5rem 1rem;
  263. margin: .7rem;
  264. color: #727679;
  265. font-weight: 400;
  266. border-radius: 5px;
  267. border: 1px solid #E0E0E0;
  268. @media (max-width: 575px) {
  269. margin: .5rem;
  270. font-size: 0.875rem;
  271. }
  272. }
  273. }
  274. .main,
  275. .sub {
  276. button {
  277. &:hover,
  278. &.active {
  279. color: #EE751B;
  280. border: 1px solid #EE751B;
  281. }
  282. }
  283. }
  284. }
  285. .new-item {
  286. display: block;
  287. padding: 6px 8px;
  288. position: absolute;
  289. top: 0;
  290. right: 0;
  291. color: #fff;
  292. background: red;
  293. font-size: .75rem;
  294. }
  295. }
  296. #builderList {
  297. .card {
  298. h5 {
  299. font-size: 1.125rem;
  300. }
  301. h6 {
  302. -webkit-line-clamp: 1;
  303. }
  304. }
  305. }
  306. .date-item {
  307. color: #c3c3c3;
  308. font-size: 12px;
  309. ;
  310. }
  311. // AutoComplete
  312. .autocomplete-items {
  313. max-height: 282px;
  314. overflow-y: auto;
  315. position: absolute;
  316. border: 1px solid #d4d4d4;
  317. border-bottom: none;
  318. border-top: none;
  319. z-index: 99;
  320. top: 100%;
  321. left: 0;
  322. right: 0;
  323. div {
  324. padding: 15px;
  325. cursor: pointer;
  326. background-color: #fff;
  327. border-bottom: 1px solid #d4d4d4;
  328. &:hover {
  329. color: #fff;
  330. background-color: #EE7800;
  331. }
  332. }
  333. }
  334. .autocomplete-active {
  335. background-color: DodgerBlue !important;
  336. color: #ffffff;
  337. }
  338. #columnLoading {
  339. display: none;
  340. @keyframes rotate {
  341. from {
  342. transform: rotate(0deg);
  343. }
  344. to {
  345. transform: rotate(360deg);
  346. }
  347. }
  348. img {
  349. animation: rotate 2s linear infinite;
  350. }
  351. }