2016-12-30 21:41:28 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
|
|
|
@layout-prefix-cls: ~"@{ant-prefix}-layout";
|
|
|
|
|
|
|
|
.@{layout-prefix-cls} {
|
|
|
|
display: flex;
|
2017-01-08 17:03:47 +08:00
|
|
|
flex-direction: column;
|
2016-12-30 21:41:28 +08:00
|
|
|
flex: auto;
|
|
|
|
overflow: auto;
|
|
|
|
background: @layout-body-background;
|
|
|
|
|
2017-01-08 17:03:47 +08:00
|
|
|
&&-has-sider {
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2016-12-30 21:41:28 +08:00
|
|
|
&-header,
|
|
|
|
&-footer {
|
2017-01-08 17:03:47 +08:00
|
|
|
flex: 0 0 auto;
|
2016-12-30 21:41:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
|
|
|
background: @layout-header-background;
|
|
|
|
padding: @layout-header-padding;
|
|
|
|
height: @layout-header-height;
|
|
|
|
line-height: @layout-header-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
|
|
|
padding: @layout-footer-padding;
|
|
|
|
color: @text-color;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-sider {
|
|
|
|
flex: 0 0 200px;
|
2017-02-09 15:20:06 +08:00
|
|
|
overflow: hidden;
|
|
|
|
transition: all .3s @ease-out;
|
2016-12-30 21:41:28 +08:00
|
|
|
position: relative;
|
|
|
|
background: @layout-sider-background;
|
|
|
|
|
|
|
|
&-has-trigger {
|
|
|
|
padding-bottom: @layout-trigger-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-right {
|
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-collapsed {
|
|
|
|
flex: 0 0 64px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-trigger {
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
bottom: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
height: @layout-trigger-height;
|
|
|
|
line-height: @layout-trigger-height;
|
|
|
|
background: tint(@heading-color, 20%);
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|