amis/scss/components/_page.scss

101 lines
2.0 KiB
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}Page {
&-header {
padding: $Page-header-paddingY $Page-header-paddingX;
}
&-main {
background: $Page-main-bg;
}
2019-04-30 11:11:25 +08:00
&-content {
padding: $Page-content-paddingY $Page-content-paddingX;
}
&-main > &-header {
border-bottom: $borderWidth solid $borderColor;
}
&-headerRow {
border-bottom: $borderWidth solid $borderColor;
display: table;
table-layout: fixed;
width: 100%;
border-spacing: 0;
.#{$ns}Page-header,
2019-04-30 11:11:25 +08:00
.#{$ns}Page-toolbar {
display: table-cell;
vertical-align: middle;
}
2019-04-30 11:11:25 +08:00
.#{$ns}Page-toolbar {
text-align: right;
padding-right: $gap-base;
}
}
2019-04-30 11:11:25 +08:00
&-title {
margin: 0;
padding: 0;
2019-09-10 19:47:48 +08:00
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
}
&-body {
2019-09-10 19:47:48 +08:00
padding: $Page-body-padding;
2019-04-30 11:11:25 +08:00
}
&-asideTplWrapper {
padding: $gap-xs;
}
}
2019-07-22 15:42:30 +08:00
.#{$ns}Page-toolbar {
.#{$ns}Button + .#{$ns}Button {
margin-left: $gap-xs;
2019-04-30 11:11:25 +08:00
}
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-04-30 11:11:25 +08:00
background-color: $Page-aside-bg;
}
2019-07-22 15:42:30 +08:00
@include media-breakpoint-up(md) {
.#{$ns}Page-aside {
&::before {
content: "";
position: absolute;
width: inherit;
top: 0;
bottom: 0;
z-index: -1;
background-color: inherit;
border: inherit;
}
width: $Page-aside-width;
border-right: $borderWidth solid $borderColor;
2019-04-30 11:11:25 +08:00
}
2019-07-22 15:42:30 +08:00
.#{$ns}Page--withSidebar {
display: table;
table-layout: fixed;
2019-04-30 11:11:25 +08:00
width: 100%;
2019-07-22 15:42:30 +08:00
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
}
}