ruoyi.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. @use './variables.module.scss' as *;
  2. /**
  3. * 通用css样式布局处理
  4. * Copyright (c) 2019 ruoyi
  5. */
  6. /** 基础通用 **/
  7. .pt5 {
  8. padding-top: 5px;
  9. }
  10. .pr5 {
  11. padding-right: 5px;
  12. }
  13. .pb5 {
  14. padding-bottom: 5px;
  15. }
  16. .mt5 {
  17. margin-top: 5px;
  18. }
  19. .mr5 {
  20. margin-right: 5px;
  21. }
  22. .mb5 {
  23. margin-bottom: 5px;
  24. }
  25. .mb8 {
  26. margin-bottom: 8px;
  27. }
  28. .ml5 {
  29. margin-left: 5px;
  30. }
  31. .mt10 {
  32. margin-top: 10px;
  33. }
  34. .mr10 {
  35. margin-right: 10px;
  36. }
  37. .mb10 {
  38. margin-bottom: 10px;
  39. }
  40. .ml10 {
  41. margin-left: 10px;
  42. }
  43. .mt20 {
  44. margin-top: 20px;
  45. }
  46. .mr20 {
  47. margin-right: 20px;
  48. }
  49. .mb20 {
  50. margin-bottom: 20px;
  51. }
  52. .ml20 {
  53. margin-left: 20px;
  54. }
  55. .h1,
  56. .h2,
  57. .h3,
  58. .h4,
  59. .h5,
  60. .h6,
  61. h1,
  62. h2,
  63. h3,
  64. h4,
  65. h5,
  66. h6 {
  67. font-family: inherit;
  68. font-weight: 500;
  69. line-height: 1.1;
  70. color: inherit;
  71. }
  72. .el-form .el-form-item__label {
  73. font-weight: 700;
  74. }
  75. // .el-dialog:not(.is-fullscreen) {
  76. // margin-top: 6vh !important;
  77. // }
  78. .el-dialog.scrollbar .el-dialog__body {
  79. overflow: auto;
  80. overflow-x: hidden;
  81. max-height: 70vh;
  82. padding: 10px 20px 0;
  83. }
  84. .el-table {
  85. .el-table__header-wrapper,
  86. .el-table__fixed-header-wrapper {
  87. th {
  88. word-break: break-word;
  89. background-color: $table-header-bg !important;
  90. color: $table-header-text-color;
  91. height: 40px !important;
  92. font-size: 13px;
  93. }
  94. }
  95. .el-table__body-wrapper {
  96. .el-button [class*='el-icon-'] + span {
  97. margin-left: 1px;
  98. }
  99. }
  100. }
  101. /** 表单布局 **/
  102. .form-header {
  103. font-size: 15px;
  104. color: #6379bb;
  105. border-bottom: 1px solid #ddd;
  106. margin: 8px 10px 25px 10px;
  107. padding-bottom: 5px;
  108. }
  109. /** 表格布局 **/
  110. .pagination-container {
  111. display: flex;
  112. justify-content: flex-end;
  113. margin-top: 20px;
  114. padding: 10px 20px !important;
  115. }
  116. /* tree border */
  117. .tree-border {
  118. margin-top: 5px;
  119. border: 1px solid #e5e6e7;
  120. background: #ffffff none;
  121. border-radius: 4px;
  122. width: 100%;
  123. }
  124. @media (max-width: 768px) {
  125. .pagination-container .el-pagination > .el-pagination__jump {
  126. display: none !important;
  127. }
  128. .pagination-container .el-pagination > .el-pagination__sizes {
  129. display: none !important;
  130. }
  131. }
  132. .el-table .fixed-width .el-button--small {
  133. padding-left: 0;
  134. padding-right: 0;
  135. width: inherit;
  136. }
  137. /** 表格更多操作下拉样式 */
  138. .el-table .el-dropdown-link {
  139. cursor: pointer;
  140. color: #409eff;
  141. margin-left: 10px;
  142. }
  143. .el-table .el-dropdown,
  144. .el-icon-arrow-down {
  145. font-size: 12px;
  146. }
  147. .el-tree-node__content > .el-checkbox {
  148. margin-right: 8px;
  149. }
  150. .list-group-striped > .list-group-item {
  151. border-left: 0;
  152. border-right: 0;
  153. border-radius: 0;
  154. padding-left: 0;
  155. padding-right: 0;
  156. }
  157. .list-group {
  158. padding-left: 0px;
  159. list-style: none;
  160. }
  161. .list-group-item {
  162. border-bottom: 1px solid #e7eaec;
  163. border-top: 1px solid #e7eaec;
  164. margin-bottom: -1px;
  165. padding: 11px 0px;
  166. font-size: 13px;
  167. }
  168. .pull-right {
  169. float: right !important;
  170. }
  171. .el-card__header {
  172. padding: 14px 20px 14px !important;
  173. min-height: 40px;
  174. }
  175. .el-card__body {
  176. padding: 15px 20px 20px 20px !important;
  177. }
  178. .card-box {
  179. margin-bottom: 10px;
  180. }
  181. /* button color */
  182. .el-button--cyan.is-active,
  183. .el-button--cyan:active {
  184. background: #20b2aa;
  185. border-color: #20b2aa;
  186. color: #ffffff;
  187. }
  188. .el-button--cyan:focus,
  189. .el-button--cyan:hover {
  190. background: #48d1cc;
  191. border-color: #48d1cc;
  192. color: #ffffff;
  193. }
  194. .el-button--cyan {
  195. background-color: #20b2aa;
  196. border-color: #20b2aa;
  197. color: #ffffff;
  198. }
  199. /* text color */
  200. .text-navy {
  201. color: #1ab394;
  202. }
  203. .text-primary {
  204. color: inherit;
  205. }
  206. .text-success {
  207. color: #1c84c6;
  208. }
  209. .text-info {
  210. color: #23c6c8;
  211. }
  212. .text-warning {
  213. color: #f8ac59;
  214. }
  215. .text-danger {
  216. color: #ed5565;
  217. }
  218. .text-muted {
  219. color: #888888;
  220. }
  221. /* image */
  222. .img-circle {
  223. border-radius: 50%;
  224. }
  225. .img-lg {
  226. width: 120px;
  227. height: 120px;
  228. }
  229. .avatar-upload-preview {
  230. position: absolute;
  231. top: 50%;
  232. transform: translate(50%, -50%);
  233. width: 200px;
  234. height: 200px;
  235. border-radius: 50%;
  236. box-shadow: 0 0 4px #ccc;
  237. overflow: hidden;
  238. }
  239. /* 拖拽列样式 */
  240. .sortable-ghost {
  241. opacity: 0.8;
  242. color: #fff !important;
  243. background: #42b983 !important;
  244. }
  245. /* 表格右侧工具栏样式 */
  246. .top-right-btn {
  247. margin-left: auto;
  248. }