amis2/scss/components/_page.scss

105 lines
1.8 KiB
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}Page {
2019-12-06 09:58:08 +08:00
&-header {
padding: $Page-header-paddingY $Page-header-paddingX;
}
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&-main {
background: $Page-main-bg;
2020-02-14 16:11:33 +08:00
height: 100%;
display: flex;
flex-direction: column;
2019-12-06 09:58:08 +08:00
}
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&-content {
padding: $Page-content-paddingY $Page-content-paddingX;
}
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&-main > &-header {
border-bottom: $borderWidth solid $borderColor;
}
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&-headerRow {
border-bottom: $borderWidth solid $borderColor;
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
display: table;
table-layout: fixed;
width: 100%;
border-spacing: 0;
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
.#{$ns}Page-header,
.#{$ns}Page-toolbar {
display: table-cell;
vertical-align: middle;
2019-04-30 11:11:25 +08:00
}
2019-12-06 09:58:08 +08:00
.#{$ns}Page-toolbar {
text-align: right;
padding-right: $gap-base;
2019-04-30 11:11:25 +08:00
}
2019-12-06 09:58:08 +08:00
}
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&-title {
margin: 0;
padding: 0;
color: $Page-title-color;
line-height: $Page-title-lineHeight;
font-size: $Page-title-fontSize;
font-weight: $Page-title-fontWeight;
}
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&-body {
padding: $Page-body-padding;
2020-02-14 16:11:33 +08:00
flex: 1 auto;
2019-12-06 09:58:08 +08:00
}
&-asideTplWrapper {
padding: $gap-xs;
}
2019-04-30 11:11:25 +08:00
}
2019-07-22 15:42:30 +08:00
.#{$ns}Page-toolbar {
2019-12-06 09:58:08 +08:00
.#{$ns}Button + .#{$ns}Button {
margin-left: $gap-xs;
}
2019-07-22 15:42:30 +08:00
}
2019-04-30 11:11:25 +08:00
2019-07-22 15:42:30 +08:00
.#{$ns}Page-aside {
2019-12-06 09:58:08 +08:00
background-color: $Page-aside-bg;
2019-04-30 11:11:25 +08:00
}
2019-07-22 15:42:30 +08:00
@include media-breakpoint-up(md) {
2019-12-06 09:58:08 +08:00
.#{$ns}Page-aside {
&::before {
content: '';
position: absolute;
width: inherit;
top: 0;
bottom: 0;
z-index: -1;
background-color: inherit;
border: inherit;
2019-04-30 11:11:25 +08:00
}
2019-12-06 09:58:08 +08:00
width: $Page-aside-width;
border-right: $borderWidth solid $borderColor;
}
.#{$ns}Page--withSidebar {
display: table;
table-layout: fixed;
width: 100%;
height: 100%;
border-spacing: 0;
.#{$ns}Page-aside,
.#{$ns}Page-content {
display: table-cell;
vertical-align: top;
}
.#{$ns}Page-content {
width: 100%;
2019-04-30 11:11:25 +08:00
}
2019-12-06 09:58:08 +08:00
}
}