vab.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. /**
  2. * @author https://gitee.com/chu1204505056/vue-admin-better (不想保留author可删除)
  3. * @description 全局样式
  4. */
  5. @charset "utf-8";
  6. @import './normalize.scss';
  7. @import './transition.scss';
  8. @import './loading.scss';
  9. $base: '.vab';
  10. @mixin scrollbar {
  11. max-height: 88vh;
  12. margin-bottom: 0.5vh;
  13. overflow-y: auto;
  14. &::-webkit-scrollbar {
  15. width: 0;
  16. height: 0;
  17. background: transparent;
  18. }
  19. &::-webkit-scrollbar-thumb {
  20. background-color: rgba(144, 147, 153, 0.3);
  21. border-radius: 10px;
  22. }
  23. &::-webkit-scrollbar-thumb:hover {
  24. background-color: rgba(144, 147, 153, 0.3);
  25. }
  26. }
  27. @mixin base-scrollbar {
  28. &::-webkit-scrollbar {
  29. width: 13px;
  30. height: 13px;
  31. }
  32. &::-webkit-scrollbar-thumb {
  33. background-color: rgba(0, 0, 0, 0.4);
  34. background-clip: padding-box;
  35. border: 3px solid transparent;
  36. border-radius: 7px;
  37. }
  38. &::-webkit-scrollbar-thumb:hover {
  39. background-color: rgba(0, 0, 0, 0.5);
  40. }
  41. &::-webkit-scrollbar-track {
  42. background-color: transparent;
  43. }
  44. &::-webkit-scrollbar-track:hover {
  45. background-color: #f8fafc;
  46. }
  47. }
  48. img {
  49. object-fit: cover;
  50. }
  51. a {
  52. color: $base-color-blue;
  53. text-decoration: none;
  54. cursor: pointer;
  55. }
  56. * {
  57. transition: $base-transition;
  58. }
  59. svg {
  60. transition: none;
  61. * {
  62. transition: none;
  63. }
  64. }
  65. html {
  66. body {
  67. position: relative;
  68. height: 100vh;
  69. padding: 0;
  70. margin: 0;
  71. font-family: Avenir, Helvetica, Arial, sans-serif;
  72. font-size: $base-font-size-default;
  73. color: #2c3e50;
  74. background: #f6f8f9;
  75. -webkit-font-smoothing: antialiased;
  76. -moz-osx-font-smoothing: grayscale;
  77. @include base-scrollbar;
  78. div {
  79. @include base-scrollbar;
  80. }
  81. svg,
  82. i {
  83. &:hover {
  84. opacity: 0.8;
  85. }
  86. }
  87. .v-modal {
  88. backdrop-filter: blur(10px);
  89. }
  90. .el-tag + .el-tag {
  91. margin-left: 10px;
  92. }
  93. .editor-toolbar {
  94. .no-mobile,
  95. .fa-question-circle {
  96. display: none;
  97. }
  98. }
  99. .el-divider--horizontal {
  100. margin: 10px 0 25px 0;
  101. .el-divider__text {
  102. display: -webkit-box;
  103. overflow: hidden;
  104. text-overflow: ellipsis;
  105. -webkit-line-clamp: 1;
  106. -webkit-box-orient: vertical;
  107. }
  108. }
  109. .el-image-viewer {
  110. &__close {
  111. .el-icon-circle-close {
  112. color: $base-color-white;
  113. }
  114. }
  115. }
  116. .vue-admin-beautiful-wrapper {
  117. .app-main-container {
  118. @include base-scrollbar;
  119. > [class*='-container'] {
  120. * {
  121. transition: none;
  122. }
  123. padding: $base-padding;
  124. background: $base-color-white;
  125. }
  126. }
  127. }
  128. /* 进度条开始 */
  129. #nprogress {
  130. position: fixed;
  131. z-index: $base-z-index;
  132. .bar {
  133. background: $base-color-blue !important;
  134. }
  135. .peg {
  136. box-shadow: 0 0 10px $base-color-blue, 0 0 5px $base-color-blue !important;
  137. }
  138. }
  139. .el-table {
  140. .el-table__body-wrapper {
  141. @include base-scrollbar;
  142. }
  143. th {
  144. background: #f5f7fa;
  145. }
  146. td,
  147. th {
  148. position: relative;
  149. box-sizing: border-box;
  150. padding: 7.5px 0;
  151. .cell {
  152. font-size: $base-font-size-default;
  153. font-weight: normal;
  154. color: #606266;
  155. .el-image {
  156. width: 50px;
  157. height: 50px;
  158. border-radius: $base-border-radius;
  159. }
  160. }
  161. }
  162. }
  163. .el-pagination {
  164. padding: 2px 5px;
  165. margin: 15px 0 0 0;
  166. font-weight: normal;
  167. color: $base-color-black;
  168. text-align: center;
  169. }
  170. .el-menu.el-menu--popup.el-menu--popup-right-start {
  171. @include scrollbar;
  172. }
  173. .el-menu.el-menu--popup.el-menu--popup-bottom-start {
  174. @include scrollbar;
  175. }
  176. .el-submenu__title i {
  177. color: $base-color-white;
  178. }
  179. .el-dialog,
  180. .el-message-box {
  181. &__body {
  182. border-top: 1px solid $base-border-color;
  183. .el-form {
  184. padding-right: 30px;
  185. }
  186. }
  187. &__footer {
  188. padding: $base-padding;
  189. text-align: right;
  190. border-top: 1px solid $base-border-color;
  191. }
  192. &__content {
  193. padding: 20px 20px 20px 20px;
  194. }
  195. }
  196. .el-card {
  197. margin-bottom: 15px;
  198. &__body {
  199. padding: $base-padding;
  200. }
  201. }
  202. .select-tree-popper {
  203. .el-scrollbar {
  204. .el-scrollbar__view {
  205. .el-select-dropdown__item {
  206. height: auto;
  207. max-height: 274px;
  208. padding: 0;
  209. overflow-y: auto;
  210. line-height: 26px;
  211. }
  212. }
  213. }
  214. }
  215. }
  216. .side-bar-container {
  217. .el-menu-item,
  218. .el-submenu {
  219. margin: 7px !important;
  220. border-radius: 5px !important;
  221. &:hover {
  222. border-radius: 5px !important;
  223. }
  224. &.is-active {
  225. background: $base-color-default !important;
  226. }
  227. }
  228. }
  229. }