Commit fa59e2ff authored by 王启林's avatar 王启林

调整全局样式

parent b9b31637
...@@ -13,7 +13,7 @@ html * { ...@@ -13,7 +13,7 @@ html * {
html, html,
body { body {
// height: 100vh; // height: 100%;
// min-height: 100%; // min-height: 100%;
font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, STHeiTi, Arial, font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, STHeiTi, Arial,
sans-serif; sans-serif;
......
<template> <template>
<div :style="menuPageCss" class="pages page-layout"> <div :style="menuPageCss" class="pages page-layout">
<LayoutHeader <LayoutHeader v-if="menuPage !== 'left'" @changePath="changePath"></LayoutHeader>
v-if="menuPage !== 'left'" <LayoutHeaderLeft @toggle="toggle" :isOpen="isOpen" v-if="menuPage === 'left'" />
@changePath="changePath"
></LayoutHeader>
<LayoutHeaderLeft
@toggle="toggle"
:isOpen="isOpen"
v-if="menuPage === 'left'"
/>
<div class="layout"> <div class="layout">
<router-view :class="{ active: !isOpen }" /> <router-view :class="{ active: !isOpen }" />
</div> </div>
...@@ -57,10 +50,12 @@ export default { ...@@ -57,10 +50,12 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
.layout{ .layout {
padding: 15px 15px 0 15px ; padding: 15px 15px 0 15px;
box-sizing: border-box; box-sizing: border-box;
} }
.page { .page {
min-height: calc(100vh - 100px); min-height: calc(100vh - 100px);
width: 100%; width: 100%;
...@@ -69,12 +64,32 @@ export default { ...@@ -69,12 +64,32 @@ export default {
// var(--padding-top) 5px 5px 5px; // var(--padding-top) 5px 5px 5px;
// margin-left: 60px; // margin-left: 60px;
padding: 10px; padding: 10px;
&.active { &.active {
margin-left: var(--margin-left); margin-left: var(--margin-left);
} }
} }
.page-layout { .page-layout {
background: #eee; background: #eee;
height: 100vh;
overflow: auto;
} }
/* 侧边滚动条 */
.page-layout::-webkit-scrollbar {
width: 3px;
}
/* 滚动条上的滚动滑块 */
.page-layout::-webkit-scrollbar-thumb {
background: #CCCCCC;
border-radius: 4px;
}
/* 滚动条轨道 */
.page-layout::-webkit-scrollbar-track {
background: #EEEEEE;
border-radius: 4px;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment