Fix align-items of flex layout

This commit is contained in:
Mimi 2020-08-18 10:56:19 +08:00
parent 90d0a5f966
commit 0974350235
3 changed files with 5 additions and 11 deletions

View File

@ -2,7 +2,6 @@
margin: $post-card-margin;
padding: 1em 0;
text-align: center;
width: 90%;
button {
background: transparent;
@ -25,8 +24,8 @@
}
.post-reward {
padding-top: 20px;
display: none;
padding-top: 20px;
&.active {
display: block;

View File

@ -1,9 +1,3 @@
.header {
// Make sure that .header and .main-inner are the same height
// Required for .sidebar `position: sticky;`
align-self: stretch;
}
.header-inner {
background: var(--content-bg-color);
border-radius: $border-radius-inner;
@ -17,7 +11,9 @@
}
.main {
align-items: flex-start;
// Make sure that .header and .main-inner are the same height
// Required for .sidebar `position: sticky;`
align-items: stretch;
display: flex;
justify-content: space-between;
main-container();
@ -33,7 +29,6 @@
}
.main-inner {
align-self: stretch;
border-radius: $border-radius-inner;
box-sizing: border-box;
width: $content-wrap;

View File

@ -278,7 +278,7 @@ $b2t-bg-color = $black-deep;
$post-eof-margin-top = 80px; // or 160px for more white space;
$post-eof-margin-bottom = 60px; // or 120px for less white space;
$post-card-margin = 1em auto 0;
$post-card-margin = 1em 0 0;
// Note colors
// --------------------------------------------------