2019-06-13 14:53:30 +08:00
|
|
|
@import './mixins/mixins.scss';
|
|
|
|
|
2019-09-20 00:25:56 +08:00
|
|
|
@include themes-mixin() {
|
|
|
|
@include b(nimbus-service-layout) {
|
2019-11-13 00:02:42 +08:00
|
|
|
$layout-nav-height: 64px;
|
2019-06-28 15:38:44 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2019-09-20 00:25:56 +08:00
|
|
|
right: 0;
|
|
|
|
z-index: 0;
|
2019-09-20 17:38:13 +08:00
|
|
|
background-color: $service-layout-body-background-color;
|
2019-09-20 00:25:56 +08:00
|
|
|
color: $service-layout-color;
|
|
|
|
@include e(nav) {
|
2019-06-28 15:08:31 +08:00
|
|
|
position: absolute;
|
2019-09-20 00:25:56 +08:00
|
|
|
left: 0;
|
2019-06-28 15:08:31 +08:00
|
|
|
right: 0;
|
2019-09-20 00:25:56 +08:00
|
|
|
top: 0;
|
|
|
|
background-color: $service-layout-nav-background-color;
|
2019-09-29 17:54:20 +08:00
|
|
|
box-sizing: border-box;
|
2019-09-20 00:25:56 +08:00
|
|
|
border-bottom: 1px solid $service-layout-border-color;
|
|
|
|
// box-shadow: 0px 2px 6px 1px rgba(0,0,0,0.1),0px 1px 3px 0px rgba(0,0,0,0.17);
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: background-color .3s $--n-ease-in-out-cubic-bezier, border-color .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
height: $layout-nav-height;
|
|
|
|
}
|
|
|
|
@include e(body) {
|
2019-11-12 15:04:42 +08:00
|
|
|
font-size: 14px;
|
2019-09-20 00:25:56 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 272px;
|
|
|
|
right: 0px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: $service-layout-body-background-color;
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: background-color .3s $--n-ease-in-out-cubic-bezier, left .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(active) {
|
|
|
|
left: 272px;
|
|
|
|
}
|
|
|
|
@include m(collapsed) {
|
|
|
|
left: 48px;
|
|
|
|
}
|
|
|
|
@include m(disable-menu) {
|
|
|
|
left: 0px;
|
|
|
|
}
|
|
|
|
@include m(with-header) {
|
|
|
|
top: $layout-nav-height;
|
|
|
|
}
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include b(nimbus-service-layout-drawer) {
|
|
|
|
border-right: 1px solid $service-layout-border-color;
|
|
|
|
display: inline-block;
|
|
|
|
background-color: $service-layout-drawer-background-color;
|
|
|
|
width: 272px;
|
2019-06-28 15:08:31 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: transform .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier, border-color .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
// box-shadow: 0 2px 10px 1px rgba(0, 0, 0, .2);
|
|
|
|
@include b(nimbus-service-layout-drawer-divider) {
|
|
|
|
margin: 0px 25px;
|
|
|
|
border-bottom: 1px solid rgba(255, 255, 255, .08);
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include e(toggle-button) {
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: transform .3s $--n-ease-in-out-cubic-bezier;
|
2019-06-28 15:08:31 +08:00
|
|
|
cursor: pointer;
|
2019-09-20 00:25:56 +08:00
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
2019-09-20 17:38:13 +08:00
|
|
|
path {
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: fill .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 17:38:13 +08:00
|
|
|
fill: $service-layout-toggle-button-color;
|
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
@include b(nimbus-service-layout-drawer-content) {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
overflow: hidden;
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: opacity .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
@include b(nimbus-service-layout-drawer-header) {
|
|
|
|
position: relative;
|
2019-12-23 16:48:49 +08:00
|
|
|
font-weight: 500;
|
2019-09-20 00:25:56 +08:00
|
|
|
height: $layout-nav-height;
|
|
|
|
padding-left: 48px;
|
|
|
|
font-size: 16px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
@include e(header) {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
@include e(icon) {
|
2019-06-28 15:08:31 +08:00
|
|
|
position: absolute;
|
2019-09-20 00:25:56 +08:00
|
|
|
left: 22px;
|
2019-11-09 22:52:20 +08:00
|
|
|
fill: $--n-text-color;
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include b(nimbus-service-layout-drawer-item) {
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
padding-top: 16px;
|
|
|
|
padding-bottom: 16px;
|
|
|
|
padding-left: 48px;
|
|
|
|
font-size: 14px;
|
|
|
|
@include e(icon) {
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
position: absolute;
|
|
|
|
background-image:linear-gradient(47deg,rgba(120, 205, 104, 1) 0%,rgba(20, 166, 165, 1) 100%);
|
|
|
|
top: 20px;
|
|
|
|
left: 30px;
|
|
|
|
-webkit-clip-path: polygon(100% 0, 100% 100%, 0% 100%);
|
|
|
|
clip-path: polygon(100% 0, 100% 100%, 0% 100%);
|
|
|
|
}
|
2019-07-25 10:48:46 +08:00
|
|
|
}
|
|
|
|
span {
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: opacity 0.3s $--n-ease-in-out-cubic-bezier, color 0.3s $--n-ease-in-out-cubic-bezier;
|
2019-07-25 10:48:46 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(active) {
|
|
|
|
@include not-m(is-group-item) {
|
2019-09-27 16:02:20 +08:00
|
|
|
color: $--service-kayout-item-active-color;
|
2019-09-20 00:25:56 +08:00
|
|
|
}
|
|
|
|
span {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover span {
|
|
|
|
opacity: 1;
|
2019-06-28 15:38:44 +08:00
|
|
|
}
|
2019-09-20 17:38:13 +08:00
|
|
|
&::before { // item background
|
2019-09-20 00:25:56 +08:00
|
|
|
content: "";
|
2019-11-28 16:58:18 +08:00
|
|
|
background-size: 300%;
|
2019-09-20 17:38:13 +08:00
|
|
|
background-image: $service-layout-item-background-image;
|
2019-11-28 16:58:18 +08:00
|
|
|
background-position: $--service-layout-item-background-position;
|
2019-06-28 15:08:31 +08:00
|
|
|
position: absolute;
|
2019-09-20 00:25:56 +08:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: -1;
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: opacity 0.3s $--n-ease-in-out-cubic-bezier, background-position .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
opacity: 0;
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(active) {
|
|
|
|
&::before {
|
|
|
|
opacity: .9;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include m(is-group-header) {
|
|
|
|
&::after { // down arrow
|
|
|
|
content: '';
|
|
|
|
height: 6px;
|
|
|
|
width: 6px;
|
2019-09-27 16:02:20 +08:00
|
|
|
border-left: 2px solid $--n-primary-color;
|
|
|
|
border-top: 2px solid $--n-primary-color;
|
2019-09-20 00:25:56 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 240px;
|
|
|
|
top: calc(50% - 1px);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
transform-origin: 25% 25%;
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: transform 0.3s $--n-ease-in-out-cubic-bezier, opacity 0.3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
}
|
2019-10-12 00:31:45 +08:00
|
|
|
// @include m(group-item-is-choosed) {
|
|
|
|
// span {
|
|
|
|
// color: #63E2B7;
|
|
|
|
// }
|
|
|
|
// }
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(collapsed) {
|
|
|
|
&::after {
|
|
|
|
transform: rotate(225deg) ;
|
|
|
|
}
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(is-group-item) {
|
|
|
|
padding-left: 64px;
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include b(nimbus-service-layout-drawer-group-items) {
|
|
|
|
overflow: hidden;
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: max-height .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 17:38:13 +08:00
|
|
|
opacity: 1;
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(collapsed) {
|
|
|
|
max-height: 0;
|
2019-09-20 17:38:13 +08:00
|
|
|
opacity: 0;
|
2019-09-20 00:25:56 +08:00
|
|
|
}
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(active) {
|
|
|
|
transform: translateX(0);
|
|
|
|
opacity: 1;
|
2019-12-22 15:50:37 +08:00
|
|
|
// transition: transform .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
@include e(toggle-button) {
|
|
|
|
transform: translateX(50%) translateY(-50%) rotate(0deg);
|
|
|
|
}
|
|
|
|
@include b(nimbus-service-layout-drawer-content) {
|
|
|
|
opacity: 1;
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(collapsed) {
|
2019-06-28 15:38:44 +08:00
|
|
|
opacity: 1;
|
2019-09-20 00:25:56 +08:00
|
|
|
transform: translateX(-224px);
|
2019-12-22 15:50:37 +08:00
|
|
|
// transition: transform .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
pointer-events: none;
|
|
|
|
@include e(toggle-button) {
|
|
|
|
transform: translateX(50%) translateY(-50%) rotate(180deg);
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
@include b(nimbus-service-layout-drawer-content) {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2019-06-28 15:38:44 +08:00
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(with-header) {
|
|
|
|
top: $layout-nav-height;
|
2019-06-28 15:38:44 +08:00
|
|
|
}
|
2019-09-20 00:25:56 +08:00
|
|
|
@include m(disabled) {
|
|
|
|
transform: translateX(-272px);
|
2019-06-28 15:38:44 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-06-28 15:08:31 +08:00
|
|
|
}
|
2019-06-13 14:53:30 +08:00
|
|
|
}
|