colleges_list.less 4.5 KB

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