fix: fix various spacing issues (#108)

This commit is contained in:
Robert Kaussow 2021-11-21 12:55:56 +01:00 committed by GitHub
parent 59b3d4a92d
commit 9e172ecab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 4 deletions

View File

@ -11,6 +11,8 @@ weight: 1
Sticky (or pinned) posts can be used to permanently pin important posts to the top of the post list. The implementation is pretty simple and handled by `weight: 1` in a post front matter. As there is no other logic to identify sticky posts you should not use negative values for weight as this will result in posts listed earlier. Sticky (or pinned) posts can be used to permanently pin important posts to the top of the post list. The implementation is pretty simple and handled by `weight: 1` in a post front matter. As there is no other logic to identify sticky posts you should not use negative values for weight as this will result in posts listed earlier.
<!--more-->
**Example:** **Example:**
```YAML ```YAML

View File

@ -1,4 +1,4 @@
<div class="gblog-columns flex flex-wrap"> <div class="gblog-columns flex flex-wrap flex-mobile-column">
{{ range split .Inner "<--->" }} {{ range split .Inner "<--->" }}
<div class="gblog-columns__content gblog-markdown--nested flex-even"> <div class="gblog-columns__content gblog-markdown--nested flex-even">
{{ . | $.Page.RenderString }} {{ . | $.Page.RenderString }}

View File

@ -1,7 +1,6 @@
.chroma { .chroma {
background-color: #ffffff; background-color: #ffffff;
color: #555; color: #555;
margin: 1rem 0;
} }
.chroma code { .chroma code {
background-color: $color-code; background-color: $color-code;
@ -35,7 +34,7 @@
> pre.chroma code { > pre.chroma code {
padding: 1rem; padding: 1rem;
width: 100%; width: 100%;
overflow: auto; overflow-x: auto;
} }
} }

View File

@ -2,13 +2,18 @@
line-height: 1.6em; line-height: 1.6em;
> :first-child { > :first-child {
margin-top: 0; margin-top: 0 !important;
} }
&--nested { &--nested {
:first-child { :first-child {
margin-top: 0; margin-top: 0;
} }
> pre {
margin-top: 0 !important;
}
> :last-child { > :last-child {
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -62,6 +62,10 @@
} }
} }
.flex-mobile-column {
flex-direction: column;
}
.gblog-footer { .gblog-footer {
&__item { &__item {
width: 100%; width: 100%;