vab.scss 5.0 KB

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