Skip to content

Commit

Permalink
style: 馃拕 浼樺寲layout鏍峰紡
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Dec 29, 2020
1 parent 9c26edd commit 37ec378
Show file tree
Hide file tree
Showing 8 changed files with 208 additions and 853 deletions.
1 change: 0 additions & 1 deletion src/components/Screenfull/index.vue
Expand Up @@ -9,7 +9,6 @@
<script lang="ts">
import { defineComponent, ref, onMounted } from 'vue'
import screenfull from 'screenfull'
// import { message } from 'ant-design-vue'
export default defineComponent({
name: 'Screenfull',
Expand Down
111 changes: 1 addition & 110 deletions src/pages/index/layout/modules/Classic.vue
Expand Up @@ -138,114 +138,5 @@ export default defineComponent({
</script>

<style lang="less" scoped>
.app__wrap {
position: relative;
height: 100%;
width: 100%;
.sidebar__wrap {
position: fixed;
width: @menuWidth;
top: 0;
left: 0;
height: 100%;
transition: width 0.2s;
}
.sidebar__wrap--collapsed {
width: @menuMinWidth;
@{deep}(.anticon-item) {
display: none;
}
}
.main__wrap {
position: absolute;
width: calc(~"100% - @{menuWidth}");
height: 100%;
top: 0;
left: @menuWidth;
transition: all 0.2s;
z-index: 1;
.header__wrap {
transition: all 0.2s;
.navbar__wrap {
display: flex;
align-items: center;
height: @navbarHeight;
padding: 0 20px 0 15px;
position: relative;
background: @contentBg;
&:after {
content: "";
width: 100%;
height: 1px;
border-top: 1px solid #d8dce5;
position: absolute;
bottom: 0;
left: 0;
}
@{deep}(.hover-container) {
transition: background 0.2s;
height: 100%;
line-height: @navbarHeight + 5px;
padding: 0 5px;
text-align: center;
&:hover {
background: #f6f6f6;
}
}
.navbar__wrap--right {
display: flex;
align-items: center;
height: @navbarHeight;
position: absolute;
top: 0;
right: 20px;
@{deep}(.screenfull-container),
@{deep}(.user-container) {
line-height: @navbarHeight !important;
}
}
}
}
// content鏍峰紡
.main__wrap--content {
height: 100%;
@{deep}(.el-scrollbar__wrap) {
overflow-x: hidden;
}
}
// content鏍峰紡
}
.main__wrap--collapsed {
width: calc(~"100% - @{menuMinWidth}");
left: @menuMinWidth;
}
}
// 缁忓吀妯″紡
.app__wrap--Classic {
.main__wrap--fixed--all {
margin-top: @navbarHeight + @tagsViewHeight !important;
height: calc(~"100% - @{navbarHeight} - @{tagsViewHeight}") !important;
}
.main__wrap--fixed--nav {
margin-top: @navbarHeight !important;
height: calc(~"100% - @{navbarHeight}") !important;
}
.main__wrap--fixed--tags {
margin-top: @tagsViewHeight !important;
height: calc(~"100% - @{tagsViewHeight}") !important;
}
.header__wrap--fixed {
position: fixed !important;
width: calc(~"100% - @{menuWidth}") !important;
top: 0 !important;
left: @menuWidth !important;
z-index: 200;
}
.header__wrap--collapsed {
width: calc(~"100% - @{menuMinWidth}") !important;
left: @menuMinWidth !important;
}
}
@import './style.less';
</style>
170 changes: 1 addition & 169 deletions src/pages/index/layout/modules/LeftTop.vue
Expand Up @@ -159,173 +159,5 @@ export default defineComponent({
</script>

<style lang="less" scoped>
.app__wrap {
position: relative;
height: 100%;
width: 100%;
.sidebar__wrap {
position: fixed;
width: @menuWidth;
top: 0;
left: 0;
height: 100%;
transition: width 0.2s;
}
.sidebar__wrap--collapsed {
width: @menuMinWidth;
@{deep}(.anticon-item) {
display: none;
}
}
.main__wrap {
position: absolute;
width: calc(~"100% - @{menuWidth}");
height: 100%;
top: 0;
left: @menuWidth;
transition: all 0.2s;
z-index: 1;
.header__wrap {
transition: all 0.2s;
.navbar__wrap {
display: flex;
align-items: center;
height: @navbarHeight;
padding: 0 20px 0 15px;
position: relative;
background: @contentBg;
&:after {
content: "";
width: 100%;
height: 1px;
border-top: 1px solid #d8dce5;
position: absolute;
bottom: 0;
left: 0;
}
@{deep}(.hover-container) {
transition: background 0.2s;
height: 100%;
line-height: @navbarHeight + 5px;
padding: 0 5px;
text-align: center;
&:hover {
background: #f6f6f6;
}
}
.navbar__wrap--right {
display: flex;
align-items: center;
height: @navbarHeight;
position: absolute;
top: 0;
right: 20px;
@{deep}(.screenfull-container),
@{deep}(.user-container) {
line-height: @navbarHeight !important;
}
}
}
}
// content鏍峰紡
.main__wrap--content {
height: 100%;
@{deep}(.el-scrollbar__wrap) {
overflow-x: hidden;
}
}
// content鏍峰紡
}
.main__wrap--collapsed {
width: calc(~"100% - @{menuMinWidth}");
left: @menuMinWidth;
}
}
// LeftTop妯″紡
.app__wrap--LeftTop {
.main__wrap--fixed--all {
margin-top: @navbarHeight + @tagsViewHeight !important;
height: calc(~"100% - @{navbarHeight} - @{tagsViewHeight}") !important;
}
.main__wrap--fixed--nav {
margin-top: @navbarHeight !important;
height: calc(~"100% - @{navbarHeight}") !important;
}
.main__wrap--fixed--tags {
margin-top: @tagsViewHeight !important;
height: calc(~"100% - @{tagsViewHeight}") !important;
}
.header__wrap--fixed {
position: fixed !important;
width: calc(~"100% - @{menuWidth}") !important;
top: @topSiderHeight !important;
left: @menuWidth !important;
z-index: 200;
}
.header__wrap--collapsed {
width: calc(~"100% - @{menuMinWidth}") !important;
left: @menuMinWidth !important;
}
}
// 椤堕儴妯″紡
.app__wrap--LeftTop {
.sidebar__wrap--Top {
height: @topSiderHeight;
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 0 20px;
background-color: @topMenuBg;
position: relative;
&:after {
content: "";
width: 100%;
height: 1px;
border-top: 1px solid #d8dce5;
position: absolute;
bottom: 0;
left: 0;
}
.sidebar__item--Top {
flex: 1;
margin: 0 50px;
}
.navbar__wrap--right {
display: flex;
align-items: center;
height: @topSiderHeight;
@{deep}(.hover-container) {
transition: background 0.2s;
height: 100%;
line-height: @topSiderHeight;
padding: 0 5px;
text-align: center;
&:hover {
background: #f6f6f6;
}
}
}
}
}
.app__wrap--LeftTop {
.sidebar__wrap {
top: @topSiderHeight;
left: 0;
height: calc(~"100% - @{topSiderHeight}");
}
.main__wrap {
width: calc(~"100% - @{menuWidth}");
left: @menuWidth;
height: calc(~"100% - @{topSiderHeight}");
top: @topSiderHeight;
}
.main__wrap--collapsed {
width: calc(~"100% - @{menuMinWidth}");
left: @menuMinWidth;
}
}
@import './style.less';
</style>

0 comments on commit 37ec378

Please sign in to comment.