ruoyi.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. /**
  2. * 通用css样式布局处理
  3. * Copyright (c) 2019 yujin
  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. .d-flex {
  55. display: flex;
  56. }
  57. .f-w-w {
  58. flex-wrap: wrap;
  59. }
  60. .a-c {
  61. align-items: center;
  62. }
  63. .j-c {
  64. justify-content: center;
  65. }
  66. .j-ed {
  67. justify-content: flex-end;
  68. }
  69. .flex-cln {
  70. flex-direction: column;
  71. }
  72. .j-sb {
  73. justify-content: space-between;
  74. }
  75. .flex-w {
  76. flex-wrap: wrap;
  77. }
  78. .flex-at {
  79. flex: auto;
  80. }
  81. .flex1 {
  82. flex: 1;
  83. }
  84. .ov-hd {
  85. overflow: hidden;
  86. }
  87. .p-rtv {
  88. position: relative;
  89. }
  90. .f-w-4 {
  91. font-weight: 400;
  92. }
  93. .f-w-5 {
  94. font-weight: 500;
  95. }
  96. .f-w-6 {
  97. font-weight: 600;
  98. }
  99. .f-w-7 {
  100. font-weight: 700;
  101. }
  102. .h1,
  103. .h2,
  104. .h3,
  105. .h4,
  106. .h5,
  107. .h6,
  108. h1,
  109. h2,
  110. h3,
  111. h4,
  112. h5,
  113. h6 {
  114. font-family: inherit;
  115. font-weight: 500;
  116. line-height: 1.1;
  117. color: inherit;
  118. }
  119. .el-form .el-form-item__label {
  120. font-weight: 700;
  121. }
  122. .el-dialog:not(.is-fullscreen) {
  123. margin-top: 6vh !important;
  124. }
  125. .el-dialog.scrollbar .el-dialog__body {
  126. overflow: auto;
  127. overflow-x: hidden;
  128. max-height: 70vh;
  129. padding: 10px 20px 0;
  130. }
  131. .el-table {
  132. .el-table__header-wrapper,
  133. .el-table__fixed-header-wrapper {
  134. th {
  135. word-break: break-word;
  136. background-color: $table-header-bg !important;
  137. color: $table-header-text-color;
  138. height: 40px !important;
  139. font-size: 13px;
  140. }
  141. }
  142. .el-table__body-wrapper {
  143. .el-button [class*='el-icon-'] + span {
  144. margin-left: 1px;
  145. }
  146. }
  147. }
  148. /** 表单布局 **/
  149. .form-header {
  150. font-size: 15px;
  151. color: #6379bb;
  152. border-bottom: 1px solid #ddd;
  153. margin: 8px 10px 25px 10px;
  154. padding-bottom: 5px;
  155. }
  156. /* tree border */
  157. .tree-border {
  158. margin-top: 5px;
  159. border: 1px solid #e5e6e7;
  160. background: #ffffff none;
  161. border-radius: 4px;
  162. width: 100%;
  163. }
  164. @media (max-width: 768px) {
  165. .pagination-container .el-pagination > .el-pagination__jump {
  166. display: none !important;
  167. }
  168. .pagination-container .el-pagination > .el-pagination__sizes {
  169. display: none !important;
  170. }
  171. }
  172. .el-table .fixed-width .el-button--small {
  173. padding-left: 0;
  174. padding-right: 0;
  175. width: inherit;
  176. }
  177. /** 表格更多操作下拉样式 */
  178. .el-table .el-dropdown-link {
  179. cursor: pointer;
  180. color: #409eff;
  181. margin-left: 10px;
  182. }
  183. .el-table .el-dropdown,
  184. .el-icon-arrow-down {
  185. font-size: 12px;
  186. }
  187. .el-tree-node__content > .el-checkbox {
  188. margin-right: 8px;
  189. }
  190. .list-group-striped > .list-group-item {
  191. border-left: 0;
  192. border-right: 0;
  193. border-radius: 0;
  194. padding-left: 0;
  195. padding-right: 0;
  196. }
  197. .list-group {
  198. padding-left: 0px;
  199. list-style: none;
  200. }
  201. .list-group-item {
  202. border-bottom: 1px solid #e7eaec;
  203. border-top: 1px solid #e7eaec;
  204. margin-bottom: -1px;
  205. padding: 11px 0px;
  206. font-size: 13px;
  207. }
  208. .pull-right {
  209. float: right !important;
  210. }
  211. .el-card__header {
  212. padding: 14px 15px 7px !important;
  213. min-height: 40px;
  214. }
  215. .el-card__body {
  216. padding: 15px 20px 20px 20px !important;
  217. }
  218. .card-box {
  219. padding-right: 15px;
  220. padding-left: 15px;
  221. margin-bottom: 10px;
  222. }
  223. /* button color */
  224. .el-button--cyan.is-active,
  225. .el-button--cyan:active {
  226. background: #20b2aa;
  227. border-color: #20b2aa;
  228. color: #ffffff;
  229. }
  230. .el-button--cyan:focus,
  231. .el-button--cyan:hover {
  232. background: #48d1cc;
  233. border-color: #48d1cc;
  234. color: #ffffff;
  235. }
  236. .el-button--cyan {
  237. background-color: #20b2aa;
  238. border-color: #20b2aa;
  239. color: #ffffff;
  240. }
  241. /* text color */
  242. .text-navy {
  243. color: #1ab394;
  244. }
  245. .text-primary {
  246. color: inherit;
  247. }
  248. .text-success {
  249. color: #1c84c6;
  250. }
  251. .text-info {
  252. color: #23c6c8;
  253. }
  254. .text-warning {
  255. color: #f8ac59;
  256. }
  257. .text-danger {
  258. color: #ed5565;
  259. }
  260. .text-muted {
  261. color: #888888;
  262. }
  263. /* image */
  264. .img-circle {
  265. border-radius: 50%;
  266. }
  267. .img-lg {
  268. width: 120px;
  269. height: 120px;
  270. }
  271. /* 拖拽列样式 */
  272. .sortable-ghost {
  273. opacity: 0.8;
  274. color: #fff !important;
  275. background: #42b983 !important;
  276. }
  277. /* 表格右侧工具栏样式 */
  278. .top-right-btn {
  279. margin-left: auto;
  280. }
  281. $colors: (
  282. 333: #333,
  283. 666: #666,
  284. 999: #999,
  285. fff: #fff,
  286. ccc: #ccc,
  287. eee: #eee,
  288. ddd: #ddd,
  289. fa: #FAFAFA,
  290. // 主题色
  291. primary: #2A6D52,
  292. light-black: #4D4D4D,
  293. // 成功
  294. success: #67C23A,
  295. // 警告
  296. warning: #E6A23C,
  297. // 失败
  298. danger: #F56C6C,
  299. // 会员绿
  300. member-green: #41C06D,
  301. // 待审核
  302. res-0: #E6A23C,
  303. // 审核通过
  304. res-1: #67C23A,
  305. // 审核失败
  306. res-2: #F56C6C,
  307. );
  308. @each $color, $value in $colors {
  309. .c-#{$color} {
  310. color: $value;
  311. }
  312. }
  313. @each $color, $value in $colors {
  314. .bg-#{$color} {
  315. background-color: $value;
  316. }
  317. }
  318. .p-3 {
  319. display: flex;
  320. flex-direction: column;
  321. box-sizing: border-box;
  322. padding: 16px;
  323. height: calc(100vh - 88px);
  324. }
  325. .border-bottom {
  326. border-bottom: 1px solid var(--border-color);
  327. }
  328. .over-auto {
  329. overflow-y: auto;
  330. }
  331. .info-title {
  332. position: relative;
  333. padding-left: 20px;
  334. &::before {
  335. content: '';
  336. position: absolute;
  337. top: 0;
  338. bottom: 0;
  339. left: 0;
  340. margin: auto;
  341. background-color: var(--el-color-primary);
  342. width: 2px;
  343. height: 16px;
  344. }
  345. }
  346. .c-s-p {
  347. cursor: pointer;
  348. }