mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
Fix some layout issues
This commit is contained in:
parent
5f54c853a3
commit
f350e9169d
@ -21,7 +21,7 @@
|
||||
}
|
||||
|
||||
.logo__wrapper {
|
||||
width: 10rem;
|
||||
width: 7rem;
|
||||
line-height: 0;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ h3 {
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 2rem;
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
|
||||
@ -45,4 +45,5 @@
|
||||
{{ else }}
|
||||
src="{{ $src.RelPermalink }}"
|
||||
{{ end }}
|
||||
{{ with .Get "alt" }}alt='{{.}}'{{ end }}>
|
||||
{{ with .Get "alt" }}alt='{{.}}'{{ end }}
|
||||
>
|
||||
|
||||
@ -7,17 +7,21 @@
|
||||
<source
|
||||
media="(min-width: 535px)"
|
||||
data-original-set="{{ .Get "src" }}.{{ .Get "type" }} 1x,
|
||||
{{ .Get "src" }}@2x.{{ .Get "type" }} 2x">
|
||||
{{ .Get "src" }}@2x.{{ .Get "type" }} 2x"
|
||||
>
|
||||
<!-- Small screens -->
|
||||
<source
|
||||
media="(max-width: 534px)"
|
||||
data-original-set="{{ .Get "src" }}-sm.{{ .Get "type" }} 1x,
|
||||
{{ .Get "src" }}-sm@2x.{{ .Get "type" }} 2x">
|
||||
{{ .Get "src" }}-sm@2x.{{ .Get "type" }} 2x"
|
||||
>
|
||||
<!-- Fallback -->
|
||||
<img
|
||||
data-original="{{ .Get "src" }}.{{ .Get "type" }}"
|
||||
data-original-set="{{ .Get "src" }}@2x.{{ .Get "type" }} 2x"
|
||||
alt="{{ .Get "alt" }}"{{ if .Get "caption"}} class="img-fluid figure-img"{{ end }}>
|
||||
alt="{{ .Get "alt" }}"
|
||||
{{ if .Get "caption"}} class="img-fluid figure-img"{{ end }}
|
||||
>
|
||||
</picture>
|
||||
{{ if .Get "caption"}}
|
||||
<figcaption>{{ .Get "caption" }}</figcaption>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user