echart.less 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. // css 初始化
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. // overflow: hidden;
  7. }
  8. li {
  9. list-style: none;
  10. }
  11. // 声明字体
  12. @font-face {
  13. font-family: electronicFont;
  14. src: url(../font/DS-DIGIT.TTF);
  15. }
  16. body {
  17. background: url(../images//bg.jpg) no-repeat top center;
  18. line-height: 1.15;
  19. }
  20. header {
  21. position: relative;
  22. height: 1.25rem;
  23. background: url(../images/head_bg.png) no-repeat;
  24. background-size: 100% 100%;
  25. h1 {
  26. font-size: .475rem;
  27. color: rgba(255, 255, 255, 0.87);
  28. text-align: center;
  29. line-height: 1rem;
  30. }
  31. .show-time {
  32. position: absolute;
  33. top: 0;
  34. right: .375rem;
  35. line-height: .9375rem;
  36. color: rgba(255, 255, 255, 0.7);
  37. font-size: .25rem;
  38. }
  39. }
  40. // 页面主体盒子
  41. .mainbox {
  42. display: flex;
  43. min-width: 1024px;
  44. max-height: 1920px;
  45. margin: 0 auto;
  46. padding: .125rem .125rem 0;
  47. .column {
  48. flex: 3;
  49. }
  50. .column:nth-child(2) {
  51. flex: 5;
  52. margin: 0 .125rem .1875rem;
  53. // 图片旋转有时会超出屏幕最大位置导致滚动条自动上下移动
  54. overflow: hidden;
  55. }
  56. .panel {
  57. position: relative;
  58. height: 3.9rem;
  59. padding: 0 .1875rem .5rem;
  60. margin-bottom: .1875rem;
  61. border: 1px solid rgba(25, 186, 139, 0.17);
  62. background: url(../images/line.png) rgba(255, 255, 255, 0.03);
  63. // &::before {
  64. // position: absolute;
  65. // top: 0;
  66. // left: 0;
  67. // width: 10px;
  68. // height: 10px;
  69. // border-left: 2px solid #02a6b5;
  70. // border-top: 2px solid #02a6b5;
  71. // content: '';
  72. // }
  73. // &::after {
  74. // position: absolute;
  75. // top: 0;
  76. // right: 0;
  77. // width: 10px;
  78. // height: 10px;
  79. // border-right: 2px solid #02a6b5;
  80. // border-top: 2px solid #02a6b5;
  81. // content: '';
  82. // }
  83. .panel-footer {
  84. position: absolute;
  85. bottom: 0;
  86. left: 0;
  87. width: 100%;
  88. &::before {
  89. position: absolute;
  90. bottom: 0;
  91. left: 0;
  92. width: 10px;
  93. height: 10px;
  94. border-left: 2px solid #02a6b5;
  95. border-bottom: 2px solid #02a6b5;
  96. content: '';
  97. }
  98. &::after {
  99. position: absolute;
  100. bottom: 0;
  101. right: 0;
  102. width: 10px;
  103. height: 10px;
  104. border-right: 2px solid #02a6b5;
  105. border-bottom: 2px solid #02a6b5;
  106. content: '';
  107. }
  108. }
  109. // 修改字体
  110. h2 {
  111. height: .6rem;
  112. color: #fff;
  113. line-height: .6rem;
  114. text-align: center;
  115. font-size: 0.25rem;
  116. font-weight: 400;
  117. a {
  118. color: rgb(167, 167, 167);
  119. text-decoration: none;
  120. margin: 0 .125rem;
  121. }
  122. .a-active {
  123. color: #fff;
  124. }
  125. }
  126. .chart {
  127. height: 3rem;
  128. }
  129. }
  130. }
  131. // no数字模块 中间部分
  132. .no {
  133. background-color: rgba(101, 132, 226, 0.1);
  134. padding: .1875rem;
  135. .no-hd {
  136. position: relative;
  137. border: 1px solid rgba(25, 186, 139, 0.17);
  138. &::before {
  139. position: absolute;
  140. top: 0;
  141. left: 0;
  142. width: .375rem;
  143. height: .125rem;
  144. border-top: 2px solid #02a6b5;
  145. border-left: 2px solid #02a6b5;
  146. content: '';
  147. }
  148. &::after {
  149. position: absolute;
  150. bottom: 0;
  151. right: 0;
  152. width: .375rem;
  153. height: .125rem;
  154. border-bottom: 2px solid #02a6b5;
  155. border-right: 2px solid #02a6b5;
  156. content: '';
  157. }
  158. ul {
  159. display: flex;
  160. li {
  161. position: relative;
  162. flex: 1;
  163. line-height: 1rem;
  164. font-size: .875rem;
  165. color: #ffeb7b;
  166. text-align: center;
  167. font-family: electronicFont;
  168. &:first-child::after {
  169. content: '';
  170. position: absolute;
  171. top: 25%;
  172. right: 0;
  173. height: 50%;
  174. width: 1px;
  175. background-color: rgba(255, 255, 255, 0.3);
  176. }
  177. }
  178. }
  179. }
  180. .no-bd {
  181. ul {
  182. display: flex;
  183. li {
  184. flex: 1;
  185. text-align: center;
  186. color: rgba(255, 255, 255, 0.7);
  187. font-size: .225rem;
  188. height: .5rem;
  189. line-height: .5rem;
  190. padding-top: .125rem;
  191. }
  192. }
  193. }
  194. }
  195. .map {
  196. position: relative;
  197. height: 10.125rem;
  198. .map1 {
  199. width: 6.475rem;
  200. height: 6.475rem;
  201. position: absolute;
  202. top: 50%;
  203. left: 50%;
  204. transform: translate(-50%, -50%);
  205. background: url(../images/map.png);
  206. background-size: 100% 100%;
  207. opacity: 0.3;
  208. }
  209. .map2 {
  210. position: absolute;
  211. top: 50%;
  212. left: 50%;
  213. transform: translate(-50%, -50%);
  214. width: 8.0375rem;
  215. height: 8.0375rem;
  216. background: url(../images/lbx.png);
  217. background-size: 100% 100%;
  218. animation: rotate1 15s linear infinite;
  219. opacity: .6;
  220. }
  221. .map3 {
  222. position: absolute;
  223. top: 50%;
  224. left: 50%;
  225. transform: translate(-50%, -50%);
  226. width: 7.075rem;
  227. height: 7.075rem;
  228. background: url(../images/jt.png);
  229. background-size: 100% 100%;
  230. animation: rotate2 15s linear infinite;
  231. }
  232. .chart {
  233. position: absolute;
  234. top: 0;
  235. left: 0;
  236. height: 10.125rem;
  237. width: 100%;
  238. }
  239. @keyframes rotate1 {
  240. from {
  241. transform: translate(-50%, -50%) rotate(0deg);
  242. }
  243. to {
  244. transform: translate(-50%, -50%) rotate(360deg);
  245. }
  246. }
  247. @keyframes rotate2 {
  248. from {
  249. transform: translate(-50%, -50%) rotate(360deg);
  250. }
  251. to {
  252. transform: translate(-50%, -50%) rotate(0deg);
  253. }
  254. }
  255. }
  256. /* 约束屏幕尺寸 */
  257. @media screen and (max-width: 1024px) {
  258. html {
  259. font-size: 42px !important;
  260. }
  261. }
  262. @media screen and (min-width: 1920px) {
  263. html {
  264. font-size: 80px !important;
  265. }
  266. }