global.less 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. @import '~ant-design-vue/es/style/themes/default.less';
  2. @import './utils/utils.less';
  3. // 滚动条样式
  4. ::-webkit-scrollbar {
  5. width: 6px;
  6. height: 6px;
  7. }
  8. ::-webkit-scrollbar-thumb {
  9. border-radius: 10px;
  10. background-color: #bdbdbd;
  11. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  12. }
  13. html,
  14. body,
  15. #app,
  16. #root {
  17. height: 100%;
  18. }
  19. body {
  20. text-rendering: optimizeLegibility;
  21. -webkit-font-smoothing: antialiased;
  22. -moz-osx-font-smoothing: grayscale;
  23. ul,
  24. ol {
  25. list-style: none;
  26. }
  27. p {
  28. margin: 0;
  29. margin-bottom: 0;
  30. }
  31. canvas {
  32. display: block;
  33. }
  34. }
  35. iframe {
  36. border: 0;
  37. }
  38. .colorWeak {
  39. filter: invert(80%);
  40. }
  41. .ant-layout.layout-basic {
  42. height: 100vh;
  43. min-height: 100vh;
  44. }
  45. // 数据列表 样式
  46. .table-alert {
  47. margin-bottom: 16px;
  48. }
  49. // 数据列表 操作
  50. .table-operator {
  51. margin-bottom: 18px;
  52. .search-btn {
  53. margin-right: 8px;
  54. }
  55. .actions {
  56. .action-item {
  57. display: inline-block;
  58. }
  59. .action-item,
  60. .ant-btn {
  61. margin-right: 10px;
  62. }
  63. .action-item .ant-btn {
  64. margin-right: 0;
  65. }
  66. }
  67. }
  68. // 数据列表 搜索条件
  69. .table-page-search-wrapper {
  70. .ant-form-inline {
  71. .ant-form-item {
  72. display: flex;
  73. margin-bottom: 24px;
  74. margin-right: 0;
  75. .ant-form-item-control-wrapper {
  76. flex: 1 1;
  77. display: inline-block;
  78. vertical-align: middle;
  79. }
  80. >.ant-form-item-label {
  81. line-height: 32px;
  82. padding-right: 8px;
  83. width: auto;
  84. }
  85. .ant-form-item-control {
  86. height: 32px;
  87. line-height: 32px;
  88. }
  89. }
  90. }
  91. .table-page-search-submitButtons {
  92. display: block;
  93. margin-bottom: 24px;
  94. white-space: nowrap;
  95. }
  96. }
  97. // 内容页card组件标题
  98. .card-title {
  99. font-size: 14.5px;
  100. margin-bottom: 18px;
  101. color: rgba(0, 0, 0, 0.75);
  102. .right-action {
  103. float: right;
  104. font-size: 13px;
  105. }
  106. }
  107. @media (max-width: @screen-xs) {
  108. .ant-table {
  109. width: 100%;
  110. overflow-x: auto;
  111. &-thead>tr,
  112. &-tbody>tr {
  113. >th,
  114. >td {
  115. white-space: pre;
  116. >span {
  117. display: block;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. // 图标按钮样式
  124. .ant-btn>.anticon+span,
  125. .ant-btn>span+.anticon {
  126. margin-left: 5px;
  127. }
  128. // 表单
  129. .ant-form {
  130. .ant-form-explain,
  131. .ant-form-extra {
  132. font-size: 12.5px;
  133. }
  134. .form-item-help {
  135. font-size: 12px;
  136. // line-height: 2;
  137. line-height: 1.5;
  138. padding-top: 4px;
  139. min-height: 22px;
  140. // margin-top: -2px;
  141. transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  142. a {
  143. margin: 0 3px;
  144. }
  145. .extra,
  146. small {
  147. color: rgba(0, 0, 0, 0.45);
  148. font-size: 12.5px !important;
  149. }
  150. .extra {
  151. margin-bottom: 4px !important;
  152. }
  153. }
  154. }
  155. // 级联选择器
  156. .ant-cascader-menu {
  157. height: 225px;
  158. }
  159. // 分割线
  160. .ant-divider {
  161. margin: 30px 0 !important;
  162. .ant-divider-inner-text {
  163. font-size: @font-size-base;
  164. color: rgba(0, 0, 0, 0.61);
  165. }
  166. }
  167. .ant-divider-horizontal.ant-divider-with-text-left::before {
  168. width: 5%;
  169. }
  170. // modal弹窗
  171. .ant-modal-header {
  172. border-bottom: none;
  173. padding-bottom: 12px;
  174. }
  175. .ant-modal-body {
  176. padding: 0 24px;
  177. font-size: 13.5px;
  178. }
  179. .ant-modal-footer {
  180. border-top: none;
  181. padding-top: 12px;
  182. }
  183. //# 兼容外部样式
  184. // ueditor
  185. .edui-default {
  186. .edui-editor {
  187. // z-index: 2 !important;
  188. font-size: 14px;
  189. line-height: normal;
  190. border-radius: 0;
  191. -webkit-border-radius: 0;
  192. -moz-border-radius: 0;
  193. pre {
  194. overflow: unset;
  195. }
  196. }
  197. .edui-editor-toolbarboxouter {
  198. box-shadow: unset;
  199. background-image: linear-gradient(to bottom, #ffffff, #fbfbfb);
  200. }
  201. .edui-editor-toolbarbox {
  202. box-shadow: unset;
  203. }
  204. // 自定义图片按钮
  205. .edui-for-image-button .edui-icon {
  206. background-position: -380px 0px;
  207. }
  208. }
  209. // ## 自定义模块 ##
  210. .ant-table {
  211. // 操作栏 项目间距
  212. .actions>a {
  213. margin-right: 8px;
  214. &:last-child {
  215. margin-right: 0;
  216. }
  217. }
  218. }
  219. // 搜索表单
  220. .search-form {
  221. margin-bottom: 5px;
  222. .ant-form-item {
  223. margin-bottom: 10px;
  224. }
  225. .ant-form-item-control-wrapper {
  226. min-width: 220px;
  227. }
  228. .search-btn {
  229. .ant-form-item-control-wrapper {
  230. width: auto;
  231. min-width: auto;
  232. }
  233. }
  234. }
  235. // 列表页-操作按钮组
  236. .row-item-tab {
  237. &>button {
  238. margin-right: 5px;
  239. }
  240. }
  241. // 无边框的modal
  242. .ant-modal-root {
  243. &.noborder {
  244. .ant-modal-header {
  245. border-bottom: none;
  246. }
  247. .ant-modal-footer {
  248. border-top: none;
  249. }
  250. .ant-modal-body {
  251. padding: 5px 24px 15px 24px;
  252. }
  253. }
  254. }
  255. // 表格不允许换行
  256. .ant-table {
  257. td,
  258. th {
  259. white-space: nowrap;
  260. }
  261. }
  262. // Alert 警告提示 (banner)
  263. .ant-alert-banner {
  264. margin-bottom: 15px;
  265. padding-left: 40px;
  266. .ant-alert-message {
  267. font-size: @font-size-base;
  268. }
  269. // 黄色警告
  270. &.ant-alert-warning {
  271. background-color: #fffcee;
  272. border: 1px solid #fff0c1;
  273. }
  274. // 标题+描述
  275. &.ant-alert-with-description {
  276. padding-left: 55px;
  277. .ant-alert-icon {
  278. font-size: 18px;
  279. top: 16px;
  280. left: 25px;
  281. }
  282. .ant-alert-message {
  283. font-size: @font-size-base;
  284. margin-bottom: 6px;
  285. }
  286. .ant-alert-description {
  287. font-size: 12.3px;
  288. }
  289. }
  290. }
  291. span.ant-radio+* {
  292. color: rgba(0, 0, 0, .5)
  293. }