amis2/scss/components/_page.scss

99 lines
1.6 KiB
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}Page {
2020-07-28 13:14:33 +08:00
width: 100%;
2020-07-28 14:55:00 +08:00
min-height: 100%;
2020-07-28 13:14:33 +08:00
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
2020-07-28 13:14:33 +08:00
display: flex;
flex-direction: row;
align-items: center;
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
.#{$ns}Page-header,
.#{$ns}Page-toolbar {
2020-07-28 13:14:33 +08:00
flex-grow: 1;
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 {
2020-07-28 13:14:33 +08:00
display: flex;
flex-direction: row;
2020-07-28 14:55:00 +08:00
align-items: stretch;
2019-12-06 09:58:08 +08:00
.#{$ns}Page-content {
2020-07-28 13:14:33 +08:00
width: 0;
flex-grow: 1;
2019-04-30 11:11:25 +08:00
}
2019-12-06 09:58:08 +08:00
}
}