123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524 |
- /* 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-body-content {
- position: relative;
- padding: 20px 30px 50px 250px;
- min-height: 100%;
- }
- .home-page-main {
- .home-navs {
- bottom: auto;
- height: 50px;
- border-radius: 0;
- background-color: transparent;
- &::before {
- display: none;
- }
- .head-logo-content {
- padding: 5px 0;
- border: none;
- }
- .el-menu {
- display: none;
- }
- }
- .home-breadcrumb {
- display: none;
- }
- .home-body-content {
- padding-left: 30px;
- }
- }
- /* 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;
- display: flex;
- align-items: stretch;
- justify-content: space-between;
- .menu-list {
- li {
- position: relative;
- display: inline-block;
- vertical-align: top;
- padding: 10px;
- 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;
- &::after {
- content: "";
- display: block;
- position: absolute;
- left: 5px;
- right: 5px;
- bottom: 0;
- border-top: 5px solid #fff;
- border-radius: 5px;
- z-index: 8;
- }
- }
- span {
- display: inline-block;
- vertical-align: top;
- }
- .icon {
- margin-top: -3px;
- margin-right: 6px;
- }
- > i {
- margin-right: 6px;
- }
- }
- }
- .head-menu {
- flex-grow: 1;
- overflow-y: hidden;
- overflow-x: auto;
- ul {
- white-space: nowrap;
- }
- }
- .head-user {
- flex-grow: 0;
- flex-shrink: 0;
- .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;
- }
- }
- // home-page
- .home-page {
- width: 1000px;
- margin: 0 auto;
- .tab-summary {
- margin-bottom: 20px;
- font-size: 0;
- &-item {
- position: relative;
- display: inline-block;
- vertical-align: top;
- width: 137px;
- margin-right: 10px;
- border-radius: 16px;
- padding: 20px;
- color: #fff;
- text-align: right;
- &:nth-of-type(1) {
- background: #9877ff;
- box-shadow: 0px 10px 10px 0px rgba(152, 119, 255, 0.3);
- }
- &:nth-of-type(2) {
- background: #3fcb98;
- box-shadow: 0px 10px 10px 0px rgba(63, 203, 152, 0.3);
- }
- }
- &-rp {
- display: block;
- position: absolute;
- width: 6px;
- height: 6px;
- background: #fe646a;
- border: 2px solid #eff0f5;
- top: -2px;
- left: -2px;
- border-radius: 50%;
- z-index: 9;
- }
- &-icon {
- display: block;
- position: absolute;
- top: 20px;
- left: 20px;
- font-size: 16px;
- z-index: auto;
- }
- &-title {
- font-size: 12px;
- margin-bottom: 7px;
- }
- &-cont {
- height: 38px;
- font-size: 32px;
- font-weight: bold;
- line-height: 38px;
- }
- }
- .tab-box {
- border-radius: 16px;
- background-color: #fff;
- margin-bottom: 20px;
- min-height: 100px;
- padding: 20px;
- &-title {
- font-weight: bold;
- font-size: 16px;
- color: #1f222f;
- margin-bottom: 10px;
- }
- }
- .shortcut-list {
- font-size: 0;
- white-space: nowrap;
- overflow: auto;
- }
- .shortcut-item {
- display: inline-block;
- vertical-align: top;
- padding: 10px 0;
- width: 100px;
- text-align: center;
- }
- .shortcut-icon {
- width: 40px;
- height: 40px;
- background: #3a5ae5;
- border-radius: 6px;
- font-size: 20px;
- line-height: 40px;
- margin: 0 auto;
- }
- .shortcut-name {
- margin-top: 12px;
- font-size: 14px;
- font-weight: 500;
- color: #434656;
- }
- .task-item {
- display: flex;
- justify-content: space-between;
- align-items: stretch;
- padding: 10px 0;
- &:not(:last-child) {
- border-bottom: 1px solid #eff0f5;
- }
- &-cont {
- flex-grow: 2;
- margin: 0 10px;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- line-height: 22px;
- }
- &-type,
- &-action {
- flex-shrink: 0;
- flex-grow: 0;
- }
- &-type {
- width: 60px;
- padding: 5px;
- line-height: 1;
- font-size: 12px;
- color: #fff;
- border-radius: 6px;
- text-align: center;
- }
- }
- }
|