default.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. :root {
  2. /* 字体大小规范 */
  3. --font-x-large: 18px;
  4. --font-large: 16px;
  5. --font-medium: 14px;
  6. --font-small: 12px;
  7. --font-x-small: 10px;
  8. /* 颜色规范 */
  9. --color-default: #384048;
  10. --color-primary: #3077af;
  11. --color-secondary: #4786bb;
  12. --color-info: #999;
  13. --color-border: #eee;
  14. /* 间距规范 */
  15. --space-medium: 20px;
  16. /* 状态栏 */
  17. --statusbar-height: 56px;
  18. /* 标签栏 */
  19. --tabbar-active: var(--color-primary);
  20. --tabbar-hover: #eee;
  21. --tabbar-close-hover: red;
  22. /* 侧边栏 */
  23. --sidebar-width: 180px;
  24. --sidebar-background: var(--color-primary);
  25. --sidebar-header-height: 56px;
  26. --sidebar-menu-inline: #fff;
  27. --sidebar-menu-item: #b3d5ef;
  28. --sidebar-menu-item-hover: #4786bb;
  29. --sidebar-menu-item-active: #266091;
  30. --el-color-primary: var(--color-primary);
  31. --el-color-primary-light-3: #4b95ce;
  32. --el-color-primary-light-5: #70abd8;
  33. --el-color-primary-light-7: #c6e2ff;
  34. --el-color-primary-light-8: #d9ecff;
  35. --el-color-primary-light-9: #ecf5ff;
  36. --el-color-primary-dark-2: #2d70a3;
  37. .el-form {
  38. &-item {
  39. &--col {
  40. display: flex;
  41. width: 100%;
  42. gap: 10px;
  43. }
  44. &:last-child {
  45. margin-bottom: 18px;
  46. }
  47. }
  48. &--horizontal {
  49. display: flex;
  50. flex-wrap: wrap;
  51. .el-form-item {
  52. width: 50%;
  53. &__label {
  54. padding: 0 12px;
  55. }
  56. &__content {
  57. align-items: flex-start;
  58. padding-right: 48px;
  59. }
  60. &--row {
  61. width: 100%;
  62. }
  63. }
  64. .el-select,
  65. .el-input-number {
  66. width: 100%;
  67. }
  68. }
  69. &--vertical {
  70. .el-select,
  71. .el-input-number {
  72. width: 100%;
  73. }
  74. }
  75. }
  76. .app-tabs {
  77. &__navbar {
  78. z-index: 10;
  79. display: flex;
  80. align-items: center;
  81. background-color: #fff;
  82. box-shadow: 0 2px 16px 0 rgba(0, 0, 0, .1);
  83. padding: 8px 20px 0 20px;
  84. &:empty {
  85. display: none;
  86. }
  87. .tabs {
  88. &-item {
  89. height: 40px;
  90. line-height: 40px;
  91. color: #777;
  92. border-top-left-radius: 4px;
  93. border-top-right-radius: 4px;
  94. cursor: pointer;
  95. padding: 0 20px;
  96. &:not(:first-child) {
  97. margin-left: 4px;
  98. }
  99. &:hover {
  100. color: inherit;
  101. background-color: var(--tabbar-hover);
  102. }
  103. &.is-active {
  104. color: #fff !important;
  105. background-color: var(--tabbar-active);
  106. border-bottom: 0;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. }