🎉 Toggle sidebar

This commit is contained in:
Liyas Thomas
2019-12-02 13:49:52 +05:30
parent ae528f6302
commit c3544076ba
3 changed files with 18 additions and 18 deletions

View File

@@ -2,7 +2,7 @@
.page-leave-active, .page-leave-active,
.layout-enter-active, .layout-enter-active,
.layout-leave-active { .layout-leave-active {
transition: all 0.2s ease-in-out; transition: all 0.2s;
} }
.page-enter, .page-enter,
@@ -267,8 +267,9 @@ h3 {
color: white; color: white;
border-radius: 8px; border-radius: 8px;
padding: 8px 16px; padding: 8px 16px;
font-size: 14px; font-size: 12px;
font-weight: 500; font-weight: 500;
box-shadow: 0 4px 24px rgba(black, 0.1);
} }
.tooltip-arrow { .tooltip-arrow {
@@ -774,13 +775,13 @@ input[type="radio"]:checked + label + .tab {
.inner-left { .inner-left {
display: flex; display: flex;
order: 1; order: 1;
margin-right: 16px;
} }
.inner-right { .inner-right {
display: flex; display: flex;
width: 30%; width: 30%;
order: 2; order: 2;
margin-left: 16px;
} }
.bg-color { .bg-color {
@@ -839,6 +840,9 @@ input[type="radio"]:checked + label + .tab {
.inner-left { .inner-left {
order: 0; order: 0;
margin-right: 0; }
.inner-right {
margin-left: 0;
} }
} }

View File

@@ -122,7 +122,7 @@
/> />
</li> </li>
</div> </div>
<transition name="smooth"> <transition name="page" appear>
<div v-if="showMore" class="show-on-large-screen"> <div v-if="showMore" class="show-on-large-screen">
<li> <li>
<input <input
@@ -267,16 +267,6 @@
} }
} }
.smooth-enter-active,
.smooth-leave-active {
transition: all 0.2s;
}
.smooth-enter,
.smooth-leave-to {
opacity: 0;
}
.stared { .stared {
color: #f8e81c !important; color: #f8e81c !important;
} }

View File

@@ -560,6 +560,12 @@
</ul> </ul>
</pw-section> </pw-section>
</div> </div>
<div class="flex-wrap" style="display: flex; flex-grow: 1;">
<span></span>
<button class="icon" @click="activeSidebar = !activeSidebar" v-tooltip="{ content: activeSidebar ? 'Hide Sidebar' : 'Show Sidebar' }">
<i class="material-icons">{{activeSidebar ? 'chevron_right' : 'chevron_left'}}</i>
</button>
</div>
</section> </section>
<pw-section <pw-section
@@ -668,8 +674,7 @@
</ul> </ul>
</pw-section> </pw-section>
</div> </div>
<aside v-if="activeSidebar" class="sticky-inner inner-right">
<aside class="sticky-inner inner-right">
<section> <section>
<input id="history-tab" type="radio" name="side" checked="checked" /> <input id="history-tab" type="radio" name="side" checked="checked" />
<label for="history-tab">{{ $t("history") }}</label> <label for="history-tab">{{ $t("history") }}</label>
@@ -910,7 +915,8 @@ export default {
urlExcludes: {}, urlExcludes: {},
responseBodyText: "", responseBodyText: "",
responseBodyType: "text", responseBodyType: "text",
responseBodyMaxLines: 16 responseBodyMaxLines: 16,
activeSidebar: true
}; };
}, },
watch: { watch: {