common.scss 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. html {
  2. width: 100%;
  3. height: 100%;
  4. background: #fff;
  5. transition: color 300ms, background-color 300ms;
  6. &.dark {
  7. filter: contrast(100%) invert(100%);
  8. img {
  9. filter: hue-rotate(180deg);
  10. }
  11. }
  12. }
  13. body {
  14. width: 100%;
  15. height: 100%;
  16. line-height: 24px;
  17. font: 14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
  18. }
  19. img {
  20. vertical-align: middle;
  21. }
  22. h1, h2, h3, h4, h5, h6 {
  23. font-weight: 400;
  24. }
  25. .ve_header_row_class_name,
  26. .el-table__fixed-right-patch {
  27. background: $main-bg-color !important;
  28. }
  29. .ve_header_cell_class_name {
  30. background: $main-bg-color !important;
  31. }
  32. .ve_cell_class_name {
  33. background: $base-color !important;
  34. border-color: $base-color !important;
  35. }
  36. .ve_row_class_name {
  37. background: $base-color !important;
  38. }
  39. .ve_p_10 {
  40. padding: 10px;
  41. }
  42. //滚动条的宽度
  43. ::-webkit-scrollbar {
  44. width: 6px;
  45. height: 6px;
  46. }
  47. //滚动条的滑块
  48. ::-webkit-scrollbar-thumb {
  49. background-color: rgba(144, 147, 153, 0.3);
  50. border-radius: 3px;
  51. }
  52. .ve_select_option_slot {
  53. font-size: 12px;
  54. float: left;
  55. line-height: initial;
  56. padding-bottom: 10px;
  57. opacity: 0.7;
  58. }
  59. .ve_option_box {
  60. width: calc(50% - 132px);
  61. }
  62. .size-watch {
  63. width: 100%;
  64. height: 100%;
  65. // display: none;
  66. position: absolute;
  67. top: 0;
  68. z-index: -1;
  69. visibility: hidden;
  70. margin: 0;
  71. padding: 0;
  72. border: 0;
  73. }
  74. .ve_flex_col {
  75. display: flex;
  76. flex-direction: column;
  77. height: calc(100vh - #{$nav-height} - 80px);
  78. }
  79. .no-events{
  80. -webkit-pointer-events: none;
  81. -moz-pointer-events: none;
  82. -ms-pointer-events: none;
  83. -o-pointer-events: none;
  84. pointer-events: none;
  85. }
  86. .yes-events{
  87. -webkit-pointer-events: auto;
  88. -moz-pointer-events: auto;
  89. -ms-pointer-events: auto;
  90. -o-pointer-events: auto;
  91. pointer-events: auto;
  92. text-decoration: none;
  93. }
  94. .yes-events input{
  95. -webkit-pointer-events: auto;
  96. -moz-pointer-events: auto;
  97. -ms-pointer-events: auto;
  98. -o-pointer-events: auto;
  99. pointer-events: auto;
  100. text-decoration: none;
  101. }
  102. .pure-events{
  103. -webkit-pointer-events: auto;
  104. -moz-pointer-events: auto;
  105. -ms-pointer-events: auto;
  106. -o-pointer-events: auto;
  107. pointer-events: auto;
  108. }
  109. .inline{
  110. display: inline;
  111. }
  112. .general-font1{
  113. font-family:"microsoft yahei",Georgia,Serif;
  114. color: whitesmoke;
  115. }
  116. .general-font2{
  117. font-family:"KaiTi",Georgia,Serif;
  118. color: whitesmoke;
  119. }
  120. .label-bg{
  121. background-color: #ffffff50;
  122. border-radius: 5px;
  123. }
  124. .cursor-default{
  125. cursor: default;
  126. }
  127. .cursor-pointer{
  128. cursor: pointer;
  129. }
  130. div{
  131. font-family: PingFangSC-Medium, PingFang SC;
  132. }
  133. .coord-box{
  134. color: whitesmoke;
  135. font-size: 14px;
  136. z-index: 100;
  137. text-align: center;
  138. padding:5px;
  139. border: 1px #192C30 solid;
  140. border-radius: 5px;
  141. background-color: #3E5B7850;
  142. }
  143. .title-box{
  144. height: 40px;
  145. padding-top: 10px;
  146. }
  147. .title-box .line{
  148. display: inline;
  149. width: 2px;
  150. margin-top: 2px;
  151. background: #4CD9B6;
  152. }
  153. .title-box .text{
  154. padding-left: 10px;
  155. display: inline;
  156. font-weight: bold;
  157. color: #494e55;
  158. a{
  159. font-weight: bold;
  160. color: #494e55;
  161. text-decoration: none;
  162. }
  163. }
  164. .title-box .buttons{
  165. float: right;
  166. width: 50%;
  167. display: flex;
  168. flex-direction: row-reverse;
  169. }
  170. .imgNoClick{
  171. -webkit-user-drag: none;
  172. -khtml-user-drag: none;
  173. -moz-user-drag: none;
  174. -o-user-drag: none;
  175. user-drag: none;
  176. }
  177. .tooltip1{
  178. width: 150px;
  179. height: 90px;
  180. background: rgba(3,44,57,0.9);
  181. border-radius: 4px;
  182. border: 1px solid rgba(81,233,240,0.3);
  183. display: flex;
  184. flex-direction: column;
  185. align-items: center;
  186. div{
  187. color: #FFFFFF;
  188. width: 80%;
  189. font-size: 14px;
  190. height: 30px;
  191. line-height: 30px;
  192. }
  193. }
  194. .my-dialog{
  195. background-color: #F4F4F400;
  196. }
  197. .chart_box{
  198. position: absolute;
  199. top:80px;
  200. bottom: 0px;
  201. left: 20px;
  202. right: 20px;
  203. display: flex;
  204. flex-direction: column;
  205. justify-content: space-around;
  206. .chart_row1{
  207. box-sizing: border-box;
  208. padding-top: 19px;
  209. height: 33%;
  210. display: flex;
  211. justify-content: space-between;
  212. }
  213. .chart_row2{
  214. height: 33%;
  215. display: flex;
  216. justify-content: space-between;
  217. }
  218. .chart_row3{
  219. height: 33%;
  220. display: flex;
  221. justify-content: space-between;
  222. }
  223. }
  224. .chart_col1{
  225. width: 23%;
  226. height: 100%;
  227. display: flex;
  228. flex-direction: row;
  229. justify-content: center;
  230. position: relative;
  231. }
  232. .chart_col2{
  233. width: 48%;
  234. height: 100%;
  235. display: flex;
  236. flex-direction: row;
  237. justify-content: center;
  238. position: relative;
  239. }
  240. ::-webkit-scrollbar {
  241. display: block !important;
  242. /* 滚动条整体样式 */
  243. height: 4px;
  244. width: 4px;
  245. }
  246. ::-webkit-scrollbar-thumb {
  247. /* 滚动条里面小方块 */
  248. background: #444444;
  249. border-radius: 6px;
  250. }
  251. ::-webkit-scrollbar-track {
  252. /* 滚动条里面轨道 */
  253. background: #ededed00;
  254. }
  255. .my-dialog{
  256. background-color: #F4F4F400;
  257. }
  258. .green-btn{
  259. color:#ffffff;
  260. font-weight: bold;
  261. background-color: #13C4CD;
  262. border-color: #13C4CD50;
  263. }
  264. .green-tabs{
  265. .el-tabs{
  266. --el-tabs-header-height:25px;
  267. }
  268. .el-tabs__item{
  269. padding-right: 0px;
  270. color:#00FFF070;
  271. }
  272. .el-tabs__nav{
  273. justify-content: flex-start;
  274. }
  275. .el-tabs__nav-wrap::after{
  276. background-color: #51E9F030;
  277. }
  278. .el-tabs__active-bar{
  279. background-color:#00FFF0;
  280. }
  281. .el-tabs__item.is-active{
  282. color:#00FFF0;
  283. }
  284. }
  285. .custom_btn1{
  286. width: 80px;
  287. height: 36px;
  288. line-height: 36px;
  289. text-align: center;
  290. background-image: url("@/assets/img/mini_btn_bg.png");
  291. background-size: 100% 100%;
  292. border-radius: 4px;
  293. cursor:pointer;
  294. color: #ffffff;
  295. }
  296. .custom_btn2{
  297. width: 80px;
  298. height: 36px;
  299. background: #13C4CD;
  300. border-radius: 4px;
  301. line-height: 36px;
  302. text-align: center;
  303. cursor:pointer;
  304. color: #ffffff;
  305. }
  306. .smallpagination{
  307. --el-pagination-font-size: 14px;
  308. --el-pagination-bg-color: none;
  309. --el-pagination-text-color: none;
  310. --el-pagination-border-radius: 2px;
  311. --el-pagination-button-color: none;
  312. --el-pagination-button-width: 32px;
  313. --el-pagination-button-height: 32px;
  314. --el-pagination-button-disabled-bg-color:none;
  315. --el-pagination-button-disabled-color:none;
  316. --el-pagination-button-bg-color: none;
  317. --el-pagination-hover-color: #00FFF0;;
  318. --el-pagination-font-size-small: 12px;
  319. --el-pagination-button-width-small: 24px;
  320. --el-pagination-button-height-small: 24px;
  321. --el-pagination-item-gap: 16px;
  322. }
  323. .m-2{
  324. padding: 0px;
  325. width: 25px;
  326. height: 25px;
  327. text-align: center;
  328. }
  329. .ol-zoom{
  330. /*隐藏地图左上角的+-号*/
  331. display: none;
  332. }
  333. @font-face {
  334. font-family: 'PangMenZhengDao'; /* 定义字体名称 */
  335. src: url('@/assets/font/PangMenZhengDao.TTF') format('truetype');
  336. font-weight: normal; /* 字体粗细 */
  337. font-style: normal; /* 字体风格 */
  338. }
  339. @font-face {
  340. font-family: 'SOURCEHANTIFINE'; /* 定义字体名称 */
  341. src: url('@/assets/font/SOURCEHANSANSCN-NORMAL.OTF') format('truetype');
  342. font-weight: normal; /* 字体粗细 */
  343. font-style: normal; /* 字体风格 */
  344. }
  345. @font-face {
  346. font-family: 'HANTI'; /* 定义字体名称 */
  347. src: url('@/assets/font/HANTI.TTF') format('truetype');
  348. font-weight: normal; /* 字体粗细 */
  349. font-style: normal; /* 字体风格 */
  350. }
  351. // 图表右上角
  352. .common-select {
  353. min-width: 46px;
  354. width: 100%;
  355. .el-select__wrapper {
  356. background: none;
  357. box-shadow: 0 0 0 1px rgba(102, 102, 102, 0.4) inset;
  358. &.is-hovering:not(.is-focused) {
  359. box-shadow: 0 0 0 1px rgba(102, 102, 102, 0.4) inset;
  360. }
  361. .el-select__placeholder {
  362. color: #fff;
  363. display: contents;
  364. }
  365. }
  366. }
  367. // 暗色主题dialog自定义样式
  368. .dialog-dark{
  369. .el-dialog{
  370. background: #232323;
  371. border: 1px solid #666666;
  372. border-radius: 8px;
  373. }
  374. }
  375. // 暗色主题table自定义样式
  376. .table-dark{
  377. --el-table-border-color:#444444;
  378. --el-table-border:1px solid #444444;
  379. border-radius: 4px;
  380. --el-table-row-hover-bg-color:rgba(68, 68, 68,0.4);
  381. th.el-table__cell{
  382. background-color: #2c2c2c;
  383. }
  384. tr{
  385. background-color: #2c2c2c;
  386. color: rgba(255 ,255 ,255 ,0.6);
  387. }
  388. td.el-table__cell, .el-table th.el-table__cell.is-leaf{
  389. border-bottom: 1px solid #444444;
  390. color: #ffffff;
  391. }
  392. .el-table__body-wrapper{
  393. background-color: #2c2c2c;
  394. .el-table__empty-text{
  395. color: #fff;
  396. }
  397. }
  398. }
  399. //element 全局颜色修改
  400. .el-button{
  401. --el-button-border-color:rgba(255, 255, 255, 0.4);
  402. --el-button-bg-color:none;
  403. --el-button-hover-bg-color:none;
  404. --el-button-hover-border-color:rgba(255, 255, 255, 0.4);
  405. --el-button-hover-text-color:#fff;
  406. --el-button-active-border-color:rgba(255, 255, 255, 0.4);
  407. color: #fff;
  408. }
  409. .el-button--primary{
  410. --el-button-border-color:#2199F8;
  411. --el-button-bg-color:#2199F8;
  412. --el-button-hover-bg-color:#2199F8;
  413. --el-button-hover-border-color:#2199F8;
  414. --el-button-hover-text-color:#fff;
  415. --el-button-active-border-color:#2199F8;
  416. --el-button-active-bg-color:#2199F8;
  417. }