app.scss 5.7 KB

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