home.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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-main {
  19. position: relative;
  20. padding: 20px 30px 50px 250px;
  21. min-height: 100%;
  22. }
  23. /* navs */
  24. .home-navs {
  25. position: absolute;
  26. width: 220px;
  27. top: 0;
  28. left: 0;
  29. bottom: 0;
  30. z-index: 100;
  31. overflow: auto;
  32. font-size: 14px;
  33. background: $--color-white;
  34. border-top-right-radius: $--border-radius-huge;
  35. border-bottom-right-radius: $--border-radius-huge;
  36. &::before {
  37. content: "";
  38. display: block;
  39. position: absolute;
  40. height: 100%;
  41. width: 1px;
  42. right: 0;
  43. bottom: 0;
  44. z-index: 9;
  45. background: rgba(229, 229, 229, 1);
  46. }
  47. .head-logo {
  48. padding: 0 40px;
  49. font-size: 20px;
  50. line-height: 40px;
  51. text-align: center;
  52. &-content {
  53. display: block;
  54. padding: 30px 0;
  55. border-bottom: 1px solid #eff0f5;
  56. }
  57. img {
  58. display: block;
  59. max-width: 160px;
  60. height: 40px;
  61. }
  62. }
  63. .nav-part {
  64. padding: 20px 0;
  65. border-top: 1px solid $--color-border;
  66. }
  67. .nav-head {
  68. padding: 10px 0;
  69. color: $--color-text-gray-2;
  70. font-size: $--font-size-base;
  71. line-height: 20px;
  72. position: relative;
  73. font-weight: 500;
  74. > span {
  75. display: inline-block;
  76. vertical-align: top;
  77. font-weight: 600;
  78. }
  79. &-right-icon {
  80. position: absolute;
  81. right: 0;
  82. top: 50%;
  83. transform: translateY(-50%);
  84. color: #d3d5e0;
  85. font-size: 12px;
  86. }
  87. }
  88. // .nav-list {
  89. // padding: 0 0 0 23px;
  90. // }
  91. .nav-item {
  92. overflow: hidden;
  93. color: $--color-text-dark-1;
  94. &-main {
  95. padding: 10px 0;
  96. line-height: 20px;
  97. position: relative;
  98. font-weight: 500;
  99. cursor: pointer;
  100. &-act,
  101. &:hover {
  102. font-weight: 600;
  103. color: $--color-primary;
  104. }
  105. }
  106. &-icon {
  107. display: block;
  108. position: absolute;
  109. width: 20px;
  110. height: 20px;
  111. top: 50%;
  112. margin-top: -10px;
  113. text-align: center;
  114. line-height: 20px;
  115. }
  116. &-icon-right {
  117. right: 5px;
  118. }
  119. &-info {
  120. display: block;
  121. position: absolute;
  122. padding: 0 3px;
  123. min-width: 16px;
  124. height: 16px;
  125. font-size: 12px;
  126. line-height: 16px;
  127. top: 12px;
  128. right: 40px;
  129. background-color: $--color-warning;
  130. color: #fff;
  131. text-align: center;
  132. border-radius: 3px;
  133. }
  134. }
  135. }
  136. .el-menu-home {
  137. padding-top: 20px;
  138. .el-submenu {
  139. margin-bottom: 20px;
  140. }
  141. .el-submenu__title {
  142. padding: 0 40px !important;
  143. height: 50px;
  144. line-height: 50px;
  145. font-weight: 600;
  146. > .icon {
  147. margin-right: 12px;
  148. }
  149. }
  150. .el-menu-item {
  151. height: auto;
  152. min-height: 40px;
  153. line-height: 20px;
  154. padding: 10px 40px !important;
  155. white-space: normal;
  156. }
  157. .el-menu-item.is-active {
  158. font-weight: 600;
  159. }
  160. .el-submenu__icon-arrow {
  161. right: 40px;
  162. }
  163. }
  164. /* head */
  165. .home-header {
  166. position: absolute;
  167. width: 100%;
  168. height: 50px;
  169. top: 0;
  170. left: 0;
  171. z-index: 99;
  172. color: #fff;
  173. padding-left: 220px;
  174. background-color: $--color-text-dark;
  175. overflow: hidden;
  176. .menu-list {
  177. li {
  178. display: inline-block;
  179. vertical-align: top;
  180. padding: 10px 25px;
  181. height: 50px;
  182. line-height: 30px;
  183. opacity: 0.4;
  184. font-size: 16px;
  185. position: relative;
  186. text-align: center;
  187. cursor: pointer;
  188. &:hover {
  189. opacity: 1;
  190. }
  191. &.menu-item-act {
  192. opacity: 1;
  193. }
  194. span {
  195. display: inline-block;
  196. vertical-align: top;
  197. margin-left: 8px;
  198. }
  199. .icon {
  200. margin-top: -3px;
  201. }
  202. }
  203. }
  204. .head-menu {
  205. float: left;
  206. }
  207. .head-user {
  208. float: right;
  209. padding-right: 10px;
  210. li {
  211. padding: 10px;
  212. }
  213. .menu-item-account {
  214. white-space: nowrap;
  215. padding: 10px;
  216. span {
  217. max-width: 156px;
  218. overflow: hidden;
  219. text-overflow: ellipsis;
  220. }
  221. }
  222. }
  223. // .head-menu-btn
  224. .head-menu-btn {
  225. display: none;
  226. float: right;
  227. line-height: 36px;
  228. padding: 12px 15px;
  229. text-align: center;
  230. > span {
  231. display: block;
  232. height: 36px;
  233. width: 36px;
  234. border-radius: 5px;
  235. background-color: rgba($color: #fff, $alpha: 0.3);
  236. }
  237. i {
  238. font-size: 22px;
  239. vertical-align: middle;
  240. }
  241. }
  242. }
  243. // menu-dialog
  244. .menu-dialog {
  245. .el-dialog.is-fullscreen {
  246. border-radius: 0;
  247. box-shadow: none;
  248. .el-dialog__body {
  249. padding: 10px;
  250. &::after {
  251. display: none;
  252. }
  253. }
  254. }
  255. .menu-logout {
  256. padding: 10px;
  257. width: 52px;
  258. height: 52px;
  259. margin: 0 auto;
  260. border: 1px solid $--color-text-gray-3;
  261. border-radius: 50%;
  262. font-size: 30px;
  263. text-align: center;
  264. color: $--color-text-gray-3;
  265. cursor: pointer;
  266. &:hover {
  267. border-color: $--color-danger;
  268. color: $--color-danger;
  269. }
  270. }
  271. }
  272. // home-breadcrumb
  273. .home-breadcrumb {
  274. margin-bottom: 18px;
  275. font-size: 12px;
  276. font-weight: 500;
  277. color: $--color-text-gray-2;
  278. .breadcrumb-tips {
  279. display: inline-block;
  280. vertical-align: middle;
  281. > i {
  282. margin-top: -2px;
  283. margin-right: 8px;
  284. }
  285. }
  286. .el-breadcrumb {
  287. line-height: 16px;
  288. display: inline-block;
  289. vertical-align: middle;
  290. font-size: 12px;
  291. .el-breadcrumb__item {
  292. .el-breadcrumb__inner {
  293. color: $--color-text-gray-2;
  294. }
  295. }
  296. .el-breadcrumb__separator {
  297. margin: 0 5px;
  298. }
  299. }
  300. }
  301. // home-view
  302. /* view-footer */
  303. .home-footer {
  304. position: absolute;
  305. width: 100%;
  306. height: 60px;
  307. bottom: 0;
  308. left: 0;
  309. z-index: auto;
  310. padding: 20px 0;
  311. line-height: 20px;
  312. color: $--color-text-gray-3;
  313. text-align: center;
  314. font-size: 13px;
  315. a {
  316. color: $--color-text-gray-3;
  317. }
  318. a:hover {
  319. color: $--color-text-gray;
  320. }
  321. }