ruoyi.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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,
  55. .h2,
  56. .h3,
  57. .h4,
  58. .h5,
  59. .h6,
  60. h1,
  61. h2,
  62. h3,
  63. h4,
  64. h5,
  65. h6 {
  66. font-family: inherit;
  67. font-weight: 500;
  68. line-height: 1.1;
  69. color: inherit;
  70. }
  71. .el-form .el-form-item__label {
  72. font-weight: 700;
  73. }
  74. .el-dialog:not(.is-fullscreen) {
  75. margin-top: 6vh !important;
  76. }
  77. .el-dialog.scrollbar .el-dialog__body {
  78. overflow: auto;
  79. overflow-x: hidden;
  80. max-height: 70vh;
  81. padding: 10px 20px 0;
  82. }
  83. .el-table {
  84. .el-table__header-wrapper,
  85. .el-table__fixed-header-wrapper {
  86. th {
  87. word-break: break-word;
  88. background-color: #EEEEEE !important;
  89. color: #515a6e;
  90. height: 50px !important;
  91. font-size: 14px;
  92. }
  93. }
  94. .el-table__body-wrapper {
  95. .el-button [class*="el-icon-"]+span {
  96. margin-left: 1px;
  97. }
  98. }
  99. }
  100. /** 表单布局 **/
  101. .form-header {
  102. font-size: 15px;
  103. color: #6379bb;
  104. border-bottom: 1px solid #ddd;
  105. margin: 8px 10px 25px 10px;
  106. padding-bottom: 5px
  107. }
  108. /** 表格布局 **/
  109. .pagination-container {
  110. // position: relative;
  111. height: 25px;
  112. margin-bottom: 10px;
  113. margin-top: 15px;
  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. .pagination-container .el-pagination {
  125. right: 0;
  126. position: absolute;
  127. }
  128. @media (max-width : 768px) {
  129. .pagination-container .el-pagination>.el-pagination__jump {
  130. display: none !important;
  131. }
  132. .pagination-container .el-pagination>.el-pagination__sizes {
  133. display: none !important;
  134. }
  135. }
  136. .el-table .fixed-width .el-button--small {
  137. padding-left: 0;
  138. padding-right: 0;
  139. width: inherit;
  140. }
  141. /** 表格更多操作下拉样式 */
  142. .el-table .el-dropdown-link {
  143. cursor: pointer;
  144. color: #409EFF;
  145. margin-left: 10px;
  146. }
  147. .el-table .el-dropdown,
  148. .el-icon-arrow-down {
  149. font-size: 12px;
  150. }
  151. .el-tree-node__content>.el-checkbox {
  152. margin-right: 8px;
  153. }
  154. .list-group-striped>.list-group-item {
  155. border-left: 0;
  156. border-right: 0;
  157. border-radius: 0;
  158. padding-left: 0;
  159. padding-right: 0;
  160. }
  161. .list-group {
  162. padding-left: 0px;
  163. list-style: none;
  164. }
  165. .list-group-item {
  166. border-bottom: 1px solid #e7eaec;
  167. border-top: 1px solid #e7eaec;
  168. margin-bottom: -1px;
  169. padding: 11px 0px;
  170. font-size: 13px;
  171. }
  172. .pull-right {
  173. float: right !important;
  174. }
  175. .el-card__header {
  176. padding: 14px 15px 7px !important;
  177. min-height: 40px;
  178. }
  179. .el-card {
  180. border: none !important;
  181. }
  182. .el-card__body {
  183. // padding: 15px 20px 20px 20px !important;
  184. padding: 15px !important;
  185. }
  186. .el-card.is-always-shadow {
  187. box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.12) !important;
  188. }
  189. .card-box {
  190. padding-right: 15px;
  191. padding-left: 15px;
  192. margin-bottom: 10px;
  193. }
  194. /* button color */
  195. .el-button--cyan.is-active,
  196. .el-button--cyan:active {
  197. background: #20B2AA;
  198. border-color: #20B2AA;
  199. color: #FFFFFF;
  200. }
  201. .el-button--cyan:focus,
  202. .el-button--cyan:hover {
  203. background: #48D1CC;
  204. border-color: #48D1CC;
  205. color: #FFFFFF;
  206. }
  207. .el-button--cyan {
  208. background-color: #20B2AA;
  209. border-color: #20B2AA;
  210. color: #FFFFFF;
  211. }
  212. /* text color */
  213. .text-navy {
  214. color: #1ab394;
  215. }
  216. .text-primary {
  217. color: inherit;
  218. }
  219. .text-success {
  220. color: #1c84c6;
  221. }
  222. .text-info {
  223. color: #23c6c8;
  224. }
  225. .text-warning {
  226. color: #f8ac59;
  227. }
  228. .text-danger {
  229. color: #ed5565;
  230. }
  231. .text-muted {
  232. color: #888888;
  233. }
  234. /* image */
  235. .img-circle {
  236. border-radius: 50%;
  237. }
  238. .img-lg {
  239. width: 120px;
  240. height: 120px;
  241. }
  242. .avatar-upload-preview {
  243. position: absolute;
  244. top: 50%;
  245. transform: translate(50%, -50%);
  246. width: 200px;
  247. height: 200px;
  248. border-radius: 50%;
  249. box-shadow: 0 0 4px #ccc;
  250. overflow: hidden;
  251. }
  252. /* 拖拽列样式 */
  253. .sortable-ghost {
  254. opacity: .8;
  255. color: #fff !important;
  256. background: #42b983 !important;
  257. }
  258. /* 表格右侧工具栏样式 */
  259. .top-right-btn {
  260. margin-left: auto;
  261. }