1
Fork 0

Remove inline styles

This commit is contained in:
Jake Howard 2017-11-12 12:49:50 +00:00
parent 656374c0ce
commit 4b7ad2da77
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 11 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{{ if .Params.image }} {{ if .Params.image }}
<div class="mb-3 image" data-image="{{ .Params.image }}" style="width: 100%; height: 30vh"></div> <div class="mb-3 image header-image" data-image="{{ .Params.image }}"></div>
{{ end }} {{ end }}
<h1 class="display-5">{{ .Title }}</h1> <h1 class="display-5">{{ .Title }}</h1>
<h5 class="my-3">{{ partial "subtitle.html" . }}</h5> <h5 class="my-3">{{ partial "subtitle.html" . }}</h5>
@ -9,7 +9,7 @@
{{ end }} {{ end }}
{{ range .Params.tags }} {{ range .Params.tags }}
<a href="/tags/{{ urlize . }}" class="badge badge-dark mr-2" style="font-size: 1rem"> <a href="/tags/{{ urlize . }}" class="badge badge-dark tag mr-2">
<i class="fa fa-tag"></i> {{ . }} <i class="fa fa-tag"></i> {{ . }}
</a> </a>
{{ end }} {{ end }}

View file

@ -180,3 +180,12 @@ p code {
@extend .chroma; @extend .chroma;
padding: $spacer * 0.25; padding: $spacer * 0.25;
} }
.header-image {
width: 100%;
height: 35vh;
}
.tag {
font-size: 1rem;
}