common-media.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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: #fff;
  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. z-index: 10000000;
  38. display: none;
  39. }
  40. .mobile-header-nav>ul{
  41. width: 50%;
  42. height: 100%;
  43. background-color: #C90303;
  44. float: right;
  45. }
  46. .mobile-header-nav>ul>li{
  47. background-color: #C90303;
  48. }
  49. .mobile-header-nav li{
  50. position: relative;
  51. }
  52. .mobile-header-nav span{
  53. margin-left: 10px;
  54. float: left;
  55. transform: rotate(180deg);
  56. }
  57. .mobile-header-nav .nav-secondLevel{
  58. width: 100%;
  59. position: absolute;
  60. top: 0;
  61. left: -95%;
  62. text-align: center;
  63. display: none;
  64. }
  65. .mobile-header-nav .nav-threeLevel{
  66. width: 100%;
  67. position: relative;
  68. top: 0;
  69. left: 0;
  70. display: none;
  71. }
  72. .mobile-header-nav>ul>li:hover .nav-secondLevel,
  73. .mobile-header-nav li:hover .nav-threeLevel{
  74. display: none;
  75. }
  76. .mobile-header-nav .nav-secondLevel{
  77. background-color: #ff1111;
  78. }
  79. .mobile-header-nav .nav-threeLevel{
  80. background-color: #f55555;
  81. }
  82. .mobile-header-nav li a{
  83. display: block;
  84. height: 50px;
  85. line-height: 50px;
  86. color: #fff;
  87. padding: 0 20px;
  88. border-bottom: 1px solid #D20000;
  89. }
  90. .mobile-header-nav .nav-threeLevel li{
  91. width: 100%;
  92. }
  93. .mobile-header-nav .nav-threeLevel li a{
  94. border: none;
  95. padding: 0;
  96. }
  97. @media screen and (max-width: 1200px) {
  98. .wrap{
  99. width: 98%;
  100. }
  101. }
  102. @media screen and (max-width: 1024px) {}
  103. @media screen and (max-width: 980px) {
  104. .header{
  105. position: relative;
  106. }
  107. .mobile-nav-icon,.mobile-header-nav{
  108. display: block;
  109. }
  110. .header-img{
  111. position: relative;
  112. }
  113. /* 导航 */
  114. .header-nav{
  115. display: none;
  116. }
  117. }
  118. @media screen and (max-width: 768px) {
  119. .wrap{
  120. width: 95%;
  121. }
  122. /* 两列列表页 */
  123. .content-part{
  124. flex-wrap: wrap;
  125. }
  126. .content-left{
  127. width: 100%;
  128. margin-right: 0;
  129. }
  130. .content-left-list{
  131. display: flex;
  132. flex-wrap: wrap;
  133. }
  134. .content-left-list li{
  135. width: 50%;
  136. }
  137. .list-pic .content-img-list li{
  138. width: 50%;
  139. }
  140. }
  141. @media screen and (max-width: 640px) {
  142. .header {
  143. position: fixed;
  144. top: 0;
  145. left: 0;
  146. z-index: 1000;
  147. width: 100%;
  148. }
  149. .header-img{
  150. height: 70px;
  151. overflow: hidden;
  152. }
  153. .header-img img{
  154. width: auto;
  155. height: 100%;
  156. }
  157. .mobile-nav-icon{
  158. /* right: 18px; */
  159. }
  160. .content{
  161. margin-top: 80px !important;
  162. }
  163. .footer-mesg span{
  164. display: block;
  165. }
  166. /* 列表页 */
  167. .crumbs{
  168. padding: 0 20px;
  169. }
  170. .list-wrap li{
  171. padding: 0 20px;
  172. }
  173. .list-wrap .list-title{
  174. width: calc(100% - 100px);
  175. overflow: auto;
  176. }
  177. .content-img-list{
  178. flex-wrap: wrap;
  179. }
  180. .content-img-list li {
  181. width: 100% !important;
  182. }
  183. .list-pic .content-img-list li a{
  184. margin: 0;
  185. }
  186. /* 正文 */
  187. .article-main{
  188. margin-top: 28px;
  189. }
  190. .article-title{
  191. margin: 20px 0;
  192. }
  193. .article-mesg{
  194. line-height: 26px;
  195. }
  196. }
  197. @media screen and (max-width: 375px) {}
  198. @media screen and (max-width: 360px) {}