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;
|
margin: $post-card-margin;
|
||||||
padding: 1em 0;
|
padding: 1em 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 90%;
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@ -25,8 +24,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-reward {
|
.post-reward {
|
||||||
padding-top: 20px;
|
|
||||||
display: none;
|
display: none;
|
||||||
|
padding-top: 20px;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
display: block;
|
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 {
|
.header-inner {
|
||||||
background: var(--content-bg-color);
|
background: var(--content-bg-color);
|
||||||
border-radius: $border-radius-inner;
|
border-radius: $border-radius-inner;
|
||||||
@ -17,7 +11,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.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;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
main-container();
|
main-container();
|
||||||
@ -33,7 +29,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main-inner {
|
.main-inner {
|
||||||
align-self: stretch;
|
|
||||||
border-radius: $border-radius-inner;
|
border-radius: $border-radius-inner;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: $content-wrap;
|
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-top = 80px; // or 160px for more white space;
|
||||||
$post-eof-margin-bottom = 60px; // or 120px for less 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
|
// Note colors
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user