ruoyi.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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. // position: relative;
  112. height: 25px;
  113. margin-bottom: 10px;
  114. margin-top: 15px;
  115. padding: 10px 20px !important;
  116. }
  117. /* tree border */
  118. .tree-border {
  119. margin-top: 5px;
  120. border: 1px solid #e5e6e7;
  121. background: #ffffff none;
  122. border-radius: 4px;
  123. width: 100%;
  124. }
  125. .pagination-container .el-pagination {
  126. //right: 0;
  127. //position: absolute;
  128. }
  129. @media (max-width: 768px) {
  130. .pagination-container .el-pagination > .el-pagination__jump {
  131. display: none !important;
  132. }
  133. .pagination-container .el-pagination > .el-pagination__sizes {
  134. display: none !important;
  135. }
  136. }
  137. .el-table .fixed-width .el-button--small {
  138. padding-left: 0;
  139. padding-right: 0;
  140. width: inherit;
  141. }
  142. /** 表格更多操作下拉样式 */
  143. .el-table .el-dropdown-link {
  144. cursor: pointer;
  145. color: #409eff;
  146. margin-left: 10px;
  147. }
  148. .el-table .el-dropdown,
  149. .el-icon-arrow-down {
  150. font-size: 12px;
  151. }
  152. .el-tree-node__content > .el-checkbox {
  153. margin-right: 8px;
  154. }
  155. .list-group-striped > .list-group-item {
  156. border-left: 0;
  157. border-right: 0;
  158. border-radius: 0;
  159. padding-left: 0;
  160. padding-right: 0;
  161. }
  162. .list-group {
  163. padding-left: 0px;
  164. list-style: none;
  165. }
  166. .list-group-item {
  167. border-bottom: 1px solid #e7eaec;
  168. border-top: 1px solid #e7eaec;
  169. margin-bottom: -1px;
  170. padding: 11px 0px;
  171. font-size: 13px;
  172. }
  173. .pull-right {
  174. float: right !important;
  175. }
  176. .el-card__header {
  177. padding: 14px 15px 7px !important;
  178. min-height: 40px;
  179. }
  180. .el-card__body {
  181. padding: 15px 20px 20px 20px !important;
  182. }
  183. .card-box {
  184. padding-right: 15px;
  185. padding-left: 15px;
  186. margin-bottom: 10px;
  187. }
  188. /* button color */
  189. .el-button--cyan.is-active,
  190. .el-button--cyan:active {
  191. background: #20b2aa;
  192. border-color: #20b2aa;
  193. color: #ffffff;
  194. }
  195. .el-button--cyan:focus,
  196. .el-button--cyan:hover {
  197. background: #48d1cc;
  198. border-color: #48d1cc;
  199. color: #ffffff;
  200. }
  201. .el-button--cyan {
  202. background-color: #20b2aa;
  203. border-color: #20b2aa;
  204. color: #ffffff;
  205. }
  206. /* text color */
  207. .text-navy {
  208. color: #1ab394;
  209. }
  210. .text-primary {
  211. color: inherit;
  212. }
  213. .text-success {
  214. color: #1c84c6;
  215. }
  216. .text-info {
  217. color: #23c6c8;
  218. }
  219. .text-warning {
  220. color: #f8ac59;
  221. }
  222. .text-danger {
  223. color: #ed5565;
  224. }
  225. .text-muted {
  226. color: #888888;
  227. }
  228. /* image */
  229. .img-circle {
  230. border-radius: 50%;
  231. }
  232. .img-lg {
  233. width: 120px;
  234. height: 120px;
  235. }
  236. .avatar-upload-preview {
  237. position: absolute;
  238. top: 50%;
  239. transform: translate(50%, -50%);
  240. width: 200px;
  241. height: 200px;
  242. border-radius: 50%;
  243. box-shadow: 0 0 4px #ccc;
  244. overflow: hidden;
  245. }
  246. /* 拖拽列样式 */
  247. .sortable-ghost {
  248. opacity: 0.8;
  249. color: #fff !important;
  250. background: #42b983 !important;
  251. }
  252. /* 表格右侧工具栏样式 */
  253. .top-right-btn {
  254. margin-left: auto;
  255. }