app.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. /* 初始化样式
  2. ------------------------------- */
  3. * {
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. outline: none !important;
  8. }
  9. :root {
  10. --next-bg-main-color: #f8f8f8;
  11. --next-bg-color: #f5f5ff;
  12. --next-border-color-light: #f1f2f3;
  13. --next-color-primary-lighter: #ecf5ff;
  14. --next-color-dark-hover: #0000001a;
  15. --next-color-menu-hover: rgba(0, 0, 0, 0.1);
  16. --next-color-menu-hover-blue: none;
  17. --next-color-menu-text-blue: #1967d2;
  18. --next-color-user-hover: rgba(0, 0, 0, 0.04);
  19. --next-color-seting-main: #e9eef3;
  20. --next-color-seting-aside: #d3dce6;
  21. --next-color-seting-header: #b3c0d1;
  22. --next-bg-menuBar-light: #ffffff;
  23. --next-bg-menuBar-black: #333333;
  24. --next-menu-level1-bg: linear-gradient(90deg, rgba(89, 165, 245, 0.3) 0%, #fff 100%);
  25. --next-menu-level2-bg: #fafbfd;
  26. }
  27. .el-table {
  28. --el-table-header-bg-color: #f3f5f9;
  29. --el-table-text-color: #333;
  30. thead th {
  31. border-bottom: none !important;
  32. padding: 12px 0 !important;
  33. }
  34. }
  35. html,
  36. body,
  37. #app {
  38. margin: 0;
  39. padding: 0;
  40. width: 100%;
  41. height: 100%;
  42. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  43. font-weight: 400;
  44. -webkit-font-smoothing: antialiased;
  45. -webkit-tap-highlight-color: transparent;
  46. background-color: var(--next-bg-main-color);
  47. font-size: 14px;
  48. overflow: hidden;
  49. position: relative;
  50. }
  51. /* 主布局样式
  52. ------------------------------- */
  53. .layout-container {
  54. width: 100%;
  55. height: 100%;
  56. .layout-aside {
  57. // background: var(--next-bg-menuBar);
  58. background: var(--next-bg-menuBar-light);
  59. box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
  60. height: inherit;
  61. position: relative;
  62. z-index: 1;
  63. display: flex;
  64. flex-direction: column;
  65. overflow-x: hidden !important;
  66. .el-scrollbar__view {
  67. overflow: hidden;
  68. }
  69. }
  70. .layout-header {
  71. padding: 0 !important;
  72. }
  73. .layout-main {
  74. padding: 0 !important;
  75. overflow: hidden;
  76. width: 100%;
  77. background-color: var(--next-bg-main-color);
  78. }
  79. .el-scrollbar {
  80. width: 100%;
  81. }
  82. // 此字段多次用到,建议不删除,如需修改,请重写覆盖样式
  83. .layout-view-bg-white {
  84. background: var(--el-color-white);
  85. width: 100%;
  86. height: 100%;
  87. border-radius: 4px;
  88. border: 1px solid var(--el-border-color-light, #ebeef5);
  89. }
  90. .layout-el-aside-br-color {
  91. border-right: 1px solid var(--el-border-color-light, #ebeef5);
  92. }
  93. // pc端左侧导航样式
  94. .layout-aside-pc-220 {
  95. width: 220px !important;
  96. transition: width 0.3s ease;
  97. }
  98. .layout-aside-pc-64 {
  99. width: 64px !important;
  100. transition: width 0.3s ease;
  101. }
  102. .layout-aside-pc-1 {
  103. width: 1px !important;
  104. transition: width 0.3s ease;
  105. }
  106. // 手机端左侧导航样式
  107. .layout-aside-mobile {
  108. position: fixed;
  109. top: 0;
  110. left: -220px;
  111. width: 220px;
  112. z-index: 9999999;
  113. }
  114. .layout-aside-mobile-close {
  115. left: -220px;
  116. transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
  117. }
  118. .layout-aside-mobile-open {
  119. left: 0;
  120. transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  121. }
  122. .layout-aside-mobile-mode {
  123. position: fixed;
  124. top: 0;
  125. right: 0;
  126. bottom: 0;
  127. left: 0;
  128. height: 100%;
  129. background-color: rgba(0, 0, 0, 0.5);
  130. z-index: 9999998;
  131. animation: error-img 0.3s;
  132. }
  133. .layout-scrollbar {
  134. @extend .el-scrollbar;
  135. padding: 15px 15px 0;
  136. }
  137. .layout-mian-height-50 {
  138. height: calc(100vh - 50px);
  139. }
  140. .layout-columns-warp {
  141. flex: 1;
  142. display: flex;
  143. overflow: hidden;
  144. }
  145. .layout-hide {
  146. display: none;
  147. }
  148. }
  149. /* element plus 全局样式
  150. ------------------------------- */
  151. .layout-breadcrumb-seting {
  152. .el-divider {
  153. background-color: rgb(230, 230, 230);
  154. }
  155. }
  156. /* nprogress 进度条跟随主题颜色
  157. ------------------------------- */
  158. #nprogress {
  159. .bar {
  160. background: var(--el-color-primary) !important;
  161. z-index: 9999999 !important;
  162. }
  163. }
  164. /* flex 弹性布局
  165. ------------------------------- */
  166. .flex {
  167. display: flex;
  168. }
  169. .flex-auto {
  170. flex: 1;
  171. overflow: hidden;
  172. }
  173. .flex-center {
  174. @extend .flex;
  175. flex-direction: column;
  176. width: 100%;
  177. overflow: hidden;
  178. }
  179. .flex-margin {
  180. margin: auto;
  181. }
  182. .flex-warp {
  183. display: flex;
  184. flex-wrap: wrap;
  185. align-content: flex-start;
  186. margin: 0 -5px;
  187. .flex-warp-item {
  188. padding: 5px;
  189. .flex-warp-item-box {
  190. width: 100%;
  191. height: 100%;
  192. }
  193. }
  194. }
  195. /* cursor 鼠标形状
  196. ------------------------------- */
  197. // 默认
  198. .cursor-default {
  199. cursor: default !important;
  200. }
  201. // 帮助
  202. .cursor-help {
  203. cursor: help !important;
  204. }
  205. // 手指
  206. .cursor-pointer {
  207. cursor: pointer !important;
  208. }
  209. // 移动
  210. .cursor-move {
  211. cursor: move !important;
  212. }
  213. /* 宽高 100%
  214. ------------------------------- */
  215. .w100 {
  216. width: 100% !important;
  217. }
  218. .h100 {
  219. height: 100% !important;
  220. }
  221. .vh100 {
  222. height: 100vh !important;
  223. }
  224. .max100vh {
  225. max-height: 100vh !important;
  226. }
  227. .min100vh {
  228. min-height: 100vh !important;
  229. }
  230. /* 颜色值
  231. ------------------------------- */
  232. .color-primary {
  233. color: var(--el-color-primary);
  234. }
  235. .color-success {
  236. color: var(--el-color-success);
  237. }
  238. .color-warning {
  239. color: var(--el-color-warning);
  240. }
  241. .color-danger {
  242. color: var(--el-color-danger);
  243. }
  244. .color-info {
  245. color: var(--el-color-info);
  246. }
  247. /* 字体大小全局样式
  248. ------------------------------- */
  249. @for $i from 10 through 32 {
  250. .font#{$i} {
  251. font-size: #{$i}px !important;
  252. }
  253. }
  254. /* 外边距、内边距全局样式
  255. ------------------------------- */
  256. @for $i from 1 through 35 {
  257. .mt#{$i} {
  258. margin-top: #{$i}px !important;
  259. }
  260. .mr#{$i} {
  261. margin-right: #{$i}px !important;
  262. }
  263. .mb#{$i} {
  264. margin-bottom: #{$i}px !important;
  265. }
  266. .ml#{$i} {
  267. margin-left: #{$i}px !important;
  268. }
  269. .pt#{$i} {
  270. padding-top: #{$i}px !important;
  271. }
  272. .pr#{$i} {
  273. padding-right: #{$i}px !important;
  274. }
  275. .pb#{$i} {
  276. padding-bottom: #{$i}px !important;
  277. }
  278. .pl#{$i} {
  279. padding-left: #{$i}px !important;
  280. }
  281. }
  282. .link-type,
  283. .link-type:focus {
  284. color: #337ab7;
  285. cursor: pointer;
  286. text-decoration: none;
  287. }