diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue index 742159857..936927e7f 100644 --- a/src/components/Hamburger/index.vue +++ b/src/components/Hamburger/index.vue @@ -1,6 +1,6 @@ @@ -30,6 +30,6 @@ export default { color: $menuText; } .hamburger.is-active { - transform: rotate(180deg); + transform: rotate(-180deg); } diff --git a/src/icons/svg/direction-left.svg b/src/icons/svg/direction-left.svg new file mode 100644 index 000000000..84dd449b5 --- /dev/null +++ b/src/icons/svg/direction-left.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/layout/components/NavHeader/index.vue b/src/layout/components/NavHeader/index.vue index 5acb62f63..192dce755 100644 --- a/src/layout/components/NavHeader/index.vue +++ b/src/layout/components/NavHeader/index.vue @@ -198,7 +198,6 @@ export default { line-height: 30px; border-radius: 4px; border-color: $--color-primary; - background-color: white; color: #fff; cursor: pointer; transition: .2s; diff --git a/src/layout/components/NavLeft/index.vue b/src/layout/components/NavLeft/index.vue index eb2780a22..78e18e7fe 100644 --- a/src/layout/components/NavLeft/index.vue +++ b/src/layout/components/NavLeft/index.vue @@ -3,19 +3,17 @@ @@ -53,6 +54,9 @@ +
+ +
@@ -124,6 +128,9 @@ export default { methods: { toggleSideBar() { this.$store.dispatch('app/toggleSideBar') + }, + toggleSwitch() { + this.viewShown = true } } } @@ -217,6 +224,26 @@ export default { } } + .is-show { + display: block!important;; + } + + .mobile-menu { + display: none; + position: absolute; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + padding-top: 10px; + background: #fff; + z-index: 100; + } + + .show-switch-view { + display: none; + } + .active-mobile { display: none; @@ -227,10 +254,6 @@ export default { border-bottom: 1px solid rgba(31, 35, 41, .15); } - & > > > .menu-main { - margin-left: -10px; - } - & > > > .title-label { color: white !important; } @@ -243,9 +266,27 @@ export default { @media screen and (max-width: 992px) { .active-mobile { display: block; + .organization { + &>>> .svg-icon { + color: #FFF!important; + margin-right:0px!important; + } + } + .mobile-view-switch { + background: #fff!important; + &>>> .el-menu-item.is-active { + color: var(--menu-text-active)!important; + .svg-icon { + color: var(--menu-text-active)!important; + } + } + } } .active-switch-view { - display: none !important;; + display: none!important; + } + .show-switch-view { + display: block!important; } }