123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- /* home */
- .home {
- position: absolute;
- width: 100%;
- height: 100%;
- z-index: auto;
- }
- .home-body {
- position: absolute;
- left: 0;
- top: 50px;
- right: 0;
- bottom: 0;
- overflow: auto;
- background: $--color-background;
- z-index: 98;
- }
- .home-main {
- position: relative;
- padding: 20px 30px 50px 250px;
- min-height: 100%;
- }
- /* navs */
- .home-navs {
- position: absolute;
- width: 220px;
- top: 0;
- left: 0;
- bottom: 0;
- z-index: 100;
- overflow: auto;
- font-size: 14px;
- background: $--color-white;
- border-top-right-radius: $--border-radius-huge;
- border-bottom-right-radius: $--border-radius-huge;
- &::before {
- content: "";
- display: block;
- position: absolute;
- height: 100%;
- width: 1px;
- right: 0;
- bottom: 0;
- z-index: 9;
- background: rgba(229, 229, 229, 1);
- }
- .head-logo {
- padding: 0 40px;
- font-size: 20px;
- line-height: 40px;
- text-align: center;
- &-content {
- display: block;
- padding: 30px 0;
- border-bottom: 1px solid #eff0f5;
- }
- img {
- display: block;
- max-width: 160px;
- height: 40px;
- }
- }
- .nav-part {
- padding: 20px 0;
- border-top: 1px solid $--color-border;
- }
- .nav-head {
- padding: 10px 0;
- color: $--color-text-gray-2;
- font-size: $--font-size-base;
- line-height: 20px;
- position: relative;
- font-weight: 500;
- > span {
- display: inline-block;
- vertical-align: top;
- font-weight: 600;
- }
- &-right-icon {
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- color: #d3d5e0;
- font-size: 12px;
- }
- }
- // .nav-list {
- // padding: 0 0 0 23px;
- // }
- .nav-item {
- overflow: hidden;
- color: $--color-text-dark-1;
- &-main {
- padding: 10px 0;
- line-height: 20px;
- position: relative;
- font-weight: 500;
- cursor: pointer;
- &-act,
- &:hover {
- font-weight: 600;
- color: $--color-primary;
- }
- }
- &-icon {
- display: block;
- position: absolute;
- width: 20px;
- height: 20px;
- top: 50%;
- margin-top: -10px;
- text-align: center;
- line-height: 20px;
- }
- &-icon-right {
- right: 5px;
- }
- &-info {
- display: block;
- position: absolute;
- padding: 0 3px;
- min-width: 16px;
- height: 16px;
- font-size: 12px;
- line-height: 16px;
- top: 12px;
- right: 40px;
- background-color: $--color-warning;
- color: #fff;
- text-align: center;
- border-radius: 3px;
- }
- }
- }
- .el-menu-home {
- padding-top: 20px;
- .el-submenu {
- margin-bottom: 20px;
- }
- .el-submenu__title {
- padding: 0 40px !important;
- height: 50px;
- line-height: 50px;
- font-weight: 600;
- > .icon {
- margin-right: 12px;
- }
- }
- .el-menu-item {
- height: auto;
- min-height: 40px;
- line-height: 20px;
- padding: 10px 40px !important;
- white-space: normal;
- }
- .el-menu-item.is-active {
- font-weight: 600;
- }
- .el-submenu__icon-arrow {
- right: 40px;
- }
- }
- /* head */
- .home-header {
- position: absolute;
- width: 100%;
- height: 50px;
- top: 0;
- left: 0;
- z-index: 99;
- color: #fff;
- padding-left: 220px;
- background-color: $--color-text-dark;
- overflow: hidden;
- .menu-list {
- li {
- display: inline-block;
- vertical-align: top;
- padding: 10px 25px;
- height: 50px;
- line-height: 30px;
- opacity: 0.4;
- font-size: 16px;
- position: relative;
- text-align: center;
- cursor: pointer;
- &:hover {
- opacity: 1;
- }
- &.menu-item-act {
- opacity: 1;
- }
- span {
- display: inline-block;
- vertical-align: top;
- margin-left: 8px;
- }
- .icon {
- margin-top: -3px;
- }
- }
- }
- .head-menu {
- float: left;
- }
- .head-user {
- float: right;
- padding-right: 10px;
- li {
- padding: 10px;
- }
- .menu-item-account {
- white-space: nowrap;
- padding: 10px;
- span {
- max-width: 156px;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- }
- // .head-menu-btn
- .head-menu-btn {
- display: none;
- float: right;
- line-height: 36px;
- padding: 12px 15px;
- text-align: center;
- > span {
- display: block;
- height: 36px;
- width: 36px;
- border-radius: 5px;
- background-color: rgba($color: #fff, $alpha: 0.3);
- }
- i {
- font-size: 22px;
- vertical-align: middle;
- }
- }
- }
- // menu-dialog
- .menu-dialog {
- .el-dialog.is-fullscreen {
- border-radius: 0;
- box-shadow: none;
- .el-dialog__body {
- padding: 10px;
- &::after {
- display: none;
- }
- }
- }
- .menu-logout {
- padding: 10px;
- width: 52px;
- height: 52px;
- margin: 0 auto;
- border: 1px solid $--color-text-gray-3;
- border-radius: 50%;
- font-size: 30px;
- text-align: center;
- color: $--color-text-gray-3;
- cursor: pointer;
- &:hover {
- border-color: $--color-danger;
- color: $--color-danger;
- }
- }
- }
- // home-breadcrumb
- .home-breadcrumb {
- margin-bottom: 18px;
- font-size: 12px;
- font-weight: 500;
- color: $--color-text-gray-2;
- .breadcrumb-tips {
- display: inline-block;
- vertical-align: middle;
- > i {
- margin-top: -2px;
- margin-right: 8px;
- }
- }
- .el-breadcrumb {
- line-height: 16px;
- display: inline-block;
- vertical-align: middle;
- font-size: 12px;
- .el-breadcrumb__item {
- .el-breadcrumb__inner {
- color: $--color-text-gray-2;
- }
- }
- .el-breadcrumb__separator {
- margin: 0 5px;
- }
- }
- }
- // home-view
- /* view-footer */
- .home-footer {
- position: absolute;
- width: 100%;
- height: 60px;
- bottom: 0;
- left: 0;
- z-index: auto;
- padding: 20px 0;
- line-height: 20px;
- color: $--color-text-gray-3;
- text-align: center;
- font-size: 13px;
- a {
- color: $--color-text-gray-3;
- }
- a:hover {
- color: $--color-text-gray;
- }
- }
|