app.scss 6.2 KB

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