Compare commits

...

2 Commits

Author SHA1 Message Date
ray 65d631e4e4 style content header and headings
have the header and headings center aligned
2020-02-14 20:10:23 +00:00
ray 954a31edd0 center featured image 2020-02-14 20:07:59 +00:00
3 changed files with 8 additions and 1 deletions

View File

@ -59,6 +59,7 @@ h6 {
font-weight: $heading-font-weight; font-weight: $heading-font-weight;
color: $alt-fg-color; color: $alt-fg-color;
margin: 6.4rem 0 3.2rem 0; margin: 6.4rem 0 3.2rem 0;
text-align: center;
} }
h1 { h1 {

View File

@ -7,6 +7,7 @@
header { header {
margin-top: 6.4rem; margin-top: 6.4rem;
margin-bottom: 3.2rem; margin-bottom: 3.2rem;
text-align: center;
h1 { h1 {
font-size: 4.2rem; font-size: 4.2rem;
line-height: 4.6rem; line-height: 4.6rem;
@ -56,6 +57,11 @@
font-size: 1.6rem; font-size: 1.6rem;
margin: 0; margin: 0;
} }
.featured-image {
display: block;
margin-left: auto;
margin-right: auto;
}
} }
.avatar img { .avatar img {

View File

@ -28,7 +28,7 @@
<div> <div>
{{ if .Params.featured_image }} {{ if .Params.featured_image }}
<img src='{{ .Params.featured_image }}' alt="Featured image"/> <img class="featured-image" src='{{ .Params.featured_image }}' alt="Featured image"/>
{{ end }} {{ end }}
{{ .Content }} {{ .Content }}
</div> </div>