ruoyi.scss 7.9 KB

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