星火官网,前端页面(前台)
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

news.css 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. .news_banner {
  2. position: relative;
  3. padding-top: 0.8rem;
  4. width: 100%;
  5. height: 4.65rem;
  6. box-sizing: border-box;
  7. }
  8. .news_banner img {
  9. width: 100%;
  10. height: 100%;
  11. object-fit: cover;
  12. }
  13. .news_header_info {
  14. position: absolute;
  15. top: 0.8rem;
  16. left: 0;
  17. right: 0;
  18. bottom: 0;
  19. margin: auto;
  20. width: 13rem;
  21. height: 0.84rem;
  22. color: #333;
  23. }
  24. .news_header_title {
  25. font-size: 0.36rem;
  26. font-weight: 700;
  27. }
  28. .news_header_stitle {
  29. padding-top: 0.3rem;
  30. font-size: 0.16rem;
  31. }
  32. .news_info {
  33. padding-top: 0.93rem;
  34. padding-bottom: 0.5rem;
  35. background-color: #fff;
  36. }
  37. .news_main {
  38. position: relative;
  39. margin: 0 auto;
  40. width: 13rem;
  41. }
  42. .news_search {
  43. font-size: 0.14rem;
  44. text-align: right;
  45. }
  46. .header_content_right {
  47. position: relative;
  48. display: inline-block;
  49. width: 2.5rem;
  50. height: 0.3rem;
  51. border: 0.01rem solid #dcdee2;
  52. background-color: #fff;
  53. border-radius: 0.04rem;
  54. overflow: hidden;
  55. }
  56. #search_help {
  57. position: absolute;
  58. top: 0;
  59. bottom: 0;
  60. left: 0;
  61. right: 0.4rem;
  62. line-height: 0.3rem;
  63. padding: 0 0.08rem;
  64. font-size: 0.14rem;
  65. border: none;
  66. color: #333;
  67. background-color: #fff;
  68. background-image: none;
  69. cursor: text;
  70. }
  71. #search_help::-webkit-input-placeholder,
  72. #search_help:-moz-placeholder,
  73. #search_help::-moz-placeholder,
  74. #search_help:-ms-input-placeholder {
  75. color: #c1c6cf;
  76. font-size: 0.14rem;
  77. }
  78. #search_help:focus {
  79. outline: none;
  80. }
  81. .search_box {
  82. position: absolute;
  83. top: 0;
  84. bottom: 0;
  85. right: 0;
  86. padding: 0.05rem 0.1rem;
  87. cursor: pointer;
  88. }
  89. .search_img {
  90. width: 0.14rem;
  91. height: 0.14rem;
  92. }
  93. .news_list {
  94. margin: 0 auto;
  95. font-size: 0.16rem;
  96. background-color: #fff;
  97. }
  98. .news_list_box {
  99. margin: 0 auto;
  100. width: 13rem;
  101. }
  102. .news_list_item {
  103. margin-right: 0.27rem;
  104. margin-bottom: 0.3rem;
  105. display: inline-block;
  106. width: 4.1rem;
  107. background-color: #f8f8f8;
  108. box-shadow: 0 0 0.12rem 0 #0000001a;
  109. cursor: pointer;
  110. overflow: hidden;
  111. }
  112. .news_list_item:nth-child(3n) {
  113. margin-right: 0;
  114. }
  115. .news_list_item .news_item_img {
  116. width: 100%;
  117. height: 2.7rem;
  118. object-fit: cover;
  119. transition: all .3s ease-out;
  120. -webkit-transition: all .3s ease-out;
  121. }
  122. .news_list_item:hover .news_item_img {
  123. margin-left: -5%;
  124. width: 110%;
  125. height: 2.7rem;
  126. object-fit: cover;
  127. transition: all .3s ease-out;
  128. -webkit-transition: all .3s ease-out;
  129. }
  130. .news_list_item .news_item_title {
  131. margin: 0.1rem 0.16rem;
  132. height: 0.52rem;
  133. font-size: 0.18rem;
  134. font-weight: 700;
  135. line-height: 0.26rem;
  136. color: #333;
  137. text-overflow: -o-ellipsis-lastline;
  138. overflow: hidden;
  139. text-overflow: ellipsis;
  140. display: -webkit-box;
  141. -webkit-line-clamp: 2;
  142. -webkit-box-orient: vertical;
  143. }
  144. .news_list_item .news_item_stitle {
  145. margin: 0.1rem 0.16rem;
  146. font-size: 0.16rem;
  147. line-height: 0.32rem;
  148. color: #666;
  149. }
  150. .news_page_box {
  151. display: flex;
  152. justify-content: center;
  153. align-items: center;
  154. padding: 0.2rem 0 0.5rem;
  155. font-size: 0.16rem;
  156. color: #333;
  157. background-color: #fff;
  158. }
  159. .news_page_box .news_page_prev {
  160. margin-left: 0.1rem;
  161. margin-right: 0.1rem;
  162. width: 0.4rem;
  163. height: 0.4rem;
  164. line-height: 0.4rem;
  165. text-align: center;
  166. transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  167. -webkit-transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  168. transform: rotateY(0.5turn);
  169. background: #ffffff;
  170. border: 1px solid #dddddd;
  171. cursor: pointer;
  172. }
  173. .news_page_box .news_page_prev.disabled {
  174. cursor: not-allowed;
  175. }
  176. .news_page_box .news_page_num {
  177. margin-left: 0.1rem;
  178. margin-right: 0.1rem;
  179. width: 0.4rem;
  180. height: 0.4rem;
  181. color: #333;
  182. line-height: 0.4rem;
  183. text-align: center;
  184. transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  185. -webkit-transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  186. background: #ffffff;
  187. border: 1px solid #dddddd;
  188. cursor: pointer;
  189. }
  190. .news_page_box .news_page_next {
  191. margin-left: 0.1rem;
  192. margin-right: 0.1rem;
  193. width: 0.4rem;
  194. height: 0.4rem;
  195. line-height: 0.4rem;
  196. text-align: center;
  197. transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  198. -webkit-transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  199. background: #ffffff;
  200. border: 1px solid #dddddd;
  201. cursor: pointer;
  202. }
  203. .news_page_box .news_page_next.disabled {
  204. cursor: not-allowed;
  205. }
  206. .news_page_box .news_page_prev img,
  207. .news_page_box .news_page_next img {
  208. display: inline-block;
  209. width: 0.2rem;
  210. vertical-align: middle;
  211. }
  212. .news_page_box > div:hover,
  213. .news_page_box .news_page_num.selected {
  214. background-color: #1D70F2;
  215. border: 1px solid #1D70F2;
  216. color: #fff;
  217. }
  218. .news_detail_box {
  219. padding: 0.73rem 0 0.84rem;
  220. background-color: #fff;
  221. }
  222. .news_detail_main {
  223. position: relative;
  224. margin: 0 auto;
  225. width: 13rem;
  226. }
  227. .news_detail_header {
  228. font-size: 0.16rem;
  229. border-bottom: 0.01rem dashed #ccc;
  230. text-align: center;
  231. }
  232. .news_detail_header .detail_title {
  233. font-size: 0.28rem;
  234. line-height: 0.5rem;
  235. color: #333;
  236. font-weight: 700;
  237. }
  238. .news_detail_header .detail_stitle {
  239. padding: 0.17rem 0 0.28rem;
  240. font-size: 0.16rem;
  241. color: #666;
  242. }
  243. .news_detail_content {
  244. padding-top: 0.2rem;
  245. font-size: 0.16rem;
  246. line-height: 0.48rem;
  247. color: #666;
  248. }