vab.scss 4.9 KB

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