index.less 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. @import 'transition/index.less';
  2. @import 'var/index.less';
  3. @import 'public.less';
  4. @import 'ant/index.less';
  5. @import './theme.less';
  6. @import './entry.css';
  7. input:-webkit-autofill {
  8. -webkit-box-shadow: 0 0 0 1000px white inset !important;
  9. }
  10. :-webkit-autofill {
  11. transition: background-color 5000s ease-in-out 0s !important;
  12. }
  13. html {
  14. overflow: hidden;
  15. -webkit-text-size-adjust: 100%;
  16. }
  17. html,
  18. body {
  19. width: 100%;
  20. height: 100%;
  21. // body添加行高保持跟3.x一致
  22. line-height: 1.5715;
  23. &.color-weak {
  24. filter: invert(80%);
  25. }
  26. &.gray-mode {
  27. filter: grayscale(100%);
  28. filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
  29. }
  30. }
  31. a:focus,
  32. a:active,
  33. button,
  34. div,
  35. svg,
  36. span {
  37. outline: none !important;
  38. }
  39. // 保持 和 windi 一样的全局样式,减少升级带来的影响
  40. ul {
  41. list-style: none;
  42. margin: 0;
  43. padding: 0;
  44. }
  45. img,
  46. video {
  47. max-width: 100%;
  48. height: auto;
  49. }
  50. // 保持 和 windi 一样的全局样式,减少升级带来的影响
  51. // update-begin--author:liaozhiyang---date:20230925---for:【issues/5407】字段信息校验是多行提示会被遮挡
  52. .vxe-cell--valid-error-msg {
  53. white-space: nowrap;
  54. }
  55. // update-end--author:liaozhiyang---date:20230925---for:【issues/5407】字段信息校验是多行提示会被遮挡
  56. // update-begin--author:liaozhiyang---date:20231013---for:【QQYUN-5133】升级之后提示样式跟之前一致
  57. .vxe-table .vxe-body--row:last-child .vxe-cell--valid-error-hint {
  58. margin-top: auto;
  59. }
  60. .vxe-cell--valid-error-hint {
  61. margin-top: 6px;
  62. }
  63. .vxe-cell--valid-error-msg {
  64. display: inline-block;
  65. border-radius: 4px !important;
  66. padding: 8px 12px !important;
  67. color: #fff !important;
  68. background-color: #f56c6c !important;
  69. }
  70. // update-end--author:liaozhiyang---date:20231013---for:【QQYUN-5133】升级之后提示样式跟之前一致
  71. // update-begin--author:liaozhiyang---date:20231116---for:【QQYUN-7011】online表单多了一个蓝色的边框
  72. // .vxe-table.vxe-table--render-default .vxe-body--column.col--selected {
  73. // box-shadow: none;
  74. // }
  75. // update-end--author:liaozhiyang---date:20231116---for:【QQYUN-7011】online表单多了一个蓝色的边框
  76. // update-begin--author:liaozhiyang---date:20240424---for:【issues/1175】解决vxetable鼠标hover之后title显示不对的问题
  77. .vxe-cell {
  78. pointer-events: none;
  79. > * {
  80. pointer-events: auto;
  81. }
  82. }
  83. // update-end--author:liaozhiyang---date:20240424---for:【issues/1175】解决vxetable鼠标hover之后title显示不对的问题
  84. // update-begin--author:liaozhiyang---date:20240429---for:【QQYUN-9023】引导样式调整
  85. .introjs-tooltipReferenceLayer {
  86. .introjs-tooltip-title {
  87. font-size: 15px;
  88. }
  89. .introjs-skipbutton {
  90. font-size: 20px;
  91. line-height: 35px;
  92. height: 35px;
  93. width: 35px;
  94. font-weight: 500;
  95. }
  96. .introjs-tooltiptext {
  97. padding: 16px;
  98. font-size: 14px;
  99. }
  100. .introjs-bullets {
  101. padding-top: 0;
  102. padding-bottom: 8px;
  103. }
  104. .introjs-bullets ul li a {
  105. width: 4px;
  106. height: 4px;
  107. }
  108. .introjs-button {
  109. padding: 0.2rem 0.5rem;
  110. font-size: 13px;
  111. }
  112. }
  113. // update-end--author:liaozhiyang---date:20240429---for:【QQYUN-9023】引导样式调整
  114. // update-begin--author:liaozhiyang---date:20240605---for:【TV360X-857】online代码生成详情样式调整
  115. html[data-theme='light'] {
  116. .jeecg-form-detail-effect {
  117. *:not(.ant-select-selection-placeholder) {
  118. color: #606266 !important;
  119. }
  120. .ant-row label {
  121. color: #797c81 !important;
  122. }
  123. .ant-select-selector,
  124. .ant-btn,
  125. .ant-input,
  126. .ant-input-affix-wrapper,
  127. .ant-picker,
  128. .ant-input-number {
  129. // border: none !important;
  130. // color: rgba(51, 51, 51, 0.25) !important;
  131. color: #606266 !important;
  132. background-color: #f9f9fa !important;
  133. }
  134. a,
  135. .anticon {
  136. pointer-events: none;
  137. cursor: text;
  138. color: #606266 !important;
  139. &:hover {
  140. background: transparent;
  141. }
  142. }
  143. .ant-select.ant-select-disabled .ant-select-selection-item .ant-select-selection-item-content {
  144. color: #606266 !important;
  145. }
  146. .ant-select-selection-item {
  147. color: #606266 !important;
  148. }
  149. :where(.css-dev-only-do-not-override-dvamda).ant-picker .ant-picker-input > input-disabled,
  150. :where(.css-dev-only-do-not-override-dvamda).ant-picker .ant-picker-input > input[disabled] {
  151. color: #606266 !important;
  152. }
  153. .ant-select-selection-item {
  154. border-color: #eee !important;
  155. background-color: transparent !important;
  156. }
  157. //【QQYUN-13754】switch在禁用的方式下效果有问题:字体为黑色
  158. .ant-switch-disabled .ant-switch-inner-checked,
  159. .ant-switch-inner-unchecked {
  160. color: #fff !important;
  161. }
  162. }
  163. }
  164. html[data-theme='dark'] {
  165. .jeecg-form-detail-effect {
  166. * {
  167. color: #606266;
  168. }
  169. .ant-upload-text-icon,
  170. a {
  171. color: rgba(255, 255, 255, 0.25);
  172. }
  173. .ant-select-selector,
  174. .ant-btn,
  175. .ant-input,
  176. .ant-input-affix-wrapper,
  177. .ant-picker,
  178. .ant-input-number {
  179. background-color: transparent !important;
  180. }
  181. .ant-select-selection-item {
  182. background-color: transparent !important;
  183. }
  184. // 暗黑模式下输入框等icon隐藏
  185. .ant-picker-suffix,
  186. .ant-select-arrow {
  187. content: ' ';
  188. display: none;
  189. }
  190. }
  191. }
  192. .jeecg-form-detail-effect {
  193. .ant-select-selector,
  194. .ant-btn,
  195. .ant-input,
  196. .ant-input-affix-wrapper,
  197. .ant-picker,
  198. .ant-input-number {
  199. border: none !important;
  200. }
  201. a,
  202. .anticon {
  203. pointer-events: none;
  204. cursor: text;
  205. &:hover {
  206. background: transparent;
  207. }
  208. }
  209. .ant-picker {
  210. width: 100%;
  211. }
  212. textarea {
  213. resize: none !important;
  214. }
  215. input {
  216. border: none !important;
  217. }
  218. input,
  219. textarea {
  220. user-select: auto;
  221. cursor: text !important;
  222. }
  223. .JSelectDept,
  224. .JselectUser,
  225. .JSelectPosition {
  226. > div {
  227. > .ant-row {
  228. .left {
  229. width: 100%;
  230. }
  231. .right {
  232. display: none;
  233. }
  234. }
  235. }
  236. }
  237. .ant-select-selection-item-remove {
  238. display: none;
  239. }
  240. .jeecg-j-upload-container {
  241. .ant-upload {
  242. display: none;
  243. }
  244. .ant-upload-list-item-done {
  245. a {
  246. pointer-events: auto !important;
  247. cursor: pointer !important;
  248. }
  249. .ant-upload-list-item-actions {
  250. display: none;
  251. }
  252. }
  253. }
  254. .ant-upload-picture-card-wrapper {
  255. .ant-upload {
  256. pointer-events: none;
  257. cursor: not-allowed;
  258. .ant-upload-text,
  259. .anticon {
  260. display: none;
  261. }
  262. }
  263. .ant-upload-list-item-done {
  264. a {
  265. pointer-events: auto !important;
  266. cursor: pointer !important;
  267. }
  268. .ant-btn {
  269. display: none;
  270. }
  271. }
  272. }
  273. }
  274. // update-end--author:liaozhiyang---date:20240605---for:【TV360X-857】online代码生成详情样式调整
  275. // update-begin--author:wangshuai---date:20240611---for:【TV360X-1070】一对多内嵌,为什么多这一块,不从头对齐
  276. .ant-table-wrapper .ant-table.ant-table-middle .ant-table-tbody .ant-table-wrapper:only-child .ant-table {
  277. margin-block: 0;
  278. margin-inline: 0;
  279. }
  280. // update-end--author:wangshuai---date:20240611---for:【TV360X-1070】一对多内嵌,为什么多这一块,不从头对齐
  281. // 单行文本溢出省略号
  282. .ellipsis {
  283. text-overflow: ellipsis;
  284. overflow: hidden;
  285. white-space: nowrap;
  286. }
  287. // 两行省略
  288. .ellipsis-2 {
  289. display: -webkit-box;
  290. overflow: hidden;
  291. text-overflow: ellipsis;
  292. -webkit-line-clamp: 2;
  293. -webkit-box-orient: vertical;
  294. word-break: break-all;
  295. }
  296. // 三行省略
  297. .ellipsis-3 {
  298. display: -webkit-box;
  299. overflow: hidden;
  300. text-overflow: ellipsis;
  301. -webkit-line-clamp: 3;
  302. -webkit-box-orient: vertical;
  303. }
  304. .table-action-item {
  305. &.color-red {
  306. color: red !important;
  307. }
  308. }
  309. .action-btn {
  310. cursor: pointer;
  311. border: none;
  312. // padding: 4px;
  313. }