var.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. @import './variables';
  2. :root {
  3. --el-border-radius-base: #{$base-border-radius};
  4. --el-left-menu-width: #{$base-left-menu-width};
  5. --el-background-color: #{$base-background-color};
  6. --el-menu-background-color: #{$base-menu-background};
  7. --el-menu-background-color-second: #fff;
  8. --el-menu-color-text: #fff;
  9. --el-menu-horizontal-sub-item-height: #{$base-menu-item-height - 8px};
  10. --el-menu-item-height: #{$base-menu-item-height};
  11. --el-color-grey: #{$base-color-grey};
  12. --el-color-black: #{$base-color-black};
  13. --el-color-primary: #{$vab-color-primary};
  14. --el-color-primary-light-1: #{$vab-color-primary-light-1};
  15. --el-color-primary-light-2: #{$vab-color-primary-light-2};
  16. --el-color-primary-light-3: #{$vab-color-primary-light-3};
  17. --el-color-primary-light-4: #{$vab-color-primary-light-4};
  18. --el-color-primary-light-5: #{$vab-color-primary-light-5};
  19. --el-color-primary-light-6: #{$vab-color-primary-light-6};
  20. --el-color-primary-light-7: #{$vab-color-primary-light-7};
  21. --el-color-primary-light-8: #{$vab-color-primary-light-8};
  22. --el-color-primary-light-9: #{$vab-color-primary-light-9};
  23. --el-color-primary-dark-2: #{$vab-color-primary};
  24. --el-color-success: #{$vab-color-success};
  25. --el-color-success-light: #{$vab-color-success-light};
  26. --el-color-success-lighter: #{$vab-color-success-lighter};
  27. --el-color-success-light-1: #{$vab-color-success-light-1};
  28. --el-color-success-light-2: #{$vab-color-success-light-2};
  29. --el-color-success-light-3: #{$vab-color-success-light-3};
  30. --el-color-success-light-4: #{$vab-color-success-light-4};
  31. --el-color-success-light-5: #{$vab-color-success-light-5};
  32. --el-color-success-light-6: #{$vab-color-success-light-6};
  33. --el-color-success-light-7: #{$vab-color-success-light-7};
  34. --el-color-success-light-8: #{$vab-color-success-light-8};
  35. --el-color-success-light-9: #{$vab-color-success-light-9};
  36. --el-color-success-dark-2: #{$vab-color-success};
  37. --el-color-warning: #{$vab-color-warning};
  38. --el-color-warning-light: #{$vab-color-warning-light};
  39. --el-color-warning-lighter: #{$vab-color-warning-lighter};
  40. --el-color-warning-light-1: #{$vab-color-warning-light-1};
  41. --el-color-warning-light-2: #{$vab-color-warning-light-2};
  42. --el-color-warning-light-3: #{$vab-color-warning-light-3};
  43. --el-color-warning-light-4: #{$vab-color-warning-light-4};
  44. --el-color-warning-light-5: #{$vab-color-warning-light-5};
  45. --el-color-warning-light-6: #{$vab-color-warning-light-6};
  46. --el-color-warning-light-7: #{$vab-color-warning-light-7};
  47. --el-color-warning-light-8: #{$vab-color-warning-light-8};
  48. --el-color-warning-light-9: #{$vab-color-warning-light-9};
  49. --el-color-warning-dark-2: #{$vab-color-warning};
  50. --el-color-danger: #{$vab-color-danger};
  51. --el-color-danger-light: #{$vab-color-danger-light};
  52. --el-color-danger-lighter: #{$vab-color-danger-lighter};
  53. --el-color-danger-light-1: #{$vab-color-danger-light-1};
  54. --el-color-danger-light-2: #{$vab-color-danger-light-2};
  55. --el-color-danger-light-3: #{$vab-color-danger-light-3};
  56. --el-color-danger-light-4: #{$vab-color-danger-light-4};
  57. --el-color-danger-light-5: #{$vab-color-danger-light-5};
  58. --el-color-danger-light-6: #{$vab-color-danger-light-6};
  59. --el-color-danger-light-7: #{$vab-color-danger-light-7};
  60. --el-color-danger-light-8: #{$vab-color-danger-light-8};
  61. --el-color-danger-light-9: #{$vab-color-danger-light-9};
  62. --el-color-danger-dark-2: #{$vab-color-danger};
  63. --el-color-error: #{$vab-color-error};
  64. --el-color-error-light: #{$vab-color-error-light};
  65. --el-color-error-lighter: #{$vab-color-error-lighter};
  66. --el-color-error-light-1: #{$vab-color-error-light-1};
  67. --el-color-error-light-2: #{$vab-color-error-light-2};
  68. --el-color-error-light-3: #{$vab-color-error-light-3};
  69. --el-color-error-light-4: #{$vab-color-error-light-4};
  70. --el-color-error-light-5: #{$vab-color-error-light-5};
  71. --el-color-error-light-6: #{$vab-color-error-light-6};
  72. --el-color-error-light-7: #{$vab-color-error-light-7};
  73. --el-color-error-light-8: #{$vab-color-error-light-8};
  74. --el-color-error-light-9: #{$vab-color-error-light-9};
  75. --el-color-error-dark-2: #{$vab-color-error};
  76. --el-color-info: #{$vab-color-info};
  77. --el-color-info-light: #{$vab-color-info-light};
  78. --el-color-info-lighter: #{$vab-color-info-lighter};
  79. --el-color-info-dark-2: #{$vab-color-info};
  80. /**
  81. * @description: 全局字体大小
  82. * @author sundan
  83. */
  84. --el-font-size-base: 14px;
  85. --el-font-size-small: calc(var(--el-font-size-base) - 1px);
  86. --el-font-size-extra-small: calc(var(--el-font-size-base) - 2px);
  87. --el-font-size-medium: calc(var(--el-font-size-base) + 2px);
  88. --el-font-size-large: calc(var(--el-font-size-base) + 4px);
  89. --el-font-size-extra-large: calc(var(--el-font-size-base) + 6px);
  90. --el-transition: #{$base-transition};
  91. --el-left-menu-width-min: #{$base-left-menu-width-min};
  92. --el-padding: #{$base-padding};
  93. --el-margin: #{$base-margin};
  94. --el-nav-height: #{$base-nav-height};
  95. --el-tabs-height: #{$base-tabs-height};
  96. --el-footer-height: 50px;
  97. --el-mask-color: rgba(255, 255, 255, 0.8);
  98. --el-z-index: #{$base-z-index};
  99. --el-header-height: #{$base-header-height};
  100. --el-tab-item-height: #{$base-tab-item-height};
  101. --el-logo-height: #{$base-logo-height};
  102. --el-title-color: #{$base-title-color};
  103. --el-input-height: #{$base-input-height};
  104. --el-right-content-width-min: #{$base-right-content-width-min};
  105. --el-container-height: calc(
  106. var(--vh, 1vh) * 100 - var(--el-nav-height) - var(--el-tabs-height) - var(--el-padding) * 3 - var(--el-footer-height)
  107. );
  108. }