_base.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. view,
  2. button,
  3. input,
  4. textarea,
  5. image,
  6. text,
  7. scroll-view,
  8. :host {
  9. box-sizing: border-box;
  10. --vb-icon-font-family: "iconfont";
  11. --vb-color: #1989fa;
  12. --vb-black: #1e2129;
  13. --vb-white: #fff;
  14. --vb-gray-1: #f7f8fa;
  15. --vb-gray-2: #f2f3f5;
  16. --vb-gray-3: #ebedf0;
  17. --vb-gray-4: #dcdee0;
  18. --vb-gray-5: #c8c9cc;
  19. --vb-gray-6: #969799;
  20. --vb-gray-7: #646566;
  21. --vb-gray-8: #323233;
  22. --vb-red: #f1416c;
  23. --vb-blue: #009ef7;
  24. --vb-yellow: #ffc700;
  25. --vb-orange: #ff976a;
  26. --vb-orange-dark: #ed6a0c;
  27. --vb-orange-light: #fffbe8;
  28. --vb-green: #50cd89;
  29. --vb-pink: #e03997;
  30. --vb-info: #7239ea;
  31. --vb-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);
  32. --vb-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);
  33. --vb-primary-color: var(--vb-blue);
  34. --vb-success-color: var(--vb-green);
  35. --vb-danger-color: var(--vb-red);
  36. --vb-warning-color: var(--vb-yellow);
  37. --vb-light: #f1faff;
  38. --vb-primary-light: #f1faff;
  39. --vb-success-light: #e8fff3;
  40. --vb-info-light: #f8f5ff;
  41. --vb-danger-light: #fff5f8;
  42. --vb-warning-light: #fff8dd;
  43. --vb-dark-light: #f9f9f9;
  44. --vb-light-light: #ffffff;
  45. --vb-text-color: var(--vb-gray-8);
  46. --vb-text-color-2: var(--vb-gray-6);
  47. --vb-text-color-3: var(--vb-gray-5);
  48. --vb-active-color: var(--vb-gray-2);
  49. --vb-active-opacity: 0.6;
  50. --vb-disabled-opacity: 0.5;
  51. --vb-background: var(--vb-gray-1);
  52. --vb-background-2: var(--vb-white);
  53. --vb-background-3: var(--vb-white);
  54. --vb-padding-base: 4px;
  55. --vb-padding-xs: 8px;
  56. --vb-padding-sm: 12px;
  57. --vb-padding-md: 16px;
  58. --vb-padding-lg: 24px;
  59. --vb-padding-xl: 32px;
  60. --vb-font-bold: 600;
  61. --vb-font-size-xs: 10px;
  62. --vb-font-size-sm: 12px;
  63. --vb-font-size-md: 14px;
  64. --vb-font-size-lg: 16px;
  65. --vb-line-height-xs: 14px;
  66. --vb-line-height-sm: 18px;
  67. --vb-line-height-md: 20px;
  68. --vb-line-height-lg: 22px;
  69. --vb-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC",
  70. "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
  71. --vb-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;
  72. --vb-duration-base: 0.3s;
  73. --vb-duration-fast: 0.2s;
  74. --vb-ease-out: ease-out;
  75. --vb-ease-in: ease-in;
  76. --vb-border-color: var(--vb-gray-3);
  77. --vb-border-width: 1px;
  78. --vb-radius-sm: 2px;
  79. --vb-radius-md: 4px;
  80. --vb-radius-lg: 8px;
  81. --vb-radius-max: 999px;
  82. }
  83. .vb-theme-dark {
  84. --vb-text-color: #f5f5f5;
  85. --vb-text-color-2: #707070;
  86. --vb-text-color-3: #4d4d4d;
  87. --vb-border-color: #3a3a3c;
  88. --vb-active-color: #3a3a3c;
  89. --vb-background: #000;
  90. --vb-background-2: #1c1c1e;
  91. --vb-background-3: #37363b;
  92. }
  93. .vb-clearfix:after {
  94. display: table;
  95. clear: both;
  96. content: "";
  97. }
  98. .vb-ellipsis {
  99. overflow: hidden;
  100. white-space: nowrap;
  101. text-overflow: ellipsis;
  102. }
  103. .vb-multi-ellipsis--l2 {
  104. display: -webkit-box;
  105. overflow: hidden;
  106. text-overflow: ellipsis;
  107. -webkit-line-clamp: 2;
  108. line-break: anywhere;
  109. -webkit-box-orient: vertical;
  110. }
  111. .vb-multi-ellipsis--l3 {
  112. display: -webkit-box;
  113. overflow: hidden;
  114. text-overflow: ellipsis;
  115. -webkit-line-clamp: 3;
  116. line-break: anywhere;
  117. -webkit-box-orient: vertical;
  118. }
  119. [class*="vb-hairline"]:after {
  120. position: absolute;
  121. box-sizing: border-box;
  122. content: " ";
  123. pointer-events: none;
  124. top: -50%;
  125. right: -50%;
  126. bottom: -50%;
  127. left: -50%;
  128. border: 0 solid var(--vb-border-color) !important;
  129. transform: scale(0.5);
  130. }
  131. .vb-hairline,
  132. .vb-hairline--top,
  133. .vb-hairline--left,
  134. .vb-hairline--right,
  135. .vb-hairline--bottom,
  136. .vb-hairline--surround,
  137. .vb-hairline--top-bottom {
  138. position: relative;
  139. }
  140. .vb-hairline--top:after {
  141. border-top-width: var(--vb-border-width);
  142. }
  143. .vb-hairline--left:after {
  144. border-left-width: var(--vb-border-width);
  145. }
  146. .vb-hairline--right:after {
  147. border-right-width: var(--vb-border-width);
  148. }
  149. .vb-hairline--bottom:after {
  150. border-bottom-width: var(--vb-border-width);
  151. }
  152. .vb-hairline--top-bottom:after,
  153. .vb-hairline-unset--top-bottom:after {
  154. border-width: var(--vb-border-width) 0 var(--vb-border-width);
  155. }
  156. .vb-hairline--surround:after {
  157. border-width: var(--vb-border-width);
  158. }