divGraphic.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. /* DivGraphic 相关的样式 */
  2. /**************** 一个黑色面板,指向左下角黄色连线 ****************/
  3. .marsBlackPanel {
  4. min-width: 90px;
  5. min-height: 35px;
  6. position: absolute;
  7. left: 16px;
  8. bottom: 31px;
  9. cursor: default;
  10. border-radius: 4px;
  11. opacity: 0.96;
  12. border: 1px solid #14171c;
  13. box-shadow: 0px 2px 21px 0px rgba(33, 34, 39, 0.55);
  14. border-radius: 4px;
  15. box-sizing: border-box;
  16. background: linear-gradient(0deg, #1e202a 0%, #0d1013 100%);
  17. }
  18. .marsBlackPanel::before {
  19. content: "";
  20. width: calc(100% + 22px);
  21. height: 39px;
  22. position: absolute;
  23. bottom: -39px;
  24. left: -22px;
  25. background: url(../img/marker/popupLbl.png) 0px 0px no-repeat;
  26. background-position: 0px 0px;
  27. }
  28. .marsBlackPanel-text {
  29. width: 100%;
  30. height: 100%;
  31. min-height: 33px;
  32. text-align: center;
  33. padding: 5px 5px 0 5px;
  34. margin: 0;
  35. font-size: 14px;
  36. font-weight: 400;
  37. color: #ffffff;
  38. border: 1px solid #ffffff4f;
  39. -webkit-box-sizing: border-box;
  40. box-sizing: border-box;
  41. white-space: nowrap;
  42. }
  43. .marsBlackPanel-highlight{
  44. border: 2px solid yellow;
  45. }
  46. /**************** 一个渐变的文本面板,中间竖直连线 ****************/
  47. .marsBlueGradientPnl {
  48. text-align: center;
  49. padding: 5px 30px;
  50. margin: 0;
  51. color: #fff;
  52. background: linear-gradient(rgb(7 10 203 / 75%), rgb(16 238 220));
  53. -webkit-border-radius: 5px;
  54. -moz-border-radius: 5px;
  55. border-radius: 5px;
  56. max-height: 130px;
  57. -webkit-user-select: none;
  58. -moz-user-select: none;
  59. -ms-user-select: none;
  60. user-select: none;
  61. white-space: nowrap;
  62. }
  63. .marsBlueGradientPnl:after {
  64. content: "";
  65. position: absolute;
  66. bottom: -60px;
  67. left: calc(50% - 3px);
  68. display: block;
  69. width: 3px;
  70. height: 60px;
  71. border-right: 3px solid #2bcdbb;
  72. }
  73. .marsBlueGradientPnl-highlight{
  74. border: 2px solid yellow;
  75. }
  76. .marsBlueGradientPnl-highlight:after {
  77. border-right: 3px solid yellow;
  78. }
  79. /**************** 一个简洁文本面板,中间竖直连线 ****************/
  80. .marsGreenGradientPnl {
  81. width: 100px;
  82. text-align: center;
  83. background-image: linear-gradient(to right, #565d39, #00ffc3);
  84. position: absolute;
  85. left: -50px;
  86. bottom: 30px;
  87. cursor: default;
  88. padding: 5px;
  89. border: 1px solid #9c9944e8;
  90. }
  91. .marsGreenGradientPnl:hover {
  92. border: 1px solid rgb(9, 255, 0);
  93. }
  94. .marsGreenGradientPnl::before {
  95. position: absolute;
  96. content: "";
  97. left: 50%;
  98. bottom: -30px;
  99. height: 30px;
  100. border-left: 2px dashed #c5e22770;
  101. }
  102. .marsGreenGradientPnl-highlight{
  103. border: 2px solid yellow ;
  104. }
  105. .marsGreenGradientPnl-highlight::before{
  106. border-left: 2px dashed yellow !important;
  107. }
  108. /********** 面板:倾斜指向左下角的div1.png图片面板样式 ***********/
  109. .marsImgPanel1 {
  110. position: relative;
  111. width: 200px;
  112. height: 134px;
  113. background: rgba(42, 42, 42, 0.8);
  114. border-radius: 4px;
  115. background: url("../img/marker/div1.png");
  116. background-size: 100%;
  117. -webkit-background-size: cover;
  118. -moz-background-size: cover;
  119. -o-background-size: cover;
  120. -webkit-animation: mymove 5s infinite;
  121. animation: mymove 5s infinite;
  122. animation-duration: 5s;
  123. animation-timing-function: ease;
  124. animation-delay: 0s;
  125. animation-iteration-count: infinite;
  126. animation-direction: normal;
  127. animation-fill-mode: none;
  128. animation-play-state: running;
  129. animation-name: mymove;
  130. }
  131. .marsImgPanel1 .title {
  132. position: relative;
  133. top: 20px;
  134. left: 70px;
  135. font-size: 15px;
  136. text-align: left;
  137. color: rgba(255, 255, 255, 1);
  138. text-shadow: 0px 0px 9px rgba(0, 0, 0, 0.75);
  139. }
  140. /********** 面板:倾斜指向左下角的div2.png图片面板样式 ***********/
  141. .marsImgPanel2 {
  142. position: relative;
  143. width: 200px;
  144. height: 157px;
  145. background: rgba(42, 42, 42, 0.8);
  146. border-radius: 4px;
  147. background: url("../img/marker/div2.png");
  148. background-size: 100%;
  149. -webkit-background-size: cover;
  150. -moz-background-size: cover;
  151. -o-background-size: cover;
  152. -webkit-animation: mymove 5s infinite;
  153. animation: mymove 5s infinite;
  154. animation-duration: 5s;
  155. animation-timing-function: ease;
  156. animation-delay: 0s;
  157. animation-iteration-count: infinite;
  158. animation-direction: normal;
  159. animation-fill-mode: none;
  160. animation-play-state: running;
  161. animation-name: mymove;
  162. }
  163. .marsImgPanel2 .title {
  164. position: inherit;
  165. top: 22px;
  166. left: 70px;
  167. font-size: 14px;
  168. text-align: left;
  169. color: rgba(255, 255, 255, 1);
  170. text-shadow: 0px 0px 9px rgba(0, 0, 0, 0.75);
  171. }
  172. .marsImgPanel2 .content {
  173. position: inherit;
  174. font-size: 14px;
  175. top: 30px;
  176. left: 50px;
  177. width: 140px;
  178. height: auto;
  179. text-align: left;
  180. color: rgba(255, 255, 255, 1);
  181. overflow: hidden;
  182. }
  183. /********** 面板:倾斜指向左下角的面板样式 ***********/
  184. .marsTiltPanel {
  185. }
  186. .marsTiltPanel-wrap {
  187. position: relative;
  188. padding: 30px;
  189. overflow: hidden;
  190. }
  191. .marsTiltPanel .area {
  192. position: relative;
  193. min-width: 180px;
  194. }
  195. .marsTiltPanel .b-t {
  196. position: absolute;
  197. top: 0;
  198. left: 44px;
  199. right: 0;
  200. height: 1px;
  201. z-index: 10;
  202. }
  203. .marsTiltPanel .b-r {
  204. position: absolute;
  205. top: 0;
  206. right: 0;
  207. bottom: 44px;
  208. width: 1px;
  209. z-index: 10;
  210. }
  211. .marsTiltPanel .b-b {
  212. position: absolute;
  213. left: 0;
  214. right: 44px;
  215. bottom: 0;
  216. height: 1px;
  217. z-index: 10;
  218. }
  219. .marsTiltPanel .b-l {
  220. position: absolute;
  221. top: 44px;
  222. left: 0;
  223. bottom: 0;
  224. width: 1px;
  225. z-index: 10;
  226. }
  227. .marsTiltPanel .b-t-l {
  228. position: absolute;
  229. top: 0;
  230. left: 0;
  231. width: 1px;
  232. height: 62px;
  233. transform: rotate(45deg) translate(52px, -22px);
  234. z-index: 10;
  235. }
  236. .marsTiltPanel .b-b-r {
  237. position: absolute;
  238. bottom: 0;
  239. right: 0;
  240. width: 1px;
  241. height: 62px;
  242. transform: rotate(45deg) translate(-52px, 22px);
  243. z-index: 10;
  244. }
  245. .marsTiltPanel .label-wrap {
  246. padding-left: 12px;
  247. color: #fff;
  248. font-size: 16px;
  249. white-space: nowrap;
  250. overflow: hidden;
  251. }
  252. .marsTiltPanel .title {
  253. margin-top: 20px;
  254. padding: 0 12px 0 30px;
  255. height: 36px;
  256. line-height: 36px;
  257. position: relative;
  258. }
  259. .marsTiltPanel .title::before {
  260. content: "";
  261. position: absolute;
  262. bottom: -4px;
  263. left: 0;
  264. right: 0;
  265. z-index: 10;
  266. height: 2px;
  267. }
  268. .marsTiltPanel .label-content {
  269. padding: 15px 0;
  270. }
  271. .marsTiltPanel .data-li {
  272. padding: 4px 45px 4px 0;
  273. }
  274. .marsTiltPanel .data-label,
  275. .data-value {
  276. display: inline-block;
  277. }
  278. .marsTiltPanel .data-value {
  279. font-size: 14px;
  280. }
  281. .marsTiltPanel .label-num {
  282. margin-right: 3px;
  283. color: #f09e28;
  284. font-weight: 600;
  285. }
  286. .marsTiltPanel .label-tag {
  287. display: inline-block;
  288. position: relative;
  289. margin-right: 6px;
  290. padding: 0 6px;
  291. font-weight: 600;
  292. cursor: pointer;
  293. background-color: #909399;
  294. border-radius: 4px;
  295. }
  296. .marsTiltPanel .label-tag::after {
  297. content: attr(alt);
  298. display: inline-block;
  299. position: absolute;
  300. bottom: -22px;
  301. right: -35px;
  302. z-index: -1;
  303. padding: 2px 4px;
  304. color: #fff;
  305. font-size: 14px;
  306. background-color: #333;
  307. border-radius: 3px;
  308. opacity: 0;
  309. transition: all 0.3s ease-in;
  310. }
  311. .marsTiltPanel .label-tag:hover::after {
  312. opacity: 1;
  313. z-index: 11;
  314. }
  315. .marsTiltPanel .data-value-status-0 {
  316. background-color: #f0285c;
  317. }
  318. .marsTiltPanel .data-value-status-1 {
  319. background-color: #35b15b;
  320. }
  321. .marsTiltPanel .data-value-status-2 {
  322. background-color: #f09e28;
  323. }
  324. .marsTiltPanel .arrow {
  325. position: absolute;
  326. bottom: 0;
  327. left: 0;
  328. width: 45px;
  329. height: 2px;
  330. transform: rotate(-45deg) translate(5px, -15px);
  331. }
  332. /* 蓝色主题 */
  333. .marsTiltPanel-theme-blue .b-t,
  334. .marsTiltPanel-theme-blue .b-r,
  335. .marsTiltPanel-theme-blue .b-b,
  336. .marsTiltPanel-theme-blue .b-l,
  337. .marsTiltPanel-theme-blue .b-t-l,
  338. .marsTiltPanel-theme-blue .b-b-r {
  339. background-color: #29baf1;
  340. box-shadow: 0 0 10px 2px #29baf1;
  341. }
  342. .marsTiltPanel-theme-blue .area {
  343. background-image: linear-gradient(135deg, transparent 30px, #28bbf06c 30px, #28bbf06c 50%, transparent 50%),
  344. linear-gradient(-45deg, transparent 30px, #28bbf06c 30px, #28bbf06c 50.1%, transparent 50%);
  345. }
  346. .marsTiltPanel-theme-blue .title {
  347. background-image: linear-gradient(135deg, transparent 25px, #29baf1 25px);
  348. }
  349. .marsTiltPanel-theme-blue .arrow,
  350. .marsTiltPanel-theme-blue .title::before {
  351. background-color: #28bbf0;
  352. }
  353. /* 绿色主题 */
  354. .marsTiltPanel-theme-green .b-t,
  355. .marsTiltPanel-theme-green .b-r,
  356. .marsTiltPanel-theme-green .b-b,
  357. .marsTiltPanel-theme-green .b-l,
  358. .marsTiltPanel-theme-green .b-t-l,
  359. .marsTiltPanel-theme-green .b-b-r {
  360. background-color: #06e34a;
  361. box-shadow: 0 0 10px 2px #06e34a;
  362. }
  363. .marsTiltPanel-theme-green .area {
  364. background-image: linear-gradient(135deg, transparent 30px, #06e3486c 30px, #06e3486c 50%, transparent 50%),
  365. linear-gradient(-45deg, transparent 30px, #06e3486c 30px, #06e3486c 50.1%, transparent 50%);
  366. }
  367. .marsTiltPanel-theme-green .title {
  368. background-image: linear-gradient(135deg, transparent 25px, #06e34a 25px);
  369. }
  370. .marsTiltPanel-theme-green .arrow,
  371. .marsTiltPanel-theme-green .title::before {
  372. background-color: #06e34a;
  373. }
  374. /* 红色主题 */
  375. .marsTiltPanel-theme-red .b-t,
  376. .marsTiltPanel-theme-red .b-r,
  377. .marsTiltPanel-theme-red .b-b,
  378. .marsTiltPanel-theme-red .b-l,
  379. .marsTiltPanel-theme-red .b-t-l,
  380. .marsTiltPanel-theme-red .b-b-r {
  381. background-color: #e3064f;
  382. box-shadow: 0 0 10px 2px #e3064f;
  383. }
  384. .marsTiltPanel-theme-red .area {
  385. background-image: linear-gradient(135deg, transparent 30px, #e306506c 30px, #e306506c 50%, transparent 50%),
  386. linear-gradient(-45deg, transparent 30px, #e306506c 30px, #e306506c 50%, transparent 50%);
  387. }
  388. .marsTiltPanel-theme-red .title {
  389. background-image: linear-gradient(135deg, transparent 25px, #e3064f 25px);
  390. }
  391. .marsTiltPanel-theme-red .arrow,
  392. .marsTiltPanel-theme-red .title::before {
  393. background-color: #e3064f;
  394. }
  395. /* 黄色主题 */
  396. .marsTiltPanel-theme-e9b709 .b-t,
  397. .marsTiltPanel-theme-e9b709 .b-r,
  398. .marsTiltPanel-theme-e9b709 .b-b,
  399. .marsTiltPanel-theme-e9b709 .b-l,
  400. .marsTiltPanel-theme-e9b709 .b-t-l,
  401. .marsTiltPanel-theme-e9b709 .b-b-r {
  402. background-color: #e9b709;
  403. box-shadow: 0 0 10px 2px #e9b709;
  404. }
  405. .marsTiltPanel-theme-e9b709 .area {
  406. background-image: linear-gradient(135deg, transparent 30px, #e9b9096c 30px, #e9b9096c 50%, transparent 50%),
  407. linear-gradient(-45deg, transparent 30px, #e9b9096c 30px, #e9b9096c 50%, transparent 50%);
  408. }
  409. .marsTiltPanel-theme-e9b709 .title {
  410. background-image: linear-gradient(135deg, transparent 25px, #e9b709 25px);
  411. }
  412. .marsTiltPanel-theme-e9b709 .arrow,
  413. .marsTiltPanel-theme-e9b709 .title::before {
  414. background-color: #e9b709;
  415. }
  416. /**************** 部分公共样式,如选中样式、动画等 ****************/
  417. .animation-spaceInDown {
  418. animation-duration: 1s;
  419. animation-fill-mode: both;
  420. animation-name: spaceInDown;
  421. }
  422. @keyframes spaceInDown {
  423. 0% {
  424. opacity: 0;
  425. transform-origin: 0% 100%;
  426. transform: scale(0.2) translate(0, 200%);
  427. }
  428. 100% {
  429. opacity: 1;
  430. transform-origin: 0% 100%;
  431. transform: scale(1) translate(0, 0);
  432. }
  433. }