Commit b8a9cbaf authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Make images display nicer on small devices

parent be367916
img.default-markup {
max-width: 700px;
}
@media (max-width: 540px) {
img.default-markup {
max-width: 100%;
}
}
......@@ -3,5 +3,5 @@ SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
<figure class="text-center">
<a href="{{ .Destination }}" target="_blank"><img src="{{ .Destination }}" class="img-fluid" style="max-width: 700px" alt="{{ .Text }}" /></a>
<a href="{{ .Destination }}" target="_blank"><img src="{{ .Destination }}" class="img-fluid default-markup" alt="{{ .Text }}" /></a>
</figure>
{{ $style := resources.Get "sass/img.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment