colleges_list.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. @font-face {
  2. font-family: "iconfont";
  3. /* Project id 2804499 */
  4. src: url('//at.alicdn.com/t/font_2804499_pugszqiin7g.woff2?t=1635820816816') format('woff2'), url('//at.alicdn.com/t/font_2804499_pugszqiin7g.woff?t=1635820816816') format('woff'), url('//at.alicdn.com/t/font_2804499_pugszqiin7g.ttf?t=1635820816816') format('truetype');
  5. }
  6. .iconfont {
  7. font-family: "iconfont" !important;
  8. font-size: 16px;
  9. font-style: normal;
  10. -webkit-font-smoothing: antialiased;
  11. -moz-osx-font-smoothing: grayscale;
  12. }
  13. .icon-shangxiazhankai:before {
  14. content: "\eb13";
  15. }
  16. #loading {
  17. display: none;
  18. }
  19. #loading > div {
  20. position: fixed;
  21. left: 0;
  22. top: 0;
  23. width: 100vw;
  24. height: 100vh;
  25. background-color: rgba(0, 0, 0, 0.2);
  26. display: flex;
  27. align-items: center;
  28. justify-content: center;
  29. z-index: 999;
  30. }
  31. #loading > div > div {
  32. color: #fff;
  33. background-color: rgba(0, 0, 0, 0.8);
  34. padding: 10px;
  35. border-radius: 5px;
  36. }
  37. .body {
  38. margin-top: 95px;
  39. border-radius: 0;
  40. }
  41. .body .search {
  42. display: flex;
  43. }
  44. .body .search .input {
  45. width: 400px;
  46. border-radius: 5px;
  47. border: 1px solid #aaa;
  48. box-sizing: border-box;
  49. padding: 5px;
  50. }
  51. .body .search .input input {
  52. width: 100%;
  53. height: 100%;
  54. outline: none;
  55. padding: 0 5px;
  56. border: 0;
  57. }
  58. .body .search .button {
  59. display: inline-block;
  60. margin-left: 5px;
  61. width: 60px;
  62. background-color: #03c762;
  63. text-align: center;
  64. letter-spacing: 5px;
  65. line-height: 34px;
  66. color: #fff;
  67. border-radius: 5px;
  68. }
  69. .body .tips {
  70. color: #777;
  71. font-size: 14px;
  72. line-height: 30px;
  73. }
  74. .body .types {
  75. display: table;
  76. }
  77. .body .types .types-row {
  78. display: table-row;
  79. }
  80. .body .types .types-row .types-cell {
  81. display: table-cell;
  82. padding-bottom: 5px;
  83. }
  84. .body .types .types-row > .types-cell:first-child {
  85. width: 100px;
  86. font-weight: 600;
  87. }
  88. .body .types .types-row .types-item {
  89. margin: 0 5px;
  90. display: inline-block;
  91. }
  92. .body .types .types-row .checked {
  93. color: #03c762;
  94. font-weight: 600;
  95. }
  96. .body .school_list {
  97. margin-top: 20px;
  98. }
  99. .body .school_list .item {
  100. border-top: 1px solid #eaeaea;
  101. padding: 10px 0;
  102. display: flex;
  103. }
  104. .body .school_list .item .item-img {
  105. flex: 1;
  106. }
  107. .body .school_list .item .item-img img {
  108. width: 100%;
  109. }
  110. .body .school_list .item .item-desc {
  111. margin-left: 10px;
  112. flex: 4;
  113. }
  114. .body .school_list .item .item-desc p {
  115. margin-bottom: 5px;
  116. }
  117. .body .school_list .item .item-desc .item-desc-name {
  118. color: #333;
  119. font-size: 16px;
  120. }
  121. .body .school_list .item .item-desc .item-desc-z {
  122. color: #777;
  123. }
  124. .body .school_list .item .item-desc .item-desc-z span {
  125. display: inline-block;
  126. margin-right: 5px;
  127. }
  128. .body .school_list .item .item-desc .item-desc-desc {
  129. color: #777;
  130. overflow: hidden;
  131. text-overflow: ellipsis;
  132. text-align: justify;
  133. display: -webkit-box;
  134. -webkit-box-orient: vertical;
  135. -webkit-line-clamp: 2;
  136. }
  137. @media screen and (max-width: 768px) {
  138. .body > .search > .input {
  139. width: calc(100vw - 106px) !important;
  140. }
  141. .types {
  142. position: relative;
  143. display: flex !important;
  144. background-color: #000;
  145. }
  146. .types .types-row {
  147. flex: 1;
  148. position: relative;
  149. display: inline-block !important;
  150. vertical-align: middle;
  151. }
  152. .types .types-row .types-cell {
  153. display: block !important;
  154. }
  155. .types .types-row .types-cell:first-child {
  156. width: 100% !important;
  157. color: #fff;
  158. line-height: 30px;
  159. text-align: center;
  160. box-sizing: border-box;
  161. padding-bottom: 0px !important;
  162. }
  163. .types .types-row .types-cell:first-child::after {
  164. content: '\eb13';
  165. display: inline-block;
  166. font-family: "iconfont" !important;
  167. font-size: 14px;
  168. font-style: normal;
  169. -webkit-font-smoothing: antialiased;
  170. -moz-osx-font-smoothing: grayscale;
  171. }
  172. .types .types-row .types-cell:last-child {
  173. position: absolute;
  174. height: 0;
  175. box-sizing: border-box;
  176. overflow: hidden;
  177. width: calc(100vw - 40px);
  178. background-color: #fff;
  179. padding-bottom: 0px !important;
  180. transition: height 2s;
  181. }
  182. .types .types-row .active {
  183. height: auto !important;
  184. padding: 10px !important;
  185. }
  186. .types .types-row .active::after {
  187. content: '';
  188. display: table;
  189. height: 10px;
  190. width: 100%;
  191. background-color: #fff;
  192. }
  193. .types .types-row:nth-child(2) .types-cell:last-child {
  194. left: calc(-100vw / 3 + 40px / 3);
  195. }
  196. .types .types-row:nth-child(3) .types-cell:last-child {
  197. left: calc(-100vw / 3 * 2 + 40px / 3 * 2);
  198. }
  199. }