index.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. html{
  2. height: 100%;
  3. }
  4. body{
  5. height: 100%;
  6. width: 100%;
  7. min-width: 1280px;
  8. margin: 0;
  9. background: url('../img/bg.png') no-repeat;
  10. background-size: 100% 100%;
  11. overflow: hidden;
  12. padding: 3%;
  13. }
  14. .content{
  15. height: 100%;
  16. }
  17. @font-face {
  18. font-family: "numfont";
  19. src: url('../fonts/num.otf') format('truetype');
  20. }
  21. .numfont {
  22. font-family:"numfont" !important;
  23. font-size:16px;
  24. font-style:normal;
  25. -webkit-font-smoothing: antialiased;
  26. -moz-osx-font-smoothing: grayscale;
  27. }
  28. .left{
  29. float: left;
  30. width: 30%;
  31. height: 100%;
  32. }
  33. /*closed*/
  34. #btn{
  35. position: absolute;
  36. top: 12%;
  37. right: 12%;
  38. width: 52px;
  39. height: 52px;
  40. z-index: 9999999;
  41. cursor: pointer;
  42. }
  43. #btn>div{
  44. width: 52px;
  45. height: 52px;
  46. position: relative;
  47. }
  48. .btn0{
  49. position: absolute;
  50. width: 52px;
  51. height: 52px;
  52. background: url("../img/close0.png") no-repeat;
  53. background-size: 100%;
  54. animation: clockwise 3s linear infinite;
  55. }
  56. .btn1{
  57. position: absolute;
  58. width: 34px;
  59. height: 34px;
  60. margin: 9px;
  61. background: url("../img/close1.png") no-repeat;
  62. background-size: 100%;
  63. }
  64. .btn2{
  65. position: absolute;
  66. width: 20px;
  67. height: 20px;
  68. margin: 16px;
  69. background: url("../img/close2.png") no-repeat;
  70. background-size: 100%;
  71. animation: anticlockwise 3s linear infinite;
  72. }
  73. @keyframes clockwise {
  74. 0% {
  75. transform:rotate(0deg);
  76. }
  77. 100% {
  78. transform:rotate(-360deg);
  79. }
  80. }
  81. @keyframes anticlockwise {
  82. 0% {
  83. transform:rotate(0deg);
  84. }
  85. 100% {
  86. transform:rotate(360deg);
  87. }
  88. }
  89. /*air*/
  90. .air{
  91. height: 20%;
  92. }
  93. .title{
  94. background: url("../img/line.png") no-repeat top;
  95. background-size: 90%;
  96. height: 12%;
  97. color: #ACA5A1;
  98. font-size: 10px;
  99. text-align: center;
  100. padding-top: 1%;
  101. font-weight: bold;
  102. }
  103. .air-relative,.air-absolutely{
  104. height: 20%;
  105. position: relative;
  106. }
  107. .air-relative{
  108. margin: 2% 0 8% 0;
  109. }
  110. .air-val{
  111. float: left;
  112. color: white;
  113. height: 100%;
  114. line-height: 100%;
  115. width: 15%;
  116. }
  117. .air-val div{
  118. width: 60%;
  119. height: 100%;
  120. float: left;
  121. margin-left: 1%;
  122. margin-top: 4%;
  123. }
  124. .air-val div p{
  125. margin: 0 5%;
  126. }
  127. .unit{
  128. width: 15%;
  129. float: right;
  130. margin-right: 5%;
  131. color: white;
  132. height: 100%;
  133. font-family: numfont;
  134. line-height: 200%;
  135. text-align: right;
  136. }
  137. .gray{
  138. border-bottom: 1px solid #25201E;
  139. }
  140. .gray,.light{
  141. height: 100%;
  142. width: 70%;
  143. position: absolute;
  144. left: 15%;
  145. }
  146. .gray span,.light span{
  147. display: block;
  148. width: 2%;
  149. height: 90%;
  150. float: left;
  151. }
  152. .air-relative .gray span{
  153. background: url("../img/bartop1.png") no-repeat;
  154. background-size: auto 100%;
  155. }
  156. .air-relative .light span{
  157. background: url("../img/bartop0.png") no-repeat;
  158. background-size: auto 100%;
  159. }
  160. .air-absolutely .gray span{
  161. background: url("../img/barfoot1.png") no-repeat;
  162. background-size: auto 100%;
  163. }
  164. .air-absolutely .light span{
  165. background: url("../img/barfoot0.png") no-repeat;
  166. background-size: auto 100%;
  167. }
  168. .air-icon{
  169. display: block;
  170. width: 20%;
  171. height: 90%;
  172. float: left;
  173. }
  174. .air-relative .air-icon {
  175. background: url("../img/bartop0.png") no-repeat;
  176. background-size: auto 100%;
  177. }
  178. .air-absolutely .air-icon{
  179. background: url("../img/barfoot0.png") no-repeat;
  180. background-size: auto 100%;
  181. }
  182. .hpa-rel,.hpa-abs{
  183. font-size: 30px;
  184. }
  185. .air-val .hpa-nam{
  186. margin-top: 20%;
  187. }
  188. .hpa-nam{
  189. font-size: 12px;
  190. }
  191. /*tem-hum*/
  192. .tem-hum{
  193. height: 25%;
  194. margin-top: 2%;
  195. }
  196. .temperature,.humidity{
  197. float: left;
  198. width: 50%;
  199. height: 100%;
  200. background: url("../img/leftline.png") no-repeat left;
  201. background-size: auto 100%;
  202. }
  203. .tem-hum-title{
  204. background: #B0CC35;
  205. width: 60%;
  206. margin-left: 25%;
  207. height: 10%;
  208. font-size: 11px;
  209. font-weight: bold;
  210. text-align: center;
  211. line-height: 160%;
  212. }
  213. .tem-hum-chart{
  214. width: 80%;
  215. height: 80%;
  216. margin: 0 auto;
  217. }
  218. .tem-val,.hum-val{
  219. width: 70%;
  220. margin-left: 25%;
  221. height: 10%;
  222. font-size: 11px;
  223. font-weight: bold;
  224. }
  225. .indoor,.outdoor{
  226. display: inline-block;
  227. color: white;
  228. text-indent: 8px;
  229. margin-left: 8px;
  230. }
  231. .indoor{
  232. border-left: 4px solid #B0CC35;
  233. }
  234. .outdoor{
  235. border-left: 4px solid red;
  236. }
  237. /*temp-k*/
  238. .temp-k{
  239. height: 21%;
  240. margin-top: 3%;
  241. }
  242. #tempKChart{
  243. height: 87%;
  244. }
  245. .dity-k{
  246. height: 21%;
  247. }
  248. #dityKChart{
  249. height: 87%;
  250. }
  251. /*map*/
  252. .middle{
  253. float: left;
  254. width: 34%;
  255. height: 100%;
  256. }
  257. .chinaMap{
  258. margin-top: 3%;
  259. width: 100%;
  260. height: 70%;
  261. overflow: hidden;
  262. z-index: 999999;
  263. position: relative;
  264. }
  265. .mapBox{
  266. background: url("../img/wrapper.png") no-repeat center;
  267. background-size: 100% 100%;
  268. width: 90%;
  269. margin: 7% auto;
  270. height: 85%;
  271. }
  272. #map{
  273. width: 100%;
  274. height: 100%;
  275. }
  276. .lineRun{
  277. width: 100%;
  278. height: 80px;
  279. background: url("../img/animate.png") no-repeat bottom;
  280. background-size: 100%;
  281. }
  282. .headTitle{
  283. font-family: numfont;
  284. color: #B0CC35;
  285. position: relative;
  286. width: 100%;
  287. text-align: center;
  288. font-size: 20px;
  289. }
  290. /*right*/
  291. .right{
  292. float: left;
  293. width: 36%;
  294. height: 100%;
  295. box-sizing: border-box;
  296. padding-right: 5%;
  297. }
  298. .information{
  299. width: 90%;
  300. height: 20%;
  301. padding: 0 5%;
  302. }
  303. .baseInfo,.temData{
  304. width: 45%;
  305. height: 100%;
  306. float: left;
  307. background: url("../img/verticalline.png") no-repeat left;
  308. background-size: auto 100%;
  309. padding-left: 5%;
  310. }
  311. .infoTitle{
  312. font-size: 10px;
  313. color: #AEA7A3;
  314. margin-top: 0;
  315. }
  316. .area{
  317. font-family: numfont;
  318. font-size: 30px;
  319. color: #B0CC35;
  320. margin: 0 0 12px 0;
  321. }
  322. .days{
  323. font-family: numfont;
  324. color: #B0CC35;
  325. font-size: 25px;
  326. }
  327. .date{
  328. display: inline-block;
  329. text-indent: 29px;
  330. }
  331. .idNum{
  332. display: inline-block;
  333. text-indent: 50px;
  334. }
  335. .temTitle{
  336. color: red;
  337. font-size: 18px;
  338. margin: 0;
  339. }
  340. .indoorTem{
  341. font-family: numfont;
  342. color: red;
  343. font-size: 30px;
  344. margin: 0 0 15px 0;
  345. }
  346. .temperatureN{
  347. font-size: 60px;
  348. display: inline-block;
  349. margin-right: 15px;
  350. }
  351. .point span{
  352. display: inline-block;
  353. margin-right: 80px;
  354. }
  355. .wind{
  356. width: 100%;
  357. height: 30%;
  358. margin-top: 3%;
  359. }
  360. #windChart{
  361. width: 45%;
  362. margin-left: 5%;
  363. float: left;
  364. height: 100%;
  365. }
  366. .windData{
  367. width: 45%;
  368. float: left;
  369. height: 100%;
  370. }
  371. .windSpeed,.gust{
  372. width: 94%;
  373. height: 50%;
  374. float: right;
  375. background: url("../img/line1.png") no-repeat center;
  376. background-size: 100%;
  377. overflow: hidden;
  378. }
  379. .windTitle{
  380. background: #B0CC35;
  381. width: 60%;
  382. margin-top: 5%;
  383. margin-left: 35%;
  384. height: 14%;
  385. font-size: 11px;
  386. font-weight: bold;
  387. text-align: center;
  388. line-height: 160%;
  389. }
  390. .windBox{
  391. width: 100%;
  392. height: 80%;
  393. color: #ACA5A1;
  394. }
  395. .windBox>div{
  396. margin-top: 2%;
  397. height: 98%;
  398. float: left;
  399. }
  400. .windBox div p{
  401. font-size: 12px;
  402. margin: 5px 0;
  403. }
  404. .windWrap{
  405. width: 76%;
  406. height: 80%;
  407. margin: 20% 12%;
  408. background: url("../img/wind0.png") no-repeat;
  409. background-size: 100%;
  410. overflow: hidden;
  411. }
  412. .windFan{
  413. width: 60%;
  414. margin: 20%;
  415. }
  416. .currentSpeed,.highestSpeed{
  417. font-family: numfont;
  418. color: #B0CC35;
  419. font-size: 30px;
  420. }
  421. .windSpeed .windFan{
  422. animation: speed 600ms linear infinite;
  423. }
  424. .gust .windFan{
  425. animation: speed 400ms linear infinite;
  426. }
  427. @keyframes speed {
  428. 0% {
  429. transform:rotate(0deg);
  430. }
  431. 100% {
  432. transform:rotate(360deg);
  433. }
  434. }
  435. /*rain*/
  436. .air-title{
  437. height: 5%;
  438. }
  439. .rainfall{
  440. width: 100%;
  441. height: 33%;
  442. margin-top: 5%;
  443. }
  444. .rainfall .windData{
  445. margin-left: 2.5%;
  446. }