Commit e032644e by xinla

--no commit message

1 parent 03fe0cd9
<template> <template>
<transition name="fade-transform" mode="out-in"> <!-- <el-scrollbar class="page-scrollbar"> -->
<router-view class="page app-main" :key="key" /> <div class="app-main">
<!-- <keep-alive :include="cachedViews"> <transition name="fade-transform" mode="out-in">
<router-view class="page" :key="key" />
<!-- <keep-alive :include="cachedViews">
</keep-alive> --> </keep-alive> -->
</transition> </transition>
</div>
<!-- </el-scrollbar> -->
</template> </template>
<script> <script>
export default { export default {
name: 'AppMain', name: 'AppMain',
computed: { computed: {
cachedViews () { cachedViews() {
return this.$store.state.tagsView.cachedViews return this.$store.state.tagsView.cachedViews
}, },
key () { key() {
return this.$route.path return this.$route.path
} },
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-main { // ::v-deep .el-scrollbar__wrap {
/* 50= navbar 50 */ // margin: 20px 0;
// min-height: calc(100vh - 50px); // padding: 0 20px;
width: 100%; // }
position: relative; .app-main {
overflow-y: auto; position: relative;
overflow-x: hidden; overflow-y: auto;
// padding-top: 15px; margin: 20px 0 0;
// background-color: #fff; padding: 0 20px;
}
.fixed-header + .app-main { &::-webkit-scrollbar-thumb {
padding-top: 50px; visibility: hidden;
}
&:hover::-webkit-scrollbar-thumb {
visibility: visible;
} }
}
.hasTagsView { .page {
.app-main { background: #fff;
/* 84 = navbar + tags-view = 50 + 34 */ border-radius: var(--border-radius-big);
height: calc(100vh - 84px); overflow: hidden;
} }
.fixed-header + .app-main {
padding-top: 50px;
}
.fixed-header + .app-main { .hasTagsView {
padding-top: 84px; .app-main {
} /* 84 = navbar + tags-view = 50 + 34 */
height: calc(100vh - 84px);
}
.fixed-header + .app-main {
padding-top: 84px;
} }
}
</style> </style>
<style lang="scss"> <style lang="scss">
// fix css style bug in open el-dialog // fix css style bug in open el-dialog
.el-popup-parent--hidden { .el-popup-parent--hidden {
.fixed-header { .fixed-header {
padding-right: 15px; padding-right: 15px;
}
} }
}
</style> </style>
...@@ -10,12 +10,10 @@ ...@@ -10,12 +10,10 @@
<div class="breadcrumb-wrap" v-show="visiableSidebarRouters"> <div class="breadcrumb-wrap" v-show="visiableSidebarRouters">
<breadcrumb /> <breadcrumb />
</div> </div>
<div class="page-content"> <app-main />
<app-main /> <!-- <RightPanel v-if="showSettings">
<RightPanel v-if="showSettings">
<settings /> <settings />
</RightPanel> </RightPanel> -->
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -96,9 +94,6 @@ export default { ...@@ -96,9 +94,6 @@ export default {
background: #fff; background: #fff;
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
.page-content {
margin: 20px 20px 0;
}
&.mobile.openSidebar { &.mobile.openSidebar {
position: fixed; position: fixed;
......
...@@ -40,8 +40,7 @@ body { ...@@ -40,8 +40,7 @@ body {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
sans-serif;
overflow: hidden; overflow: hidden;
} }
...@@ -119,6 +118,10 @@ li { ...@@ -119,6 +118,10 @@ li {
background: white; background: white;
} }
.bgnone {
background: none !important;
}
.blod { .blod {
font-weight: bold; font-weight: bold;
} }
...@@ -295,14 +298,16 @@ li { ...@@ -295,14 +298,16 @@ li {
/* Dark mode */ /* Dark mode */
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
body,img,video { body,
img,
video {
filter: invert(1) hue-rotate(180deg); filter: invert(1) hue-rotate(180deg);
} }
// 不使用暗黑模式 // 不使用暗黑模式
.no-dark { .no-dark {
position: relative; position: relative;
&::before{ &::before {
content: " "; content: ' ';
position: absolute; position: absolute;
display: block; display: block;
height: 100%; height: 100%;
...@@ -310,4 +315,4 @@ li { ...@@ -310,4 +315,4 @@ li {
backdrop-filter: invert(1) hue-rotate(180deg); backdrop-filter: invert(1) hue-rotate(180deg);
} }
} }
}
\ No newline at end of file \ No newline at end of file
}
...@@ -379,6 +379,7 @@ ...@@ -379,6 +379,7 @@
background: var(--color); background: var(--color);
} }
// 表格
.el-table { .el-table {
background-color: transparent; background-color: transparent;
&::before { &::before {
...@@ -389,7 +390,7 @@ ...@@ -389,7 +390,7 @@
.el-table__header-wrapper tr { .el-table__header-wrapper tr {
background-color: #f5f7fa; background-color: #f5f7fa;
height: 40px; height: 40px;
color: #1d2129; color: var(--font-black);
border-radius: var(--border-radius-small); border-radius: var(--border-radius-small);
} }
.el-table__body-wrapper, .el-table__body-wrapper,
......
...@@ -383,7 +383,7 @@ aside { ...@@ -383,7 +383,7 @@ aside {
height: 60px; height: 60px;
font-size: 18px; font-size: 18px;
font-weight: 500; font-weight: 500;
color: #333; color: var(--font-black);
padding: 0 20px; padding: 0 20px;
background: #fff; background: #fff;
border-radius: var(--border-radius-big) var(--border-radius-big) 0 0; border-radius: var(--border-radius-big) var(--border-radius-big) 0 0;
...@@ -398,22 +398,28 @@ aside { ...@@ -398,22 +398,28 @@ aside {
margin-top: 0; margin-top: 0;
} }
} }
// 二级 分类标题 // 二级/卡片标题
&title-sub { &title-sub {
@extend .g-title; @extend .g-title;
font-size: 16px; font-size: 16px;
margin-top: var(--card-margin);
&:first-child {
margin-top: 0;
}
& + .g-card { & + .g-card {
border-radius: 0 0 var(--border-radius-big) var(--border-radius-big); border-radius: 0 0 var(--border-radius-big) var(--border-radius-big);
margin-top: 0; margin-top: 0;
padding-top: 0;
} }
} }
// 卡片样式 // 卡片样式
&card { &card {
margin-top: 16px; margin-top: var(--card-margin);
border-radius: var(--border-radius-big); border-radius: var(--border-radius-big);
background: #fff; background: #fff;
overflow: auto; overflow: auto;
padding: 20px;
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;
} }
......
// css var // css var
:root { html {
--color: #07c160; --color: #07c160; // 主题色
--color-lighter: #90de45; --color-lighter: #90de45; // 浅主题色
--color-success: #07c160; --color-success: #07c160;
--color-warning: #faad14; --color-warning: #faad14;
--color-danger: #eb5e12; --color-danger: #eb5e12;
--border-radius: 8px; --border-radius: 8px; // 圆角
--border-radius-small: 4px; --border-radius-small: 4px; // 小圆角
--border-radius-big: 16px; --border-radius-big: 16px; // 大圆角
--top-nav-heght: 64px; --card-margin: 16px; // 卡片间距
--top-nav-heght: 64px; // 顶部导航条高度
--font-black: #1d2129; // 通用字体黑色
} }
// base color // base color
$light-blue: #90de45; $light-blue: #90de45;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!