mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-12-25 15:29:27 +01:00
Fix post styles
This commit is contained in:
parent
ab9bb3b3fb
commit
20599a8119
@ -5,7 +5,7 @@
|
||||
<span class="post-date">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
</span>
|
||||
{{ with .Params.Author }}<span class="post-author">{{ $.Site.Params.WrittenBy }} {{ . }}</span>{{ end }}
|
||||
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy }} {{ . }}</span>{{ end }}
|
||||
</div>
|
||||
|
||||
{{ if .Params.tags }}
|
||||
|
@ -139,7 +139,7 @@ code {
|
||||
padding: 1px 6px;
|
||||
margin: 0 2px;
|
||||
border-radius: 5px;
|
||||
font-size: .95rem;
|
||||
font-size: 14px;
|
||||
|
||||
.dark-theme & {
|
||||
background: var(--dark-background-secondary);
|
||||
@ -150,7 +150,7 @@ pre {
|
||||
background: #212020;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
font-size: .95rem;
|
||||
font-size: 14px;
|
||||
overflow: auto;
|
||||
|
||||
@media (--phone) {
|
||||
@ -163,7 +163,7 @@ pre {
|
||||
color: #ccc;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: inherit;
|
||||
font-size: 14px;
|
||||
|
||||
.dark-theme & {
|
||||
color: inherit;
|
||||
|
@ -59,6 +59,7 @@
|
||||
margin: 40px -50px;
|
||||
width: 860px;
|
||||
max-width: 860px;
|
||||
box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
|
||||
|
||||
@media (--tablet) {
|
||||
margin: 20px 0;
|
@ -6,7 +6,7 @@
|
||||
@import 'logo';
|
||||
@import 'menu';
|
||||
@import 'main';
|
||||
@import 'list';
|
||||
@import 'post';
|
||||
@import 'pagination';
|
||||
@import 'footer';
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user