index.less 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. @import './pagination.less';
  2. @import './input.less';
  3. @import './btn.less';
  4. // @import './table.less';
  5. .ant-image-preview-root {
  6. img {
  7. display: unset;
  8. }
  9. }
  10. // span.anticon:not(.jeesite-icon) {
  11. // vertical-align: 0.125em !important;
  12. // }
  13. .ant-back-top {
  14. right: 20px;
  15. bottom: 20px;
  16. }
  17. .collapse-container__body {
  18. > .ant-descriptions {
  19. margin-left: 6px;
  20. }
  21. }
  22. .ant-image-preview-operations {
  23. background-color: rgb(0 0 0 / 30%);
  24. }
  25. .ant-popover {
  26. &-content {
  27. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  28. }
  29. }
  30. .ant-modal > div[aria-hidden='true'] {
  31. display: none !important;
  32. }
  33. .ant-modal:not(.jeesite-basic-modal):not(.ant-modal-confirm) {
  34. .ant-modal-content {
  35. padding: 0;
  36. border-radius: 8px;
  37. overflow: hidden;
  38. }
  39. .ant-modal-header {
  40. padding: 12px 16px;
  41. margin-bottom: 0;
  42. border-bottom: 1px solid #e5e7eb;
  43. background: @modal-header-bg-color;
  44. }
  45. .ant-modal-title {
  46. font-size: 16px;
  47. font-weight: 600;
  48. line-height: 24px;
  49. color: #111827;
  50. }
  51. .ant-modal-body {
  52. padding: 16px;
  53. }
  54. .ant-modal-footer {
  55. padding: 8px 16px 10px;
  56. margin-top: 0;
  57. border-top: 1px solid #e5e7eb;
  58. background: #fff;
  59. text-align: right;
  60. }
  61. }
  62. .ant-modal:not(.ant-modal-confirm) {
  63. .ant-modal-footer > .ant-btn,
  64. .ant-modal-footer > .basic-modal-footer-actions,
  65. .ant-modal-footer > .template-create-footer,
  66. .ant-modal-footer > .govern-config-footer,
  67. .ant-modal-footer > .analysis-condition-modal__footer {
  68. .ant-btn {
  69. min-width: 72px;
  70. height: 36px;
  71. padding: 0 18px;
  72. border-radius: 18px;
  73. border-width: 1px;
  74. font-size: 14px;
  75. font-weight: 500;
  76. box-shadow: none;
  77. }
  78. .ant-btn-default {
  79. border-color: #d1d5db;
  80. color: #374151;
  81. background: #fff;
  82. &:hover,
  83. &:focus,
  84. &:not(:disabled):hover,
  85. &:not(:disabled):focus {
  86. border-color: #cbd5e1;
  87. color: #1f2937;
  88. background: #f8fafc;
  89. }
  90. }
  91. .ant-btn-primary {
  92. border-color: #3150e6;
  93. background: #3150e6;
  94. color: #fff;
  95. box-shadow: 0 6px 16px rgba(49, 80, 230, 0.18);
  96. &:hover,
  97. &:focus,
  98. &:not(:disabled):hover,
  99. &:not(:disabled):focus {
  100. border-color: #3f5de6;
  101. background: #3f5de6;
  102. color: #fff;
  103. box-shadow: 0 8px 18px rgba(63, 93, 230, 0.22);
  104. }
  105. }
  106. }
  107. .ant-modal-footer > .ant-btn {
  108. margin-left: 0;
  109. & + .ant-btn {
  110. margin-left: 12px;
  111. }
  112. }
  113. .ant-modal-footer > .basic-modal-footer-actions,
  114. .ant-modal-footer > .template-create-footer,
  115. .ant-modal-footer > .govern-config-footer,
  116. .ant-modal-footer > .analysis-condition-modal__footer {
  117. display: flex;
  118. align-items: center;
  119. justify-content: flex-end;
  120. gap: 12px;
  121. .ant-btn + .ant-btn {
  122. margin-left: 0;
  123. }
  124. }
  125. }
  126. // =================================
  127. // ========= modal message =========
  128. // =================================
  129. .modal-icon-warning {
  130. color: @warning-color !important;
  131. }
  132. .modal-icon-success {
  133. color: @success-color !important;
  134. }
  135. .modal-icon-error {
  136. color: @error-color !important;
  137. }
  138. .modal-icon-info {
  139. color: @primary-color !important;
  140. }
  141. .modal-posfull-content {
  142. max-height: 300px;
  143. overflow-y: auto;
  144. }
  145. // =================================
  146. // ======= common components =======
  147. // =================================
  148. .ant-checkbox-checked .ant-checkbox-inner::after,
  149. .ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {
  150. border-top: 0 !important;
  151. border-left: 0 !important;
  152. }
  153. .ant-tree,
  154. .ant-select-tree {
  155. // &-list-holder {
  156. // overflow-x: hidden !important;
  157. // }
  158. &-list-scrollbar-show {
  159. display: block !important;
  160. width: 6px !important;
  161. }
  162. &-list-scrollbar-thumb {
  163. background: rgb(0 0 0 / 20%) !important;
  164. }
  165. }
  166. .ant-tag {
  167. font-size: 14px !important;
  168. }
  169. html[data-theme='dark'] {
  170. h1,
  171. h2,
  172. h3,
  173. h4,
  174. h5,
  175. h6 {
  176. color: rgb(255 255 255 / 65%);
  177. }
  178. .ant-tree,
  179. .ant-select-tree {
  180. &-list-scrollbar-thumb {
  181. background: rgb(255 255 255 / 20%) !important;
  182. }
  183. }
  184. }
  185. // fix unocss for login.vue
  186. @media (max-width: @screen-md) {
  187. .md\:hidden {
  188. display: none;
  189. }
  190. }