ruoyi.scss 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  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--inline {
  61. .el-form-item {
  62. .el-input, .el-cascader, .el-select, .el-autocomplete {
  63. width: 200px;
  64. }
  65. }
  66. }
  67. .el-form .el-form-item__label {
  68. font-weight: 700;
  69. }
  70. .el-dialog:not(.is-fullscreen) {
  71. margin-top: 6vh !important;
  72. }
  73. .el-dialog.scrollbar .el-dialog__body {
  74. overflow: auto;
  75. overflow-x: hidden;
  76. max-height: 70vh;
  77. padding: 10px 20px 0;
  78. }
  79. .el-table {
  80. .el-table__header-wrapper, .el-table__fixed-header-wrapper {
  81. th {
  82. word-break: break-word;
  83. background-color: #f8f8f9 !important;
  84. color: #515a6e;
  85. height: 40px !important;
  86. font-size: 13px;
  87. }
  88. }
  89. .el-table__body-wrapper {
  90. .el-button [class*="el-icon-"] + span {
  91. margin-left: 1px;
  92. }
  93. }
  94. }
  95. /** 表单布局 **/
  96. .form-header {
  97. font-size:15px;
  98. color:#6379bb;
  99. border-bottom:1px solid #ddd;
  100. margin:8px 10px 25px 10px;
  101. padding-bottom:5px
  102. }
  103. /** 表格布局 **/
  104. .pagination-container {
  105. display: flex;
  106. justify-content: flex-end;
  107. margin-top: 20px;
  108. background-color: transparent !important;
  109. }
  110. /* 弹窗中的分页器 */
  111. .el-dialog .pagination-container {
  112. position: static !important;
  113. margin: 10px 0 0 0;
  114. padding: 0 !important;
  115. .el-pagination {
  116. position: static;
  117. }
  118. }
  119. /* 移动端适配 */
  120. @media (max-width: 768px) {
  121. .pagination-container {
  122. .el-pagination {
  123. > .el-pagination__jump {
  124. display: none !important;
  125. }
  126. > .el-pagination__sizes {
  127. display: none !important;
  128. }
  129. }
  130. }
  131. }
  132. /* tree border */
  133. .tree-border {
  134. margin-top: 5px;
  135. border: 1px solid var(--el-border-color-light, #e5e6e7);
  136. background: var(--el-bg-color, #FFFFFF) none;
  137. border-radius:4px;
  138. width: 100%;
  139. }
  140. .el-table .fixed-width .el-button--small {
  141. padding-left: 0;
  142. padding-right: 0;
  143. width: inherit;
  144. }
  145. /* horizontal el menu */
  146. .el-menu--horizontal .el-menu-item .svg-icon + span,
  147. .el-menu--horizontal .el-sub-menu__title .svg-icon + span {
  148. margin-left: 3px;
  149. }
  150. .el-menu--horizontal .el-menu--popup {
  151. min-width: 120px !important;
  152. }
  153. /** 表格更多操作下拉样式 */
  154. .el-table .el-dropdown-link {
  155. cursor: pointer;
  156. color: #409EFF;
  157. margin-left: 10px;
  158. }
  159. .el-table .el-dropdown, .el-icon-arrow-down {
  160. font-size: 12px;
  161. }
  162. .el-tree-node__content > .el-checkbox {
  163. margin-right: 8px;
  164. }
  165. .list-group-striped > .list-group-item {
  166. border-left: 0;
  167. border-right: 0;
  168. border-radius: 0;
  169. padding-left: 0;
  170. padding-right: 0;
  171. }
  172. .list-group {
  173. padding-left: 0px;
  174. list-style: none;
  175. }
  176. .list-group-item {
  177. border-bottom: 1px solid #e7eaec;
  178. border-top: 1px solid #e7eaec;
  179. margin-bottom: -1px;
  180. padding: 11px 0px;
  181. font-size: 13px;
  182. }
  183. .pull-right {
  184. float: right !important;
  185. }
  186. .el-card__header {
  187. padding: 14px 15px 7px !important;
  188. min-height: 40px;
  189. }
  190. .el-card__body {
  191. padding: 15px 20px 20px 20px !important;
  192. }
  193. .card-box {
  194. margin-bottom: 10px;
  195. }
  196. /* button color */
  197. .el-button--cyan.is-active,
  198. .el-button--cyan:active {
  199. background: #20B2AA;
  200. border-color: #20B2AA;
  201. color: #FFFFFF;
  202. }
  203. .el-button--cyan:focus,
  204. .el-button--cyan:hover {
  205. background: #48D1CC;
  206. border-color: #48D1CC;
  207. color: #FFFFFF;
  208. }
  209. .el-button--cyan {
  210. background-color: #20B2AA;
  211. border-color: #20B2AA;
  212. color: #FFFFFF;
  213. }
  214. /** 详细卡片样式 */
  215. .detail-drawer {
  216. .el-drawer__body {
  217. padding: 0;
  218. }
  219. .el-drawer__header {
  220. margin-bottom: 6px;
  221. padding: 8px 12px 6px;
  222. font-size: 15px;
  223. color: #303133;
  224. background: #f8f8f8;
  225. }
  226. .section-header {
  227. font-size: 15px;
  228. color: #6379bb;
  229. border-bottom: 1px solid #ddd;
  230. margin: 12px 0 16px 0;
  231. padding-bottom: 8px;
  232. }
  233. .drawer-content {
  234. padding: 0 20px 20px 20px;
  235. .info-item {
  236. display: flex;
  237. align-items: flex-start;
  238. padding: 8px 0;
  239. min-height: 40px;
  240. }
  241. .info-label {
  242. flex-shrink: 0;
  243. width: 200px;
  244. color: #606266;
  245. font-size: 13px;
  246. line-height: 1.6;
  247. padding-top: 4px;
  248. text-align: right;
  249. margin-right: 14px;
  250. }
  251. .info-value {
  252. flex: 1;
  253. color: #303133;
  254. font-size: 13px;
  255. font-weight: 500;
  256. line-height: 1.6;
  257. word-break: break-all;
  258. padding-top: 4px;
  259. min-height: 1.6em;
  260. &.plaintext {
  261. border-bottom: 1px dashed #dde1e6;
  262. }
  263. }
  264. }
  265. }
  266. .detail-wrap { padding: 0 4px; }
  267. .detail-card {
  268. border: 1px solid #ebeef5;
  269. border-radius: 6px;
  270. margin-bottom: 14px;
  271. overflow: hidden;
  272. }
  273. .detail-card-title {
  274. background: #f7f9fb;
  275. padding: 8px 16px;
  276. font-size: 13px;
  277. font-weight: 600;
  278. color: #333;
  279. border-bottom: 1px solid #ebeef5;
  280. }
  281. .detail-card-title i { margin-right: 5px; color: #409EFF; }
  282. .detail-row { padding: 0 8px; }
  283. .detail-item {
  284. display: flex;
  285. align-items: flex-start;
  286. padding: 10px 8px;
  287. font-size: 13px;
  288. border-bottom: 1px solid #f5f7fa;
  289. }
  290. .detail-item:last-child { border-bottom: none; }
  291. .detail-label {
  292. flex-shrink: 0;
  293. width: 72px;
  294. color: #909399;
  295. margin-right: 12px;
  296. }
  297. .detail-value { color: #303133; flex: 1; word-break: break-all; }
  298. .detail-location { color: #999; font-size: 12px; }
  299. .method-tag {
  300. display: inline-block;
  301. padding: 1px 7px;
  302. border-radius: 3px;
  303. font-size: 11px;
  304. font-weight: 700;
  305. margin-right: 6px;
  306. vertical-align: middle;
  307. }
  308. .mono { font-family: Consolas, 'SFMono-Regular', monospace; font-size: 12px; }
  309. .code-body { padding: 14px; }
  310. .code-wrap {
  311. background: #f7f9fb;
  312. border: 1px solid #e8ecf0;
  313. border-radius: 4px;
  314. overflow: hidden;
  315. max-height: 260px;
  316. position: relative;
  317. }
  318. .code-action {
  319. position: absolute;
  320. top: 8px;
  321. right: 8px;
  322. z-index: 10;
  323. margin: 0;
  324. padding: 0;
  325. }
  326. .code-action .el-button {
  327. height: 24px;
  328. font-size: 12px;
  329. padding: 4px 8px;
  330. background: rgba(255, 255, 255, 0.9);
  331. border: 1px solid #dcdcdc;
  332. }
  333. .code-action .el-button:hover {
  334. background: #ffffff;
  335. border-color: #409EFF;
  336. }
  337. .code-pre {
  338. margin: 0;
  339. padding: 12px 14px;
  340. font-size: 12px;
  341. line-height: 1.6;
  342. font-family: Consolas, 'SFMono-Regular', monospace;
  343. color: #444;
  344. white-space: pre-wrap;
  345. word-break: break-all;
  346. overflow: auto;
  347. max-height: 240px;
  348. display: block;
  349. }
  350. /* tree-sidebar content */
  351. .tree-sidebar-manage-wrap {
  352. display: flex;
  353. gap: 0;
  354. min-height: calc(100vh - 130px);
  355. padding: 0 !important;
  356. overflow: hidden;
  357. }
  358. .tree-sidebar-content {
  359. flex: 1;
  360. min-width: 0;
  361. overflow: hidden;
  362. background: #fff;
  363. .content-inner {
  364. padding: 12px 16px;
  365. height: 100%;
  366. overflow-y: auto;
  367. }
  368. }
  369. /* error */
  370. .error-title { color: #c0392b !important; }
  371. .error-title i { color: #c0392b !important; }
  372. .error-body { padding: 12px 16px; }
  373. .error-msg {
  374. background: #fff8f8;
  375. border-left: 3px solid #e74c3c;
  376. border-radius: 3px;
  377. padding: 8px 12px;
  378. color: #c0392b;
  379. font-size: 12px;
  380. line-height: 1.7;
  381. word-break: break-all;
  382. white-space: pre-wrap;
  383. }
  384. /* http method */
  385. .method-GET { background: #e8f5e9; color: #27ae60; }
  386. .method-POST { background: #e3f2fd; color: #1565c0; }
  387. .method-PUT { background: #fff3e0; color: #e65100; }
  388. .method-DELETE { background: #ffebee; color: #c62828; }
  389. /* text color */
  390. .text-navy {
  391. color: #1ab394;
  392. }
  393. .text-primary {
  394. color: inherit;
  395. }
  396. .text-success {
  397. color: #1c84c6;
  398. }
  399. .text-info {
  400. color: #23c6c8;
  401. }
  402. .text-warning {
  403. color: #f8ac59;
  404. }
  405. .text-danger {
  406. color: #ed5565;
  407. }
  408. .text-muted {
  409. color: #888888;
  410. }
  411. /* image */
  412. .img-circle {
  413. border-radius: 50%;
  414. }
  415. .img-lg {
  416. width: 120px;
  417. height: 120px;
  418. }
  419. .avatar-upload-preview {
  420. position: absolute;
  421. top: 50%;
  422. transform: translate(50%, -50%);
  423. width: 200px;
  424. height: 200px;
  425. border-radius: 50%;
  426. box-shadow: 0 0 4px #ccc;
  427. overflow: hidden;
  428. }
  429. /* 拖拽列样式 */
  430. .sortable-ghost{
  431. opacity: .8;
  432. color: #fff!important;
  433. background: #42b983!important;
  434. }
  435. /* 表格右侧工具栏样式 */
  436. .top-right-btn {
  437. margin-left: auto;
  438. }