index.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. li {
  7. list-style: none;
  8. }
  9. @font-face {
  10. font-family: electronicFont;
  11. src: url(../font/DS-DIGIT.TTF);
  12. }
  13. body {
  14. font-family: Arial, Helvetica, sans-serif;
  15. margin: 0;
  16. padding: 0;
  17. /* 背景图定位 / 背景图尺寸 cover 完全铺满容器 contain 完整显示在容器内 */
  18. background: url(../images/bg.jpg) no-repeat #000;
  19. background-size: cover;
  20. /* 行高是字体1.15倍 */
  21. line-height: 1.15;
  22. }
  23. header {
  24. position: relative;
  25. height: 1rem;
  26. background: url(../images/head_bg.png) no-repeat top center;
  27. background-size: 100% 100%;
  28. h1 {
  29. font-size: .35rem;
  30. color: #fff;
  31. text-align: center;
  32. line-height: 1rem;
  33. font-weight: normal
  34. }
  35. .filterSec {
  36. position: absolute;
  37. top: 0;
  38. right: 0.375rem;
  39. line-height: 0.9375rem;
  40. font-size: 0.25rem;
  41. color: rgba(255, 255, 255, 0.7);
  42. }
  43. }
  44. .mainbox {
  45. min-width: 1024px;
  46. max-width: 1920px;
  47. padding: 0.125rem 0.125rem 0;
  48. }
  49. .mainbox .topSection,
  50. .mainbox .bottomSection {
  51. display: flex
  52. }
  53. .mainbox .topSection .column {
  54. flex: 2;
  55. }
  56. .mainbox .topSection .column:nth-child(2) {
  57. flex: 5;
  58. margin: 0 0.125rem;
  59. overflow: hidden;
  60. }
  61. .mainbox .bottomSection .column {
  62. flex: 1;
  63. }
  64. .mainbox .bottomSection .column:nth-child(2) {
  65. flex: 1;
  66. margin: 0 0.125rem;
  67. overflow: hidden;
  68. }
  69. .panel {
  70. position: relative;
  71. height: 5.75rem;
  72. border: 1px solid rgba(25, 140, 186, 0.5);
  73. background: rgba(8,26,50,0.60);
  74. padding: 0 .5375rem ;
  75. margin-bottom: 0.1875rem;
  76. }
  77. .panel::before {
  78. position: absolute;
  79. top: 0;
  80. left: 0;
  81. content: "";
  82. width: 10px;
  83. height: 10px;
  84. border-top: 2px solid #28BEFC;
  85. border-left: 2px solid #28BEFC;
  86. }
  87. .panel::after {
  88. position: absolute;
  89. top: 0;
  90. right: 0;
  91. content: "";
  92. width: 10px;
  93. height: 10px;
  94. border-top: 2px solid #28BEFC;
  95. border-right: 2px solid #28BEFC;
  96. }
  97. .panel .panel-footer {
  98. position: absolute;
  99. left: 0;
  100. bottom: 0;
  101. width: 100%;
  102. }
  103. .panel .panel-footer::before {
  104. position: absolute;
  105. bottom: 0;
  106. left: 0;
  107. content: "";
  108. width: 10px;
  109. height: 10px;
  110. border-bottom: 2px solid #28BEFC;
  111. border-left: 2px solid #28BEFC;
  112. }
  113. .panel .panel-footer::after {
  114. position: absolute;
  115. bottom: 0;
  116. right: 0;
  117. content: "";
  118. width: 10px;
  119. height: 10px;
  120. border-bottom: 2px solid #28BEFC;
  121. border-right: 2px solid #28BEFC;
  122. }
  123. .panel h2 {
  124. height: 0.6rem;
  125. line-height: 0.6rem;
  126. text-align: center;
  127. color: #0096FF;
  128. font-size: 0.25rem;
  129. font-weight: 400;
  130. position: relative;
  131. }
  132. .panel h2 .line {
  133. height: 1px;
  134. background: rgba(25, 140, 186, 0.5);
  135. position: relative;
  136. width: 100%;
  137. margin: 0 auto
  138. }
  139. .panel h2 .line:before {
  140. content: '';
  141. height: 1px;
  142. top: .07rem;
  143. left: -0.37rem;
  144. width: .375rem;
  145. height: 1px;
  146. border-bottom: 1px solid rgba(25, 140, 186, 0.5);
  147. display: inline-block;
  148. transform: rotate(335deg);
  149. position: absolute;
  150. }
  151. .panel h2 .line:after {
  152. content: '';
  153. height: 1px;
  154. top: .07rem;
  155. right: -0.35rem;
  156. width: .375rem;
  157. height: 1px;
  158. border-bottom: 1px solid rgba(25, 140, 186, 0.5);
  159. display: inline-block;
  160. transform: rotate(25deg);
  161. position: absolute;
  162. }
  163. .panel h2 img {
  164. height: .125rem;
  165. vertical-align: middle
  166. }
  167. .panel h2 span {
  168. margin: 0 0.1875rem;
  169. }
  170. .panel .chart {
  171. height:calc(100% - 0.6rem);
  172. // border:1px solid pink;
  173. }
  174. @media screen and (max-width: 1024px) {
  175. html {
  176. font-size: 42px !important;
  177. }
  178. }
  179. @media screen and (min-width: 1920) {
  180. html {
  181. font-size: 80px !important;
  182. }
  183. }
  184. // 电老化分析
  185. .line.panel {
  186. text-align:center;
  187. .chart{
  188. height:50%;
  189. }
  190. .tab-line{
  191. height: .6rem;
  192. margin: .25rem 0;
  193. display:inline-block;
  194. a{
  195. font-size: .175rem;
  196. color:#0090F5;
  197. padding: .125rem .45rem;
  198. display:block;
  199. float:left;
  200. border: 1px solid #0096ff;
  201. text-decoration: none;
  202. }
  203. a.active{
  204. background:#0096FF;
  205. color:#fff
  206. }
  207. }
  208. .summary{
  209. color:#fff;
  210. font-size: .175rem;
  211. text-align:left;
  212. width:100%;
  213. margin-top:.1rem;
  214. padding: .2rem .2rem .3rem .2rem;
  215. background-image:url(../images/summary-bg.png) ;
  216. background-size:100% 100%;
  217. background-repeat: no-repeat;
  218. }
  219. }
  220. .hotAnalysis.panel .chart{
  221. height:62%;
  222. margin-top:.5rem
  223. }