home.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. /* home */
  2. .home-body {
  3. padding-top: 60px;
  4. }
  5. /* home-header */
  6. .home-header {
  7. position: fixed;
  8. width: 100%;
  9. padding: 10px 0;
  10. height: 60px;
  11. top: 0;
  12. left: 0;
  13. z-index: 99;
  14. color: #fff;
  15. line-height: 40px;
  16. background: #4f63db;
  17. }
  18. .head-logo {
  19. width: 240px;
  20. float: left;
  21. color: #fff;
  22. height: 60px;
  23. margin-top: -10px;
  24. padding: 10px 20px;
  25. font-size: 20px;
  26. text-align: left;
  27. transition: width 0.2s ease;
  28. .icon {
  29. margin-right: 12px;
  30. margin-top: -2px;
  31. cursor: pointer;
  32. }
  33. img {
  34. display: block;
  35. margin: 0 auto;
  36. width: 160px;
  37. height: 40px;
  38. }
  39. &-tiny {
  40. width: 60px;
  41. padding: 10px;
  42. font-size: 18px;
  43. overflow: hidden;
  44. img {
  45. width: 40px;
  46. height: 40px;
  47. }
  48. }
  49. }
  50. .head-switch {
  51. float: left;
  52. padding: 5px 25px 5px 15px;
  53. height: 40px;
  54. line-height: 30px;
  55. cursor: pointer;
  56. &:hover {
  57. color: $--color-primary;
  58. }
  59. i {
  60. vertical-align: middle;
  61. font-size: 20px;
  62. }
  63. }
  64. .rotate-icon {
  65. transform: rotate(-90deg);
  66. }
  67. .head-info {
  68. float: left;
  69. padding: 13px 0;
  70. height: 40px;
  71. }
  72. .head-user {
  73. padding-right: 20px;
  74. float: right;
  75. height: 40px;
  76. line-height: 40px;
  77. position: relative;
  78. color: $--color-text-regular;
  79. cursor: pointer;
  80. }
  81. .user-avatar {
  82. display: inline-block;
  83. vertical-align: top;
  84. }
  85. .user-help {
  86. display: inline-block;
  87. vertical-align: top;
  88. color: #fff;
  89. font-size: 20px;
  90. .icon {
  91. margin-right: 12px;
  92. margin-top: -2px;
  93. }
  94. }
  95. .user-name {
  96. display: inline-block;
  97. vertical-align: top;
  98. margin-left: 10px;
  99. min-width: 60px;
  100. max-width: 120px;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. font-weight: 600;
  105. }
  106. .user-logout {
  107. display: inline-block;
  108. vertical-align: top;
  109. margin-left: 10px;
  110. font-size: 20px;
  111. cursor: pointer;
  112. i {
  113. vertical-align: middle;
  114. margin-top: -3px;
  115. }
  116. &:hover {
  117. color: $--color-danger;
  118. }
  119. }
  120. /* home-footer */
  121. .home-footer {
  122. position: relative;
  123. width: 100%;
  124. height: 60px;
  125. bottom: 0;
  126. left: 0;
  127. z-index: auto;
  128. padding: 20px 0;
  129. line-height: 20px;
  130. color: $--color-text-secondary;
  131. text-align: center;
  132. font-size: 13px;
  133. a {
  134. color: $--color-text-secondary;
  135. &:hover {
  136. color: $--color-text-primary;
  137. }
  138. }
  139. }
  140. /* part */
  141. .part-box {
  142. box-shadow: 0 0 2px 1px #e9e9e9;
  143. padding: 20px 30px;
  144. margin-bottom: 15px;
  145. background-color: #fff;
  146. .ivu-form-item-label {
  147. text-align: right;
  148. }
  149. .part-title {
  150. font-size: 16px;
  151. margin-bottom: 15px;
  152. height: 32px;
  153. line-height: 32px;
  154. }
  155. .part-title h2 {
  156. float: left;
  157. font-weight: 600;
  158. }
  159. .part-title-infos {
  160. float: right;
  161. > .ivu-btn:not(:first-child) {
  162. margin-left: 5px;
  163. }
  164. }
  165. .part-page {
  166. margin-top: 15px;
  167. text-align: right;
  168. }
  169. .part-filter {
  170. border-bottom: 1px dashed #e0e0e0;
  171. margin-bottom: 20px;
  172. }
  173. .part-none {
  174. padding: 100px;
  175. font-size: 20px;
  176. color: $--color-text-secondary;
  177. text-align: center;
  178. }
  179. }
  180. /* table */
  181. .table {
  182. width: 100%;
  183. border-spacing: 0;
  184. border-collapse: collapse;
  185. text-align: center;
  186. margin-bottom: 30px;
  187. th {
  188. padding: 10px;
  189. line-height: 20px;
  190. letter-spacing: 1px;
  191. border: 1px solid $--border-color-light;
  192. }
  193. td {
  194. padding: 10px;
  195. line-height: 20px;
  196. border: 1px solid $--border-color-light;
  197. }
  198. .td-th {
  199. font-weight: 600;
  200. color: $--color-text-primary;
  201. }
  202. &.table-white {
  203. background-color: #fff;
  204. }
  205. }
  206. // other
  207. .tips-info {
  208. font-size: 14px;
  209. height: 25px;
  210. line-height: 25px;
  211. color: $--color-text-secondary;
  212. }
  213. .tips-error {
  214. color: $--color-danger;
  215. }