home.scss 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. /* home */
  2. .home {
  3. position: absolute;
  4. width: 100%;
  5. height: 100%;
  6. z-index: auto;
  7. }
  8. .home-body {
  9. position: absolute;
  10. left: 0;
  11. top: 50px;
  12. right: 0;
  13. bottom: 0;
  14. overflow: auto;
  15. background: $--color-background;
  16. z-index: 98;
  17. }
  18. .home-body-content {
  19. position: relative;
  20. padding: 20px 30px 50px 250px;
  21. min-height: 100%;
  22. }
  23. .home-page-main {
  24. .home-navs {
  25. bottom: auto;
  26. height: 50px;
  27. border-radius: 0;
  28. background-color: transparent;
  29. &::before {
  30. display: none;
  31. }
  32. .head-logo-content {
  33. padding: 5px 0;
  34. border: none;
  35. }
  36. .el-menu {
  37. display: none;
  38. }
  39. }
  40. .home-breadcrumb {
  41. display: none;
  42. }
  43. .home-body-content {
  44. padding-left: 30px;
  45. }
  46. }
  47. /* navs */
  48. .home-navs {
  49. position: absolute;
  50. width: 220px;
  51. top: 0;
  52. left: 0;
  53. bottom: 0;
  54. z-index: 100;
  55. overflow: auto;
  56. font-size: 14px;
  57. background: $--color-white;
  58. border-top-right-radius: $--border-radius-huge;
  59. border-bottom-right-radius: $--border-radius-huge;
  60. &::before {
  61. content: "";
  62. display: block;
  63. position: absolute;
  64. height: 100%;
  65. width: 1px;
  66. right: 0;
  67. bottom: 0;
  68. z-index: 9;
  69. background: rgba(229, 229, 229, 1);
  70. }
  71. .head-logo {
  72. padding: 0 40px;
  73. font-size: 20px;
  74. line-height: 40px;
  75. text-align: center;
  76. &-content {
  77. display: block;
  78. padding: 30px 0;
  79. border-bottom: 1px solid #eff0f5;
  80. }
  81. img {
  82. display: block;
  83. max-width: 160px;
  84. height: 40px;
  85. }
  86. }
  87. .nav-part {
  88. padding: 20px 0;
  89. border-top: 1px solid $--color-border;
  90. }
  91. .nav-head {
  92. padding: 10px 0;
  93. color: $--color-text-gray-2;
  94. font-size: $--font-size-base;
  95. line-height: 20px;
  96. position: relative;
  97. font-weight: 500;
  98. > span {
  99. display: inline-block;
  100. vertical-align: top;
  101. font-weight: 600;
  102. }
  103. &-right-icon {
  104. position: absolute;
  105. right: 0;
  106. top: 50%;
  107. transform: translateY(-50%);
  108. color: #d3d5e0;
  109. font-size: 12px;
  110. }
  111. }
  112. // .nav-list {
  113. // padding: 0 0 0 23px;
  114. // }
  115. .nav-item {
  116. overflow: hidden;
  117. color: $--color-text-dark-1;
  118. &-main {
  119. padding: 10px 0;
  120. line-height: 20px;
  121. position: relative;
  122. font-weight: 500;
  123. cursor: pointer;
  124. &-act,
  125. &:hover {
  126. font-weight: 600;
  127. color: $--color-primary;
  128. }
  129. }
  130. &-icon {
  131. display: block;
  132. position: absolute;
  133. width: 20px;
  134. height: 20px;
  135. top: 50%;
  136. margin-top: -10px;
  137. text-align: center;
  138. line-height: 20px;
  139. }
  140. &-icon-right {
  141. right: 5px;
  142. }
  143. &-info {
  144. display: block;
  145. position: absolute;
  146. padding: 0 3px;
  147. min-width: 16px;
  148. height: 16px;
  149. font-size: 12px;
  150. line-height: 16px;
  151. top: 12px;
  152. right: 40px;
  153. background-color: $--color-warning;
  154. color: #fff;
  155. text-align: center;
  156. border-radius: 3px;
  157. }
  158. }
  159. }
  160. .el-menu-home {
  161. padding-top: 20px;
  162. .el-submenu {
  163. margin-bottom: 20px;
  164. }
  165. .el-submenu__title {
  166. padding: 0 40px !important;
  167. height: 50px;
  168. line-height: 50px;
  169. font-weight: 600;
  170. > .icon {
  171. margin-right: 12px;
  172. }
  173. }
  174. .el-menu-item {
  175. height: auto;
  176. min-height: 40px;
  177. line-height: 20px;
  178. padding: 10px 40px !important;
  179. white-space: normal;
  180. }
  181. .el-menu-item.is-active {
  182. font-weight: 600;
  183. }
  184. .el-submenu__icon-arrow {
  185. right: 40px;
  186. }
  187. }
  188. /* head */
  189. .home-header {
  190. position: absolute;
  191. width: 100%;
  192. height: 50px;
  193. top: 0;
  194. left: 0;
  195. z-index: 99;
  196. color: #fff;
  197. padding-left: 220px;
  198. background-color: $--color-text-dark;
  199. display: flex;
  200. align-items: stretch;
  201. justify-content: space-between;
  202. .menu-list {
  203. li {
  204. position: relative;
  205. display: inline-block;
  206. vertical-align: top;
  207. padding: 10px;
  208. height: 50px;
  209. line-height: 30px;
  210. opacity: 0.4;
  211. font-size: 16px;
  212. position: relative;
  213. text-align: center;
  214. cursor: pointer;
  215. &:hover {
  216. opacity: 1;
  217. }
  218. &.menu-item-act {
  219. opacity: 1;
  220. &::after {
  221. content: "";
  222. display: block;
  223. position: absolute;
  224. left: 5px;
  225. right: 5px;
  226. bottom: 0;
  227. border-top: 5px solid #fff;
  228. border-radius: 5px;
  229. z-index: 8;
  230. }
  231. }
  232. span {
  233. display: inline-block;
  234. vertical-align: top;
  235. }
  236. .icon {
  237. margin-top: -3px;
  238. margin-right: 6px;
  239. }
  240. > i {
  241. margin-right: 6px;
  242. }
  243. }
  244. }
  245. .head-menu {
  246. flex-grow: 1;
  247. overflow-y: hidden;
  248. overflow-x: auto;
  249. ul {
  250. white-space: nowrap;
  251. }
  252. }
  253. .head-user {
  254. flex-grow: 0;
  255. flex-shrink: 0;
  256. .menu-item-account {
  257. white-space: nowrap;
  258. padding: 10px;
  259. span {
  260. max-width: 156px;
  261. overflow: hidden;
  262. text-overflow: ellipsis;
  263. }
  264. }
  265. }
  266. // .head-menu-btn
  267. .head-menu-btn {
  268. display: none;
  269. float: right;
  270. line-height: 36px;
  271. padding: 12px 15px;
  272. text-align: center;
  273. > span {
  274. display: block;
  275. height: 36px;
  276. width: 36px;
  277. border-radius: 5px;
  278. background-color: rgba($color: #fff, $alpha: 0.3);
  279. }
  280. i {
  281. font-size: 22px;
  282. vertical-align: middle;
  283. }
  284. }
  285. }
  286. // menu-dialog
  287. .menu-dialog {
  288. .el-dialog.is-fullscreen {
  289. border-radius: 0;
  290. box-shadow: none;
  291. .el-dialog__body {
  292. padding: 10px;
  293. &::after {
  294. display: none;
  295. }
  296. }
  297. }
  298. .menu-logout {
  299. padding: 10px;
  300. width: 52px;
  301. height: 52px;
  302. margin: 0 auto;
  303. border: 1px solid $--color-text-gray-3;
  304. border-radius: 50%;
  305. font-size: 30px;
  306. text-align: center;
  307. color: $--color-text-gray-3;
  308. cursor: pointer;
  309. &:hover {
  310. border-color: $--color-danger;
  311. color: $--color-danger;
  312. }
  313. }
  314. }
  315. // home-breadcrumb
  316. .home-breadcrumb {
  317. margin-bottom: 18px;
  318. font-size: 12px;
  319. font-weight: 500;
  320. color: $--color-text-gray-2;
  321. .breadcrumb-tips {
  322. display: inline-block;
  323. vertical-align: middle;
  324. > i {
  325. margin-top: -2px;
  326. margin-right: 8px;
  327. }
  328. }
  329. .el-breadcrumb {
  330. line-height: 16px;
  331. display: inline-block;
  332. vertical-align: middle;
  333. font-size: 12px;
  334. .el-breadcrumb__item {
  335. .el-breadcrumb__inner {
  336. color: $--color-text-gray-2;
  337. }
  338. }
  339. .el-breadcrumb__separator {
  340. margin: 0 5px;
  341. }
  342. }
  343. }
  344. // home-view
  345. /* view-footer */
  346. .home-footer {
  347. position: absolute;
  348. width: 100%;
  349. height: 60px;
  350. bottom: 0;
  351. left: 0;
  352. z-index: auto;
  353. padding: 20px 0;
  354. line-height: 20px;
  355. color: $--color-text-gray-3;
  356. text-align: center;
  357. font-size: 13px;
  358. a {
  359. color: $--color-text-gray-3;
  360. }
  361. a:hover {
  362. color: $--color-text-gray;
  363. }
  364. }
  365. // home-page
  366. .home-page {
  367. width: 1000px;
  368. margin: 0 auto;
  369. .tab-summary {
  370. margin-bottom: 20px;
  371. font-size: 0;
  372. &-item {
  373. position: relative;
  374. display: inline-block;
  375. vertical-align: top;
  376. width: 137px;
  377. margin-right: 10px;
  378. border-radius: 16px;
  379. padding: 20px;
  380. color: #fff;
  381. text-align: right;
  382. &:nth-of-type(1) {
  383. background: #9877ff;
  384. box-shadow: 0px 10px 10px 0px rgba(152, 119, 255, 0.3);
  385. }
  386. &:nth-of-type(2) {
  387. background: #3fcb98;
  388. box-shadow: 0px 10px 10px 0px rgba(63, 203, 152, 0.3);
  389. }
  390. }
  391. &-rp {
  392. display: block;
  393. position: absolute;
  394. width: 6px;
  395. height: 6px;
  396. background: #fe646a;
  397. border: 2px solid #eff0f5;
  398. top: -2px;
  399. left: -2px;
  400. border-radius: 50%;
  401. z-index: 9;
  402. }
  403. &-icon {
  404. display: block;
  405. position: absolute;
  406. top: 20px;
  407. left: 20px;
  408. font-size: 16px;
  409. z-index: auto;
  410. }
  411. &-title {
  412. font-size: 12px;
  413. margin-bottom: 7px;
  414. }
  415. &-cont {
  416. height: 38px;
  417. font-size: 32px;
  418. font-weight: bold;
  419. line-height: 38px;
  420. }
  421. }
  422. .tab-box {
  423. border-radius: 16px;
  424. background-color: #fff;
  425. margin-bottom: 20px;
  426. min-height: 100px;
  427. padding: 20px;
  428. &-title {
  429. font-weight: bold;
  430. font-size: 16px;
  431. color: #1f222f;
  432. margin-bottom: 10px;
  433. }
  434. }
  435. .shortcut-list {
  436. font-size: 0;
  437. white-space: nowrap;
  438. overflow: auto;
  439. }
  440. .shortcut-item {
  441. display: inline-block;
  442. vertical-align: top;
  443. padding: 10px 0;
  444. width: 100px;
  445. text-align: center;
  446. }
  447. .shortcut-icon {
  448. width: 40px;
  449. height: 40px;
  450. background: #3a5ae5;
  451. border-radius: 6px;
  452. font-size: 20px;
  453. line-height: 40px;
  454. margin: 0 auto;
  455. }
  456. .shortcut-name {
  457. margin-top: 12px;
  458. font-size: 14px;
  459. font-weight: 500;
  460. color: #434656;
  461. }
  462. .task-item {
  463. display: flex;
  464. justify-content: space-between;
  465. align-items: stretch;
  466. padding: 10px 0;
  467. &:not(:last-child) {
  468. border-bottom: 1px solid #eff0f5;
  469. }
  470. &-cont {
  471. flex-grow: 2;
  472. margin: 0 10px;
  473. white-space: nowrap;
  474. text-overflow: ellipsis;
  475. overflow: hidden;
  476. line-height: 22px;
  477. }
  478. &-type,
  479. &-action {
  480. flex-shrink: 0;
  481. flex-grow: 0;
  482. }
  483. &-type {
  484. width: 60px;
  485. padding: 5px;
  486. line-height: 1;
  487. font-size: 12px;
  488. color: #fff;
  489. border-radius: 6px;
  490. text-align: center;
  491. }
  492. }
  493. }