home.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. /* home */
  2. .home {
  3. position: absolute;
  4. width: 100%;
  5. height: 100%;
  6. z-index: auto;
  7. min-width: 1200px;
  8. }
  9. .home-body {
  10. position: absolute;
  11. left: 0;
  12. top: 61px;
  13. right: 0;
  14. bottom: 0;
  15. overflow: auto;
  16. background: $--color-background;
  17. z-index: 98;
  18. }
  19. .home-main {
  20. position: relative;
  21. padding: 20px 20px 60px 260px;
  22. min-height: 100%;
  23. transition: padding-left 0.2s ease;
  24. min-width: 1366px;
  25. }
  26. .home-body-big .home-main {
  27. padding-left: 80px;
  28. }
  29. /* view-footer */
  30. .home-footer {
  31. position: absolute;
  32. width: 100%;
  33. height: 60px;
  34. bottom: 0;
  35. left: 0;
  36. z-index: auto;
  37. padding: 20px 0;
  38. line-height: 20px;
  39. color: $--color-text-secondary;
  40. text-align: center;
  41. font-size: 13px;
  42. }
  43. .home-footer a {
  44. color: $--color-text-secondary;
  45. }
  46. .home-footer a:hover {
  47. color: $--color-text-primary;
  48. }
  49. /* navs */
  50. .home-navs {
  51. position: absolute;
  52. width: 240px;
  53. top: 60px;
  54. left: 0;
  55. bottom: 0;
  56. z-index: 99;
  57. overflow: auto;
  58. background: #fff;
  59. padding: 15px 0;
  60. text-align: left;
  61. transition: width 0.2s ease;
  62. border-right: 1px solid #e9e9e9;
  63. }
  64. .nav-item {
  65. overflow: hidden;
  66. }
  67. .nav-item-main {
  68. padding: 15px 35px 15px 45px;
  69. line-height: 20px;
  70. min-height: 50px;
  71. position: relative;
  72. cursor: pointer;
  73. font-weight: 600;
  74. }
  75. .nav-item-main-act,
  76. .nav-item-main-act .nav-item-icon-right {
  77. color: $--color-primary;
  78. }
  79. .nav-item-main:hover {
  80. color: $--color-primary;
  81. }
  82. .nav-item-icon {
  83. display: block;
  84. position: absolute;
  85. width: 20px;
  86. height: 20px;
  87. top: 14px;
  88. text-align: center;
  89. }
  90. .nav-item-icon-left {
  91. left: 15px;
  92. font-size: 18px;
  93. transition: all 0.2s ease;
  94. }
  95. .nav-item-icon-right {
  96. right: 10px;
  97. color: $--color-text-secondary;
  98. }
  99. .nav-item-sublist {
  100. overflow: hidden;
  101. transition: height 0.2s linear;
  102. }
  103. .nav-sublist-hide {
  104. height: 0 !important;
  105. }
  106. .nav-item-sub {
  107. line-height: 20px;
  108. padding: 10px 5px 10px 45px;
  109. border-right: 2px solid transparent;
  110. cursor: pointer;
  111. position: relative;
  112. }
  113. .nav-item-sub:hover {
  114. color: $--color-primary;
  115. }
  116. .nav-item-sub-act {
  117. background-color: mix(#ffffff, $--color-primary, 90%);
  118. color: $--color-primary !important;
  119. border-color: $--color-primary;
  120. }
  121. /* tiny */
  122. .home-navs-tiny {
  123. width: 60px;
  124. overflow: visible;
  125. }
  126. .home-navs-tiny .nav-item-main {
  127. padding: 10px;
  128. }
  129. .home-navs-tiny .nav-item-cont,
  130. .home-navs-tiny .nav-item-sublist,
  131. .home-navs-tiny .nav-item-icon-right {
  132. display: none;
  133. }
  134. .home-navs-tiny .nav-item-icon-left {
  135. left: 17px;
  136. font-size: 24px;
  137. }
  138. /* head */
  139. .home-header {
  140. position: absolute;
  141. width: 100%;
  142. padding: 10px 0;
  143. height: 60px;
  144. top: 0;
  145. left: 0;
  146. z-index: 100;
  147. background: #fff;
  148. box-shadow: 0 0 1px 0 $--border-color-light;
  149. line-height: 40px;
  150. }
  151. .head-logo {
  152. width: 240px;
  153. float: left;
  154. color: $--color-primary;
  155. height: 60px;
  156. margin-top: -10px;
  157. padding: 10px 20px;
  158. font-size: 20px;
  159. text-align: center;
  160. transition: width 0.2s ease;
  161. }
  162. .head-logo img {
  163. display: block;
  164. margin: 0 auto;
  165. width: 160px;
  166. height: 40px;
  167. }
  168. .head-logo-tiny {
  169. width: 60px;
  170. padding: 10px;
  171. font-size: 18px;
  172. overflow: hidden;
  173. }
  174. .head-logo-tiny img {
  175. width: 40px;
  176. height: 40px;
  177. }
  178. .head-switch {
  179. float: left;
  180. padding: 5px 25px 5px 15px;
  181. height: 40px;
  182. line-height: 30px;
  183. cursor: pointer;
  184. }
  185. .head-switch:hover {
  186. color: $--color-primary;
  187. }
  188. .head-switch i {
  189. vertical-align: middle;
  190. font-size: 20px;
  191. }
  192. .rotate-icon {
  193. transform: rotate(-90deg);
  194. }
  195. .head-info {
  196. float: left;
  197. padding: 13px 0;
  198. height: 40px;
  199. }
  200. .head-user {
  201. padding-right: 20px;
  202. float: right;
  203. height: 40px;
  204. line-height: 40px;
  205. position: relative;
  206. color: $--color-text-regular;
  207. cursor: pointer;
  208. }
  209. .user-avatar {
  210. display: inline-block;
  211. vertical-align: top;
  212. }
  213. .user-name {
  214. display: inline-block;
  215. vertical-align: top;
  216. margin-left: 10px;
  217. min-width: 60px;
  218. max-width: 120px;
  219. overflow: hidden;
  220. text-overflow: ellipsis;
  221. white-space: nowrap;
  222. font-weight: 600;
  223. }
  224. .user-logout {
  225. display: inline-block;
  226. vertical-align: top;
  227. margin-left: 10px;
  228. font-size: 20px;
  229. cursor: pointer;
  230. }
  231. .user-logout i {
  232. vertical-align: middle;
  233. margin-top: -3px;
  234. }
  235. .user-logout:hover {
  236. color: $--color-danger;
  237. }
  238. /* part */
  239. .part-box {
  240. box-shadow: 0 0 2px 1px #e9e9e9;
  241. padding: 20px 30px;
  242. margin-bottom: 15px;
  243. background-color: #fff;
  244. .ivu-form-item-label {
  245. text-align: right;
  246. }
  247. }
  248. .part-title {
  249. font-size: 16px;
  250. margin-bottom: 15px;
  251. height: 32px;
  252. line-height: 32px;
  253. }
  254. .part-title h2 {
  255. float: left;
  256. font-weight: 600;
  257. }
  258. .part-title-infos {
  259. float: right;
  260. > .ivu-btn:not(:first-child) {
  261. margin-left: 5px;
  262. }
  263. }
  264. .part-page {
  265. margin-top: 15px;
  266. text-align: right;
  267. }
  268. .part-filter {
  269. border-bottom: 1px dashed #e0e0e0;
  270. margin-bottom: 20px;
  271. }
  272. .part-none {
  273. padding: 100px;
  274. font-size: 20px;
  275. color: $--color-text-secondary;
  276. text-align: center;
  277. }
  278. /* table */
  279. .table {
  280. width: 100%;
  281. border-spacing: 0;
  282. border-collapse: collapse;
  283. text-align: center;
  284. margin-bottom: 30px;
  285. }
  286. .table th {
  287. padding: 10px;
  288. line-height: 20px;
  289. letter-spacing: 1px;
  290. border: 1px solid $--border-color-light;
  291. }
  292. .table td {
  293. padding: 10px;
  294. line-height: 20px;
  295. border: 1px solid $--border-color-light;
  296. }
  297. .table .td-th {
  298. font-weight: 600;
  299. color: $--color-text-primary;
  300. }
  301. /* list */
  302. .list-lr-right {
  303. float: right;
  304. width: 300px;
  305. }
  306. .list-lr-left {
  307. margin-right: 320px;
  308. }
  309. /* user reset */
  310. h3.account-title {
  311. text-align: center;
  312. font-weight: 600;
  313. }
  314. .account-form {
  315. width: 60%;
  316. min-width: 600px;
  317. margin: 50px auto;
  318. }
  319. .vlcode {
  320. height: 36px;
  321. }
  322. .vlcode-left {
  323. margin-right: 135px;
  324. }
  325. .vlcode-right {
  326. float: right;
  327. width: 120px;
  328. }
  329. // other
  330. .tips-info {
  331. font-size: 14px;
  332. height: 25px;
  333. line-height: 25px;
  334. color: $--color-text-secondary;
  335. }
  336. .tips-error {
  337. color: $--color-danger;
  338. }