base.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /* reset */
  2. body,
  3. div,
  4. ul,
  5. ol,
  6. li,
  7. h1,
  8. h2,
  9. h3,
  10. h4,
  11. h5,
  12. h6,
  13. input,
  14. p,
  15. tr,
  16. th,
  17. td,
  18. span,
  19. a,
  20. header,
  21. footer {
  22. margin: 0;
  23. padding: 0;
  24. box-sizing: border-box;
  25. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  26. }
  27. li {
  28. list-style: none;
  29. }
  30. em,
  31. i,
  32. u {
  33. font-style: normal;
  34. }
  35. input {
  36. outline: none;
  37. border: none;
  38. box-shadow: 100px 100px 100px #fff inset;
  39. font-family: $--font-family;
  40. }
  41. button {
  42. font-family: $--font-family;
  43. }
  44. h1,
  45. h2,
  46. h3,
  47. h4,
  48. h5,
  49. h6 {
  50. font-size: 100%;
  51. font-weight: bold;
  52. }
  53. fieldset,
  54. img {
  55. border: 0;
  56. }
  57. abbr {
  58. border: 0;
  59. font-variant: normal;
  60. }
  61. a {
  62. text-decoration: none;
  63. color: inherit;
  64. *color: $--color-text-secondary;
  65. }
  66. img {
  67. vertical-align: middle;
  68. }
  69. /* common-style */
  70. input:-webkit-autofill {
  71. box-shadow: 0 0 0 1000px white inset;
  72. }
  73. input[type="text"]:focus,
  74. input[type="password"]:focus,
  75. input[type="number"]:focus,
  76. textarea:focus {
  77. box-shadow: 0 0 0 1000px white inset;
  78. }
  79. /* browse style */
  80. ::-webkit-scrollbar {
  81. width: 8px;
  82. height: 8px;
  83. background: transparent;
  84. }
  85. ::-webkit-scrollbar-button {
  86. display: none;
  87. }
  88. ::-webkit-scrollbar-track {
  89. background: transparent;
  90. }
  91. ::-webkit-scrollbar-thumb {
  92. border-radius: 8px;
  93. background: $--color-text-primary;
  94. }
  95. ::-webkit-scrollbar-corner {
  96. background: transparent;
  97. }
  98. ::-webkit-scrollbar-resizer {
  99. background: transparent;
  100. }
  101. body {
  102. font-family: $--font-family;
  103. -webkit-font-smoothing: antialiased;
  104. -moz-osx-font-smoothing: grayscale;
  105. font-size: $--font-size-base;
  106. color: $--color-text-primary;
  107. background: $--color-background;
  108. min-width: 1366px;
  109. }
  110. // color
  111. .color-primary {
  112. color: $--color-primary !important;
  113. }
  114. .color-success {
  115. color: $--color-success;
  116. }
  117. .color-warning {
  118. color: $--color-warning;
  119. }
  120. .color-danger {
  121. color: $--color-danger;
  122. }
  123. .color-info {
  124. color: $--color-info;
  125. }
  126. // text
  127. .text-center {
  128. text-align: center;
  129. }
  130. // other
  131. .btn--danger {
  132. &.el-button--text {
  133. color: $--color-danger !important;
  134. }
  135. }
  136. .btn-white {
  137. background-color: #fff !important;
  138. color: #999 !important;
  139. }
  140. .font-bold {
  141. font-weight: bold;
  142. }
  143. .table-head-bg {
  144. th {
  145. background-color: #f6f6f6;
  146. color: $--color-text-primary;
  147. }
  148. }
  149. .btn-act {
  150. background: rgba(28, 208, 161, 1) !important;
  151. box-shadow: 5px 5px 4px 0px rgba(28, 208, 161, 0.3);
  152. border-radius: 10px;
  153. }
  154. .mr-1 {
  155. margin-right: 5px;
  156. }
  157. .mr-2 {
  158. margin-right: 10px;
  159. }