ruoyi.scss 4.8 KB

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