mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Fix align-items of flex layout
This commit is contained in:
parent
90d0a5f966
commit
0974350235
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
// --------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user