vab.scss 5.0 KB

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