main.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /* EMA 管理后台主样式 */
  2. /* 基础布局 */
  3. body { overflow: hidden; }
  4. /* 头部样式 */
  5. .layui-header {
  6. height: 60px;
  7. line-height: 60px;
  8. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  9. }
  10. .layui-logo {
  11. display: flex;
  12. align-items: center;
  13. color: #fff;
  14. font-size: 20px;
  15. font-weight: 600;
  16. letter-spacing: 1px;
  17. }
  18. .layui-logo img {
  19. height: 36px;
  20. margin-right: 10px;
  21. border-radius: 4px;
  22. }
  23. .layui-header .layui-nav {
  24. background: transparent;
  25. }
  26. .layui-header .layui-nav .layui-nav-item a {
  27. color: #fff;
  28. }
  29. .layui-header .layui-nav .layui-nav-child dd a {
  30. color: #333;
  31. }
  32. .layui-header .layui-nav-img {
  33. width: 36px;
  34. height: 36px;
  35. border-radius: 50%;
  36. }
  37. /* 侧边栏 */
  38. .layui-side {
  39. width: 200px !important;
  40. top: 0;
  41. }
  42. .layui-side-scroll {
  43. width: 220px;
  44. }
  45. .layui-nav-tree .layui-nav-item a {
  46. height: 50px;
  47. line-height: 50px;
  48. }
  49. .layui-nav-tree .layui-nav-bar {
  50. width: 3px;
  51. }
  52. /* 主体内容 */
  53. .layui-body {
  54. left: 200px;
  55. top: 60px;
  56. bottom: 42px;
  57. overflow: hidden;
  58. }
  59. /* 标签页 */
  60. .layui-tab {
  61. margin: 0;
  62. }
  63. .layui-tab-title {
  64. height: 40px;
  65. background: #f2f2f2;
  66. border-bottom: 1px solid #e6e6e6;
  67. }
  68. .layui-tab-title li {
  69. height: 40px;
  70. line-height: 40px;
  71. }
  72. .layui-tab-title .layui-this {
  73. background: #fff;
  74. color: #667eea;
  75. }
  76. .layui-tab-title .layui-this::after {
  77. border: none;
  78. border-bottom: 2px solid #667eea;
  79. }
  80. .layui-tab-brief > .layui-tab-title .layui-this {
  81. color: #667eea;
  82. }
  83. .layui-tab-content {
  84. height: calc(100vh - 60px - 40px - 42px);
  85. padding: 0;
  86. }
  87. .layui-tab-item {
  88. height: 100%;
  89. }
  90. .main-iframe {
  91. width: 100%;
  92. height: 100%;
  93. border: none;
  94. }
  95. /* 底部 */
  96. .layui-footer {
  97. height: 42px;
  98. line-height: 42px;
  99. text-align: center;
  100. background: #f2f2f2;
  101. color: #999;
  102. font-size: 12px;
  103. }
  104. /* 通用表格样式 */
  105. .table-toolbar {
  106. margin-bottom: 10px;
  107. }
  108. .table-search {
  109. float: right;
  110. }
  111. .table-search .layui-input {
  112. height: 32px;
  113. line-height: 32px;
  114. }
  115. /* 表单样式优化 */
  116. .layui-form-item .layui-form-label {
  117. width: 100px;
  118. }
  119. .layui-form-item .layui-input-inline {
  120. width: 200px;
  121. }
  122. /* 弹窗优化 */
  123. .layui-layer-title {
  124. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  125. color: #fff;
  126. border: none;
  127. }
  128. /* 图标菜单 */
  129. .layui-icon {
  130. margin-right: 5px;
  131. }
  132. /* 加载动画 */
  133. .loading-mask {
  134. position: fixed;
  135. top: 0;
  136. left: 0;
  137. right: 0;
  138. bottom: 0;
  139. background: rgba(255, 255, 255, 0.8);
  140. z-index: 9999;
  141. display: flex;
  142. align-items: center;
  143. justify-content: center;
  144. }
  145. /* 空状态 */
  146. .empty-state {
  147. text-align: center;
  148. padding: 60px 20px;
  149. color: #999;
  150. }
  151. .empty-state i {
  152. font-size: 60px;
  153. margin-bottom: 20px;
  154. color: #ddd;
  155. }
  156. /* 响应式 */
  157. @media screen and (max-width: 768px) {
  158. .layui-side {
  159. display: none;
  160. }
  161. .layui-body {
  162. left: 0;
  163. }
  164. }