common.scss 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  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. .PhotoSlider__Wrapper {
  134. z-index: 3000 !important;
  135. }
  136. .coord-box{
  137. color: whitesmoke;
  138. font-size: 14px;
  139. z-index: 100;
  140. text-align: center;
  141. padding:5px;
  142. border: 1px #192C30 solid;
  143. border-radius: 5px;
  144. background-color: #3E5B7850;
  145. }
  146. .title-box{
  147. height: 40px;
  148. padding-top: 10px;
  149. }
  150. .title-box .line{
  151. display: inline;
  152. width: 2px;
  153. margin-top: 2px;
  154. background: #4CD9B6;
  155. }
  156. .title-box .text{
  157. padding-left: 10px;
  158. display: inline;
  159. font-weight: bold;
  160. color: #494e55;
  161. a{
  162. font-weight: bold;
  163. color: #494e55;
  164. text-decoration: none;
  165. }
  166. }
  167. .title-box .buttons{
  168. float: right;
  169. width: 50%;
  170. display: flex;
  171. flex-direction: row-reverse;
  172. }
  173. .imgNoClick{
  174. -webkit-user-drag: none;
  175. -khtml-user-drag: none;
  176. -moz-user-drag: none;
  177. -o-user-drag: none;
  178. user-drag: none;
  179. }
  180. .tooltip1{
  181. width: 150px;
  182. height: 90px;
  183. background: rgba(3,44,57,0.9);
  184. border-radius: 4px;
  185. border: 1px solid rgba(81,233,240,0.3);
  186. display: flex;
  187. flex-direction: column;
  188. align-items: center;
  189. div{
  190. color: #FFFFFF;
  191. width: 80%;
  192. font-size: 14px;
  193. height: 30px;
  194. line-height: 30px;
  195. }
  196. }
  197. .my-dialog{
  198. background-color: #F4F4F400;
  199. }
  200. //隐藏高德地图logo和版权
  201. .amap-logo ,.amap-copyright{
  202. display: none;
  203. opacity: 0 !important;
  204. }
  205. .chart_box{
  206. position: absolute;
  207. top:80px;
  208. bottom: 0px;
  209. left: 20px;
  210. right: 20px;
  211. display: flex;
  212. flex-direction: column;
  213. justify-content: space-around;
  214. .chart_row1{
  215. box-sizing: border-box;
  216. padding-top: 19px;
  217. height: 33%;
  218. display: flex;
  219. justify-content: space-between;
  220. }
  221. .chart_row2{
  222. height: 33%;
  223. display: flex;
  224. justify-content: space-between;
  225. }
  226. .chart_row3{
  227. height: 33%;
  228. display: flex;
  229. justify-content: space-between;
  230. }
  231. }
  232. .chart_col1{
  233. width: 23%;
  234. height: 100%;
  235. display: flex;
  236. flex-direction: row;
  237. justify-content: center;
  238. position: relative;
  239. }
  240. .chart_col2{
  241. width: 48%;
  242. height: 100%;
  243. display: flex;
  244. flex-direction: row;
  245. justify-content: center;
  246. position: relative;
  247. }
  248. ::-webkit-scrollbar {
  249. display: block !important;
  250. /* 滚动条整体样式 */
  251. height: 4px;
  252. width: 4px;
  253. }
  254. ::-webkit-scrollbar-thumb {
  255. /* 滚动条里面小方块 */
  256. background: #444444;
  257. border-radius: 6px;
  258. }
  259. ::-webkit-scrollbar-track {
  260. /* 滚动条里面轨道 */
  261. background: #ededed00;
  262. }
  263. .my-dialog{
  264. background-color: #F4F4F400;
  265. }
  266. .green-btn{
  267. color:#ffffff;
  268. font-weight: bold;
  269. background-color: #13C4CD;
  270. border-color: #13C4CD50;
  271. }
  272. .green-tabs{
  273. .el-tabs{
  274. --el-tabs-header-height:25px;
  275. }
  276. .el-tabs__item{
  277. padding-right: 0px;
  278. color:#00FFF070;
  279. }
  280. .el-tabs__nav{
  281. justify-content: flex-start;
  282. }
  283. .el-tabs__nav-wrap::after{
  284. background-color: #51E9F030;
  285. }
  286. .el-tabs__active-bar{
  287. background-color:#00FFF0;
  288. }
  289. .el-tabs__item.is-active{
  290. color:#00FFF0;
  291. }
  292. }
  293. .custom_btn1{
  294. width: 80px;
  295. height: 36px;
  296. line-height: 36px;
  297. text-align: center;
  298. background-image: url("@/assets/img/mini_btn_bg.png");
  299. background-size: 100% 100%;
  300. border-radius: 4px;
  301. cursor:pointer;
  302. color: #ffffff;
  303. }
  304. .custom_btn2{
  305. width: 80px;
  306. height: 36px;
  307. background: #13C4CD;
  308. border-radius: 4px;
  309. line-height: 36px;
  310. text-align: center;
  311. cursor:pointer;
  312. color: #ffffff;
  313. }
  314. .smallpagination{
  315. --el-pagination-font-size: 14px;
  316. --el-pagination-bg-color: none;
  317. --el-pagination-text-color: none;
  318. --el-pagination-border-radius: 2px;
  319. --el-pagination-button-color: none;
  320. --el-pagination-button-width: 32px;
  321. --el-pagination-button-height: 32px;
  322. --el-pagination-button-disabled-bg-color:none;
  323. --el-pagination-button-disabled-color:none;
  324. --el-pagination-button-bg-color: none;
  325. --el-pagination-hover-color: #00FFF0;;
  326. --el-pagination-font-size-small: 12px;
  327. --el-pagination-button-width-small: 24px;
  328. --el-pagination-button-height-small: 24px;
  329. --el-pagination-item-gap: 16px;
  330. }
  331. .m-2{
  332. padding: 0px;
  333. width: 25px;
  334. height: 25px;
  335. text-align: center;
  336. }
  337. .ol-zoom{
  338. /*隐藏地图左上角的+-号*/
  339. display: none;
  340. }
  341. @font-face {
  342. font-family: 'PangMenZhengDao'; /* 定义字体名称 */
  343. src: url('@/assets/font/PangMenZhengDao.TTF') format('truetype');
  344. font-weight: normal; /* 字体粗细 */
  345. font-style: normal; /* 字体风格 */
  346. }
  347. @font-face {
  348. font-family: 'SOURCEHANTIFINE'; /* 定义字体名称 */
  349. src: url('@/assets/font/SOURCEHANSANSCN-NORMAL.OTF') format('truetype');
  350. font-weight: normal; /* 字体粗细 */
  351. font-style: normal; /* 字体风格 */
  352. }
  353. @font-face {
  354. font-family: 'HANTI'; /* 定义字体名称 */
  355. src: url('@/assets/font/HANTI.TTF') format('truetype');
  356. font-weight: normal; /* 字体粗细 */
  357. font-style: normal; /* 字体风格 */
  358. }
  359. // 图表右上角
  360. .common-select {
  361. min-width: 46px;
  362. width: 100%;
  363. .el-select__wrapper {
  364. background: none;
  365. box-shadow: 0 0 0 1px rgba(102, 102, 102, 0.4) inset;
  366. &.is-hovering:not(.is-focused) {
  367. box-shadow: 0 0 0 1px rgba(102, 102, 102, 0.4) inset;
  368. }
  369. .el-select__placeholder {
  370. color: #fff;
  371. display: contents;
  372. }
  373. }
  374. }
  375. // 暗色主题dialog自定义样式
  376. .dialog-dark{
  377. .el-dialog{
  378. background: #232323;
  379. border: 1px solid #666666;
  380. border-radius: 8px;
  381. }
  382. }
  383. // 暗色主题table自定义样式
  384. .table-dark{
  385. --el-table-border-color:#444444;
  386. --el-table-border:1px solid #444444;
  387. border-radius: 4px;
  388. --el-table-row-hover-bg-color:rgba(68, 68, 68,0.4);
  389. th.el-table__cell{
  390. background-color: #2c2c2c;
  391. }
  392. tr{
  393. background-color: #2c2c2c;
  394. color: rgba(255 ,255 ,255 ,0.6);
  395. }
  396. td.el-table__cell, .el-table th.el-table__cell.is-leaf{
  397. border-bottom: 1px solid #444444;
  398. color: #ffffff;
  399. }
  400. .el-table__body-wrapper{
  401. background-color: #2c2c2c;
  402. .el-table__empty-text{
  403. color: #fff;
  404. }
  405. }
  406. }
  407. //element 全局颜色修改
  408. .el-button{
  409. --el-button-border-color:rgba(255, 255, 255, 0.4);
  410. --el-button-bg-color:none;
  411. --el-button-hover-bg-color:none;
  412. --el-button-hover-border-color:rgba(255, 255, 255, 0.4);
  413. --el-button-hover-text-color:#fff;
  414. --el-button-active-border-color:rgba(255, 255, 255, 0.4);
  415. color: #fff;
  416. }
  417. .el-button--primary{
  418. --el-button-border-color:#2199F8;
  419. --el-button-bg-color:#2199F8;
  420. --el-button-hover-bg-color:#2199F8;
  421. --el-button-hover-border-color:#2199F8;
  422. --el-button-hover-text-color:#fff;
  423. --el-button-active-border-color:#2199F8;
  424. --el-button-active-bg-color:#2199F8;
  425. }