lists.scss 6.5 KB

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