lists.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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. 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. .dropdown-menu {
  77. padding: 0;
  78. min-width: 15rem;
  79. max-height: 300px;
  80. overflow-y: auto;
  81. li {
  82. padding: 0.75rem 1.25rem;
  83. border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  84. input,
  85. label {
  86. cursor: pointer;
  87. }
  88. }
  89. }
  90. .search-btn-filter {
  91. button {
  92. border: none;
  93. background-color: white;
  94. &:hover {
  95. color: #EE7800;
  96. }
  97. &.active {
  98. color: #EE7800;
  99. }
  100. }
  101. }
  102. .search-tab-result {
  103. font-size: 14px;
  104. img {
  105. cursor: pointer;
  106. transition: all .3s;
  107. &:hover {
  108. opacity: .7;
  109. }
  110. }
  111. }
  112. .lists-card {
  113. height: 100%;
  114. &:hover {
  115. .title,
  116. .video-title {
  117. opacity: .7;
  118. }
  119. }
  120. .person-img {
  121. width: 100%;
  122. height: 80px;
  123. max-width: 80px;
  124. background-size: cover;
  125. background-position: top;
  126. border-radius: 50%;
  127. box-shadow: 2px 2px 10px -2px rgba(0, 0, 0, 0.15);
  128. @media (max-width: 991px) {
  129. height: 70px;
  130. max-width: 70px;
  131. }
  132. @media (max-width: 767px) {
  133. height: 80px;
  134. max-width: 80px;
  135. }
  136. }
  137. .cover-img {
  138. width: 100%;
  139. height: 235px;
  140. object-fit: cover;
  141. @media (max-width: 991px) {
  142. height: 160px;
  143. }
  144. @media (max-width: 767px) {
  145. height: 235px;
  146. }
  147. }
  148. .video-cover-img {
  149. height: 225px;
  150. object-fit: cover;
  151. @media (max-width: 1400px) {
  152. height: 190px;
  153. }
  154. @media (max-width: 1200px) {
  155. height: 160px;
  156. }
  157. @media (max-width: 991px) {
  158. height: 115px;
  159. }
  160. @media (max-width: 767px) {
  161. height: 275px;
  162. }
  163. @media (max-width: 575px) {
  164. height: 48.5vw;
  165. }
  166. }
  167. .card-body {
  168. h5,
  169. h6,
  170. p,
  171. .video-title {
  172. line-height: 1.5;
  173. font-size: 1rem;
  174. // 換行
  175. -webkit-box-orient: vertical;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. display: -webkit-box;
  179. }
  180. h5 {
  181. -webkit-line-clamp: 1;
  182. }
  183. h6 {
  184. -webkit-line-clamp: 2;
  185. }
  186. p {
  187. font-weight: 400;
  188. }
  189. .video-title {
  190. font-weight: bold;
  191. color: #43484C;
  192. -webkit-line-clamp: 2;
  193. transition: all .3s;
  194. }
  195. .tags-container {
  196. span {
  197. display: inline-block;
  198. margin: 3px 6px 3px 0;
  199. padding: 4px 6px;
  200. border-radius: 3px;
  201. font-size: 0.75rem;
  202. color: #EE7800;
  203. border: 1px solid #EE7800;
  204. transition: all .3s;
  205. &:hover {
  206. opacity: .7;
  207. }
  208. }
  209. &.columns-tag {
  210. height: 30px;
  211. overflow: hidden;
  212. }
  213. }
  214. .title {
  215. font-weight: 500;
  216. transition: all .3s;
  217. }
  218. }
  219. }
  220. .category-btn {
  221. button {
  222. color: #212529;
  223. transition: all .3s;
  224. }
  225. .main {
  226. button {
  227. width: 18%;
  228. margin: .6em;
  229. padding: 1.25rem 0.5rem;
  230. font-weight: 400;
  231. border: 1px solid transparent;
  232. border-radius: 5px;
  233. background-color: #fff;
  234. box-shadow: 2px 3px 5px 2px #eee;
  235. @media (max-width: 1200px) {
  236. width: 22%;
  237. }
  238. @media (max-width: 767px) {
  239. margin: .45rem;
  240. }
  241. @media (max-width: 575px) {
  242. width: 25vw;
  243. font-size: 0.875rem;
  244. padding: 1rem 0.5rem;
  245. }
  246. }
  247. }
  248. .sub {
  249. display: none;
  250. margin: 2rem auto;
  251. padding: 1rem;
  252. border-radius: 5px;
  253. background-color: #F4F4F4;
  254. button {
  255. padding: .5rem 1rem;
  256. margin: .7rem;
  257. color: #727679;
  258. font-weight: 400;
  259. border-radius: 5px;
  260. border: 1px solid #E0E0E0;
  261. @media (max-width: 575px) {
  262. margin: .5rem;
  263. font-size: 0.875rem;
  264. }
  265. }
  266. }
  267. .main,
  268. .sub {
  269. button {
  270. &:hover,
  271. &.active {
  272. color: #EE751B;
  273. border: 1px solid #EE751B;
  274. }
  275. }
  276. }
  277. }
  278. .new-item {
  279. display: block;
  280. padding: 6px 8px;
  281. position: absolute;
  282. top: 0;
  283. right: 0;
  284. color: #fff;
  285. background: red;
  286. font-size: .75rem;
  287. }
  288. }
  289. #builderList {
  290. .card {
  291. h5 {
  292. font-size: 1.125rem;
  293. }
  294. h6 {
  295. -webkit-line-clamp: 1;
  296. }
  297. .play-img {
  298. width: 50px;
  299. position: absolute;
  300. top: 50%;
  301. left: 50%;
  302. transform: translate(-50%, -50%);
  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. }