You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.6 KiB
Plaintext
69 lines
1.6 KiB
Plaintext
1 year ago
|
@root-entry-name: 'default';
|
||
|
@import (reference) 'ant-design-vue/es/style/themes/index.less';
|
||
|
|
||
|
@basicLayout-prefix-cls: ~'@{ant-prefix}-pro-basicLayout';
|
||
|
@pro-layout-header-height: 48px;
|
||
|
|
||
|
.@{basicLayout-prefix-cls} {
|
||
|
// BFC
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
width: 100%;
|
||
|
min-height: 100%;
|
||
|
|
||
|
.@{ant-prefix}-layout-header {
|
||
|
&.@{ant-prefix}-pro-fixed-header {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
}
|
||
|
&.@{ant-prefix}-pro-header-light {
|
||
|
background: @component-background;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&-content {
|
||
|
position: relative;
|
||
|
margin: 16px;
|
||
|
|
||
|
.@{ant-prefix}-pro-page-container {
|
||
|
margin: -16px -16px 0;
|
||
|
}
|
||
|
|
||
|
&-disable-margin {
|
||
|
margin: 0;
|
||
|
|
||
|
.@{ant-prefix}-pro-page-container {
|
||
|
margin: 0;
|
||
|
}
|
||
|
}
|
||
|
> .@{ant-prefix}-layout {
|
||
|
max-height: 100%;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// children should support fixed
|
||
|
.@{basicLayout-prefix-cls}-is-children.@{basicLayout-prefix-cls}-fix-siderbar {
|
||
|
height: 100vh;
|
||
|
overflow: hidden;
|
||
|
transform: rotate(0);
|
||
|
}
|
||
|
|
||
|
.@{basicLayout-prefix-cls}-has-header {
|
||
|
// tech-page-container
|
||
|
.tech-page-container {
|
||
|
height: calc(100vh - @pro-layout-header-height);
|
||
|
}
|
||
|
.@{basicLayout-prefix-cls}-is-children.@{basicLayout-prefix-cls}-has-header {
|
||
|
.tech-page-container {
|
||
|
height: calc(100vh - @pro-layout-header-height - @pro-layout-header-height);
|
||
|
}
|
||
|
.@{basicLayout-prefix-cls}-is-children {
|
||
|
min-height: calc(100vh - @pro-layout-header-height);
|
||
|
&.@{basicLayout-prefix-cls}-fix-siderbar {
|
||
|
height: calc(100vh - @pro-layout-header-height);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|