lists.scss 6.0 KB

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