app.scss 5.3 KB

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