vab.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. /**
  2. * @author chuzhixin 1204505056@qq.com (不想保留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开始 */
  91. .el-tag + .el-tag {
  92. margin-left: 10px;
  93. }
  94. /* el-tag结束 */
  95. /* markdown编辑器开始 */
  96. .editor-toolbar {
  97. .no-mobile,
  98. .fa-question-circle {
  99. display: none;
  100. }
  101. }
  102. /* markdown编辑器结束 */
  103. /* 间隔线开始 */
  104. .el-divider--horizontal {
  105. margin: 10px 0 25px 0;
  106. .el-divider__text {
  107. display: -webkit-box;
  108. overflow: hidden;
  109. text-overflow: ellipsis;
  110. -webkit-line-clamp: 1;
  111. -webkit-box-orient: vertical;
  112. }
  113. }
  114. /* 间隔线结束 */
  115. /* 大图展示开始 */
  116. .el-image-viewer {
  117. &__close {
  118. .el-icon-circle-close {
  119. color: $base-color-white;
  120. }
  121. }
  122. }
  123. /* 大图展示结束 */
  124. .vue-admin-beautiful-wrapper {
  125. .app-main-container {
  126. @include base-scrollbar;
  127. > [class*='-container'] {
  128. * {
  129. transition: none;
  130. }
  131. padding: $base-padding;
  132. background: $base-color-white;
  133. }
  134. }
  135. }
  136. /* 进度条开始 */
  137. #nprogress {
  138. position: fixed;
  139. z-index: $base-z-index;
  140. .bar {
  141. background: $base-color-blue !important;
  142. }
  143. .peg {
  144. box-shadow: 0 0 10px $base-color-blue, 0 0 5px $base-color-blue !important;
  145. }
  146. }
  147. /* 进度条结束 */
  148. /* 表格开始 */
  149. .el-table {
  150. .el-table__body-wrapper {
  151. @include base-scrollbar;
  152. }
  153. th {
  154. background: #f5f7fa;
  155. }
  156. td,
  157. th {
  158. position: relative;
  159. box-sizing: border-box;
  160. padding: 7.5px 0;
  161. .cell {
  162. font-size: $base-font-size-default;
  163. font-weight: normal;
  164. color: #606266;
  165. .el-image {
  166. width: 50px;
  167. height: 50px;
  168. border-radius: $base-border-radius;
  169. }
  170. }
  171. }
  172. }
  173. /* 表格结束 */
  174. /* 分页开始 */
  175. .el-pagination {
  176. padding: 2px 5px;
  177. margin: 15px 0 0 0;
  178. font-weight: normal;
  179. color: $base-color-black;
  180. text-align: center;
  181. }
  182. /* 分页结束 */
  183. /* 菜单开始 */
  184. .el-menu.el-menu--popup.el-menu--popup-right-start {
  185. @include scrollbar;
  186. }
  187. .el-menu.el-menu--popup.el-menu--popup-bottom-start {
  188. @include scrollbar;
  189. }
  190. .el-submenu__title i {
  191. color: $base-color-white;
  192. }
  193. /* 菜单结束 */
  194. /* 弹窗开始 */
  195. .el-dialog,
  196. .el-message-box {
  197. &__body {
  198. border-top: 1px solid $base-border-color;
  199. .el-form {
  200. padding-right: 30px;
  201. }
  202. }
  203. &__footer {
  204. padding: $base-padding;
  205. text-align: right;
  206. border-top: 1px solid $base-border-color;
  207. }
  208. &__content {
  209. padding: 20px 20px 20px 20px;
  210. }
  211. }
  212. /* 弹窗结束 */
  213. /* 卡片开始 */
  214. .el-card {
  215. margin-bottom: 15px;
  216. &__body {
  217. padding: $base-padding;
  218. }
  219. }
  220. /* 卡片结束 */
  221. /* 下拉树样式-----------开始 */
  222. .select-tree-popper {
  223. .el-scrollbar {
  224. .el-scrollbar__view {
  225. .el-select-dropdown__item {
  226. height: auto;
  227. max-height: 274px;
  228. padding: 0;
  229. overflow-y: auto;
  230. line-height: 26px;
  231. }
  232. }
  233. }
  234. }
  235. /* 下拉树样式-----------结束 */
  236. }
  237. }