homepage-media.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. .mobile-nav-icon{
  2. width: 25px;
  3. position: absolute;
  4. top: calc(50% + 3px);
  5. right: 30px;
  6. transform: translateY(-50%);
  7. cursor: pointer;
  8. display: none;
  9. }
  10. .mobile-nav-icon span{
  11. display: block;
  12. width: 100%;
  13. height: 3px;
  14. background-color: #C90303;
  15. margin-bottom: 6px;
  16. transition: all .1s;
  17. }
  18. .nav-icon-active span{
  19. transform:rotate(-45deg);
  20. }
  21. .nav-icon-active span:first-child{
  22. transform:rotate(45deg) translate(6px,6px);
  23. }
  24. .nav-icon-active span:last-child{
  25. display: none;
  26. }
  27. /* 导航 */
  28. .mobile-header-nav{
  29. font-weight: bold;
  30. overflow-y: auto;
  31. position: absolute;
  32. top: 0;
  33. right: -100%;
  34. width: 100%;
  35. text-align: right;
  36. opacity: 0;
  37. display: none;
  38. }
  39. .mobile-header-nav>ul{
  40. width: 50%;
  41. height: 100%;
  42. background-color: #C90303;
  43. float: right;
  44. }
  45. .mobile-header-nav>ul>li{
  46. background-color: #C90303;
  47. }
  48. .mobile-header-nav li{
  49. position: relative;
  50. }
  51. .mobile-header-nav span{
  52. margin-left: 10px;
  53. float: left;
  54. transform: rotate(180deg);
  55. }
  56. .mobile-header-nav .nav-secondLevel{
  57. width: 100%;
  58. position: absolute;
  59. top: 0;
  60. left: -95%;
  61. text-align: center;
  62. display: none;
  63. }
  64. .mobile-header-nav .nav-threeLevel{
  65. width: 100%;
  66. position: relative;
  67. top: 0;
  68. left: 0;
  69. display: none;
  70. }
  71. .mobile-header-nav>ul>li:hover .nav-secondLevel,
  72. .mobile-header-nav li:hover .nav-threeLevel{
  73. display: none;
  74. }
  75. .mobile-header-nav .nav-secondLevel{
  76. background-color: #ff1111;
  77. }
  78. .mobile-header-nav .nav-threeLevel{
  79. background-color: #f55555;
  80. }
  81. .mobile-header-nav li a{
  82. display: block;
  83. height: 50px;
  84. line-height: 50px;
  85. color: #fff;
  86. padding: 0 20px;
  87. border-bottom: 1px solid #D20000;
  88. }
  89. .mobile-header-nav .nav-threeLevel li{
  90. width: 100%;
  91. }
  92. .mobile-header-nav .nav-threeLevel li a{
  93. border: none;
  94. padding: 0;
  95. }
  96. @media screen and (max-width: 1200px) {
  97. .wrap{
  98. width: 98%;
  99. }
  100. }
  101. @media screen and (max-width: 1024px) {
  102. .header-img{
  103. height: 90px;
  104. }
  105. }
  106. @media screen and (max-width: 980px) {
  107. .header{
  108. position: fixed;
  109. top: 0;
  110. left: 0;
  111. z-index: 1000;
  112. }
  113. .header-img{
  114. position: relative;
  115. height: 78px;
  116. }
  117. .header-img-right,.header-nav{
  118. display: none;
  119. }
  120. .mobile-nav-icon,.mobile-header-nav{
  121. display: block;
  122. }
  123. .banner,.mobile-content{
  124. margin-top: 78px;
  125. }
  126. .list-pic .content-img-list li{
  127. width: 50%;
  128. }
  129. }
  130. @media screen and (max-width: 768px) {
  131. .wrap{
  132. width: 95%;
  133. }
  134. .content-row{
  135. flex-wrap: wrap;
  136. }
  137. .content-item{
  138. width: 100%;
  139. }
  140. /* 列表页 */
  141. .content-left{
  142. width: 100%;
  143. margin-right: 0;
  144. }
  145. .content-left-list{
  146. display: flex;
  147. flex-wrap: wrap;
  148. }
  149. .content-left-list li{
  150. width: 50%;
  151. }
  152. }
  153. @media screen and (max-width: 640px) {
  154. .mobile-nav-icon{
  155. right: 20px;
  156. }
  157. .header-img{
  158. height: 70px;
  159. }
  160. .header-img img{
  161. height: auto;
  162. width: 100%;
  163. }
  164. .footer-link>span{
  165. width: 100px;
  166. }
  167. .footer-link>ul{
  168. margin-left: 120px;
  169. }
  170. .footer-mesg span{
  171. display: block;
  172. }
  173. .banner,.mobile-content{
  174. margin-top: 70px;
  175. }
  176. /* 列表页 */
  177. .content-right .content-wrap-list li p{
  178. width: calc(100% - 120px);
  179. float: left;
  180. }
  181. /* 正文 */
  182. .article-main{
  183. margin-top: 28px;
  184. }
  185. .article-title{
  186. margin: 20px 0;
  187. }
  188. .article-mesg{
  189. line-height: 26px;
  190. }
  191. /* 目录页 */
  192. .content-img-list li{
  193. width: 80%;
  194. }
  195. .list-pic .content-img-list li{
  196. width: 100%;
  197. }
  198. .content-img-list{
  199. flex-wrap: wrap;
  200. }
  201. .content-img-list li {
  202. width: 100% !important;
  203. }
  204. .list-pic .content-img-list li a{
  205. margin: 0;
  206. }
  207. }
  208. @media screen and (max-width: 414px) {
  209. /* 列表页 */
  210. .content-right .content-wrap-list li p{
  211. width: calc(100% - 96px);
  212. float: left;
  213. }
  214. }
  215. @media screen and (max-width: 375px) {
  216. }
  217. @media screen and (max-width: 360px) {}