index.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. // 相对路径
  2. @import '@/assets/scss/reset';
  3. @import '@/assets/scss/variables';
  4. @import '@/assets/scss/mixins';
  5. @import '@/assets/scss/px-to-rem';
  6. @import '@/assets/scss/map';
  7. html,
  8. body {
  9. font: 14px/1.5 'Microsoft YaHei', tahoma, arial, Hiragino Sans GB, '\5b8b\4f53', sans-serif;
  10. background-color: #f3f3f3;
  11. height: 100%;
  12. }
  13. #nprogress {
  14. position: relative;
  15. z-index: 3000;
  16. }
  17. .clearfix {
  18. display: inline-block;
  19. &::after {
  20. display: block;
  21. content: '';
  22. height: 0;
  23. line-height: 0;
  24. clear: both;
  25. visibility: hidden;
  26. }
  27. }
  28. .ellipsis {
  29. overflow: hidden;
  30. white-space: nowrap;
  31. text-overflow: ellipsis;
  32. }
  33. .el-select-dropdown {
  34. // z-index: 3000 !important;
  35. }
  36. .el-textarea__inner {
  37. font-family: inherit;
  38. }
  39. .el-table .cell,
  40. .el-table th div {
  41. // TODO: FIXME: .el-table .cell, th div 均设置了text-overflow: ellipsis, 部分场景(table-column为非文字slot,如按钮,checkbox,且没有设置宽度)在窗口宽度较小时会出现 `...`
  42. text-overflow: clip !important;
  43. }
  44. input:-ms-input-placeholder {
  45. color: #c0c4cc;
  46. }
  47. .el-message-box {
  48. .el-message-box__title {
  49. font-size: 16px;
  50. }
  51. }
  52. $spaceamounts: (0, 2, 5, 10, 15, 20);
  53. $sides: (
  54. '': 'all',
  55. 't': 'top',
  56. 'b': 'bottom',
  57. 'l': 'left',
  58. 'r': 'right'
  59. );
  60. @each $space in $spaceamounts {
  61. @each $prefix, $value in $sides {
  62. $property: if($prefix == '', '', -#{$value});
  63. .m#{$prefix}#{$space} {
  64. margin#{$property}: #{$space}px !important;
  65. }
  66. .p#{$prefix}#{$space} {
  67. padding#{$property}: #{$space}px !important;
  68. }
  69. }
  70. }
  71. .mg-t-20 {
  72. margin-top: 20px !important;
  73. }
  74. .mg-l-10 {
  75. margin-left: 10px !important;
  76. }
  77. .el-dialog {
  78. z-index: 4001 !important;
  79. .el-dialog__body {
  80. padding: 10px 15px;
  81. }
  82. }
  83. html#baidu-map-hack {
  84. height: auto;
  85. overflow: auto;
  86. body {
  87. height: auto;
  88. #app {
  89. height: auto;
  90. #layout {
  91. #nav {
  92. position: fixed;
  93. left: 0;
  94. right: 0;
  95. top: 0;
  96. z-index: 2999;
  97. }
  98. .main-wrapper {
  99. padding-top: 60px;
  100. height: auto !important;
  101. #sidebar {
  102. position: fixed;
  103. width: $sidebarMainMenuWidth;
  104. left: 0;
  105. bottom: 0;
  106. top: 60px;
  107. z-index: 10;
  108. &.expand {
  109. width: $sidebarWidth;
  110. & + .main {
  111. margin-left: $sidebarWidth;
  112. }
  113. }
  114. }
  115. .main {
  116. margin-left: $sidebarMainMenuWidth;
  117. }
  118. }
  119. }
  120. }
  121. }
  122. }
  123. .BMap_cpyCtrl,
  124. .anchorBL {
  125. display: none !important;
  126. }
  127. ::-webkit-scrollbar {
  128. width: 4px;
  129. height: 5px;
  130. }
  131. ::-webkit-scrollbar-track-piece {
  132. background-color: rgba(0, 0, 0, 0.2);
  133. -webkit-border-radius: 6px;
  134. }
  135. ::-webkit-scrollbar-thumb:vertical {
  136. height: 5px;
  137. background-color: rgba(125, 125, 125, 0.7);
  138. -webkit-border-radius: 6px;
  139. }
  140. ::-webkit-scrollbar-thumb:horizontal {
  141. width: 5px;
  142. background-color: rgba(125, 125, 125, 0.7);
  143. -webkit-border-radius: 6px;
  144. }
  145. @keyframes flash {
  146. 0% {
  147. opacity: 1;
  148. }
  149. 50% {
  150. opacity: 0;
  151. }
  152. 100% {
  153. opacity: 1;
  154. }
  155. }
  156. .cameras-notification.el-notification {
  157. width: 300px;
  158. padding: 8px 25px 8px 10px;
  159. .el-notification__group {
  160. margin-left: 8px;
  161. }
  162. .el-icon-warning {
  163. color: #f56c6c;
  164. }
  165. .el-notification__closeBtn {
  166. top: 8px;
  167. right: 8px;
  168. }
  169. .el-notification__icon {
  170. height: 14px;
  171. width: 14px;
  172. font-size: 14px;
  173. line-height: 21px;
  174. }
  175. .el-notification__title {
  176. font-size: 14px;
  177. font-weight: normal;
  178. color: #606266;
  179. }
  180. .el-notification__content {
  181. margin: 0;
  182. font-size: 14px;
  183. p {
  184. // @include ellipsis;
  185. width: 220px;
  186. .link {
  187. padding-left: 8px;
  188. color: #409eff;
  189. cursor: pointer;
  190. &:hover {
  191. opacity: 0.8;
  192. }
  193. &.active {
  194. opacity: 1;
  195. }
  196. }
  197. }
  198. }
  199. }
  200. .text-link {
  201. padding-right: 8px;
  202. color: #409eff;
  203. cursor: pointer;
  204. &.disabled {
  205. cursor: not-allowed;
  206. color: #909399;
  207. }
  208. &.danger {
  209. color: $--color-danger;
  210. }
  211. &.warning {
  212. color: $--color-warning;
  213. }
  214. &:hover {
  215. opacity: 0.8;
  216. }
  217. &.active {
  218. opacity: 1;
  219. }
  220. }
  221. .u-popper-select {
  222. background-color: rgba(79, 159, 255, 0.3);
  223. border-color: #4f9fff;
  224. .el-select-dropdown__item {
  225. color: #fff;
  226. padding-left: px-to-rem(10);
  227. }
  228. .el-select-dropdown__item.hover,
  229. .el-select-dropdown__item:hover {
  230. background-color: rgba(79, 159, 255, 0.4);
  231. color: #fff;
  232. }
  233. }
  234. .f-select .el-select-dropdown__item {
  235. padding: px-to-rem(0) px-to-rem(12) !important;
  236. &.selected {
  237. color: #ff6a6c;
  238. background-color: #fff0f0;
  239. }
  240. &.hover {
  241. background-color: #fff0f0;
  242. }
  243. }
  244. .v-date-picker {
  245. .el-date-table td.end-date span,
  246. .el-date-table td.start-date span {
  247. background-color: #ff6a6c;
  248. }
  249. .el-date-table td.in-range div,
  250. .el-date-table td.in-range div:hover,
  251. .el-date-table.is-week-mode .el-date-table__row.current div,
  252. .el-date-table.is-week-mode .el-date-table__row:hover div {
  253. background-color: #fff0f0;
  254. }
  255. .el-date-table td.today span,
  256. .el-select-dropdown__item.selected {
  257. color: #ff6a6c;
  258. }
  259. }
  260. .v-pageination {
  261. .el-select-dropdown__item.selected {
  262. color: #ff6a6c;
  263. }
  264. }
  265. .marsGreenGradientPnl {
  266. height: 20px;
  267. background: #172537;
  268. border-radius: 4px;
  269. color: #e8f2fe;
  270. font-size: 12px;
  271. display: flex;
  272. align-items: center;
  273. padding: 0 6px;
  274. }
  275. .art-video-player {
  276. width: 100% !important;
  277. }