app.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. /* 初始化样式
  2. ------------------------------- */
  3. * {
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. outline: none !important;
  8. }
  9. :root {
  10. --next-color-white: #ffffff;
  11. --next-bg-main-color: #f8f8f8;
  12. --next-bg-color: #f5f5ff;
  13. --next-border-color-light: #f1f2f3;
  14. --next-color-primary-lighter: #ecf5ff;
  15. --next-color-success-lighter: #f0f9eb;
  16. --next-color-warning-lighter: #fdf6ec;
  17. --next-color-danger-lighter: #fef0f0;
  18. --next-color-dark-hover: #0000001a;
  19. --next-color-menu-hover: rgba(0, 0, 0, 0.2);
  20. --next-color-user-hover: rgba(0, 0, 0, 0.04);
  21. --next-color-seting-main: #e9eef3;
  22. --next-color-seting-aside: #d3dce6;
  23. --next-color-seting-header: #b3c0d1;
  24. }
  25. html,
  26. body,
  27. #app {
  28. margin: 0;
  29. padding: 0;
  30. width: 100%;
  31. height: 100%;
  32. color: rgba(0, 0, 0, 0.88);
  33. font-size: 16px;
  34. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  35. font-weight: 400;
  36. -webkit-font-smoothing: antialiased;
  37. -webkit-tap-highlight-color: transparent;
  38. background-color: var(--next-bg-main-color);
  39. overflow: hidden;
  40. position: relative;
  41. --vxe-ui-font-primary-color: #165DFF;
  42. }
  43. /* 主布局样式
  44. ------------------------------- */
  45. .layout-container {
  46. width: 100%;
  47. height: 100%;
  48. .layout-pd {
  49. padding: 15px !important;
  50. }
  51. .layout-flex {
  52. display: flex;
  53. flex-direction: column;
  54. flex: 1;
  55. height: 100%;
  56. }
  57. .layout-aside {
  58. background: var(--next-bg-menuBar);
  59. //background: #EBF1F5;
  60. box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
  61. height: inherit;
  62. position: relative;
  63. z-index: 1;
  64. display: flex;
  65. flex-direction: column;
  66. overflow-x: hidden !important;
  67. .el-scrollbar__view {
  68. overflow: hidden;
  69. }
  70. }
  71. .layout-header {
  72. padding: 0 !important;
  73. height: auto !important;
  74. }
  75. .layout-main {
  76. padding: 0 !important;
  77. overflow: hidden;
  78. width: 100%;
  79. //background-color: var(--next-bg-main-color);
  80. background-color: #F4F5FC;
  81. display: flex;
  82. flex-direction: column;
  83. // 内层 el-scrollbar样式,用于界面高度自适应(main.vue)
  84. .layout-main-scroll {
  85. @extend .layout-flex;
  86. .layout-parent {
  87. @extend .layout-flex;
  88. position: relative;
  89. }
  90. }
  91. }
  92. // 用于界面高度自适应
  93. .layout-padding {
  94. @extend .layout-pd;
  95. position: absolute;
  96. left: 0;
  97. top: 0;
  98. height: 100%;
  99. overflow: hidden;
  100. @extend .layout-flex;
  101. &-auto {
  102. height: inherit;
  103. @extend .layout-flex;
  104. }
  105. &-view {
  106. background: var(--el-color-white);
  107. width: 100%;
  108. height: 100%;
  109. border-radius: 4px;
  110. border: 1px solid var(--el-border-color-light, #ebeef5);
  111. overflow: hidden;
  112. }
  113. }
  114. // 用于界面高度自适应,主视图区 main 的内边距,用于 iframe
  115. .layout-padding-unset {
  116. padding: 0 !important;
  117. &-view {
  118. border-radius: 0 !important;
  119. border: none !important;
  120. }
  121. }
  122. // 用于设置 iframe loading 时的高度(loading 垂直居中显示)
  123. .layout-iframe {
  124. .el-loading-parent--relative {
  125. height: 100%;
  126. }
  127. }
  128. .el-scrollbar {
  129. width: 100%;
  130. }
  131. .layout-el-aside-br-color {
  132. border-right: 1px solid var(--el-border-color-light, #ebeef5);
  133. }
  134. // pc端左侧导航样式
  135. .layout-aside-pc-220 {
  136. width: 220px !important;
  137. transition: width 0.3s ease;
  138. }
  139. .layout-aside-pc-64 {
  140. width: 64px !important;
  141. transition: width 0.3s ease;
  142. }
  143. .layout-aside-pc-1 {
  144. width: 1px !important;
  145. transition: width 0.3s ease;
  146. }
  147. // 手机端左侧导航样式
  148. .layout-aside-mobile {
  149. position: fixed;
  150. top: 0;
  151. left: -220px;
  152. width: 220px;
  153. z-index: 9999999;
  154. }
  155. .layout-aside-mobile-close {
  156. left: -220px;
  157. transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
  158. }
  159. .layout-aside-mobile-open {
  160. left: 0;
  161. transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  162. }
  163. .layout-aside-mobile-mode {
  164. position: fixed;
  165. top: 0;
  166. right: 0;
  167. bottom: 0;
  168. left: 0;
  169. height: 100%;
  170. background-color: rgba(0, 0, 0, 0.5);
  171. z-index: 9999998;
  172. animation: error-img 0.3s;
  173. }
  174. .layout-mian-height-50 {
  175. height: calc(100vh - 50px);
  176. }
  177. .layout-columns-warp {
  178. flex: 1;
  179. display: flex;
  180. overflow: hidden;
  181. }
  182. .layout-hide {
  183. display: none;
  184. }
  185. }
  186. /* element plus 全局样式
  187. ------------------------------- */
  188. .layout-breadcrumb-seting {
  189. .el-divider {
  190. background-color: rgb(230, 230, 230);
  191. }
  192. }
  193. /* nprogress 进度条跟随主题颜色
  194. ------------------------------- */
  195. #nprogress {
  196. .bar {
  197. background: var(--el-color-primary) !important;
  198. z-index: 9999999 !important;
  199. }
  200. }
  201. /* flex 弹性布局
  202. ------------------------------- */
  203. .flex {
  204. display: flex;
  205. }
  206. .flex-auto {
  207. flex: 1;
  208. overflow: hidden;
  209. }
  210. .flex-center {
  211. @extend .flex;
  212. flex-direction: column;
  213. width: 100%;
  214. overflow: hidden;
  215. }
  216. .flex-margin {
  217. margin: auto;
  218. }
  219. .flex-warp {
  220. display: flex;
  221. flex-wrap: wrap;
  222. align-content: flex-start;
  223. margin: 0 -5px;
  224. .flex-warp-item {
  225. padding: 5px;
  226. .flex-warp-item-box {
  227. width: 100%;
  228. height: 100%;
  229. }
  230. }
  231. }
  232. /* cursor 鼠标形状
  233. ------------------------------- */
  234. // 默认
  235. .cursor-default {
  236. cursor: default !important;
  237. }
  238. // 帮助
  239. .cursor-help {
  240. cursor: help !important;
  241. }
  242. // 手指
  243. .cursor-pointer {
  244. cursor: pointer !important;
  245. }
  246. // 移动
  247. .cursor-move {
  248. cursor: move !important;
  249. }
  250. /* 宽高 100%
  251. ------------------------------- */
  252. .w100 {
  253. width: 100% !important;
  254. }
  255. .h100 {
  256. height: 100% !important;
  257. }
  258. .vh100 {
  259. height: 100vh !important;
  260. }
  261. .max100vh {
  262. max-height: 100vh !important;
  263. }
  264. .min100vh {
  265. min-height: 100vh !important;
  266. }
  267. /* 颜色值
  268. ------------------------------- */
  269. .color-primary {
  270. //color: var(--el-color-primary);
  271. color: #3875F6;
  272. }
  273. .color-success {
  274. color: var(--el-color-success);
  275. }
  276. .color-warning {
  277. color: var(--el-color-warning);
  278. }
  279. .color-danger {
  280. color: var(--el-color-danger);
  281. }
  282. .color-info {
  283. color: var(--el-color-info);
  284. }
  285. /* 字体大小全局样式
  286. ------------------------------- */
  287. @for $i from 10 through 32 {
  288. .font#{$i} {
  289. font-size: #{$i}px !important;
  290. }
  291. }
  292. /* 外边距、内边距全局样式
  293. ------------------------------- */
  294. @for $i from 1 through 35 {
  295. .mt#{$i} {
  296. margin-top: #{$i}px !important;
  297. }
  298. .mr#{$i} {
  299. margin-right: #{$i}px !important;
  300. }
  301. .mb#{$i} {
  302. margin-bottom: #{$i}px !important;
  303. }
  304. .ml#{$i} {
  305. margin-left: #{$i}px !important;
  306. }
  307. .pt#{$i} {
  308. padding-top: #{$i}px !important;
  309. }
  310. .pr#{$i} {
  311. padding-right: #{$i}px !important;
  312. }
  313. .pb#{$i} {
  314. padding-bottom: #{$i}px !important;
  315. }
  316. .pl#{$i} {
  317. padding-left: #{$i}px !important;
  318. }
  319. }