From 5769270c6aa4e991cfa7b0bdaf0a1888b3c2baf9 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 16 Jan 2018 00:06:16 -0500 Subject: [PATCH] Add CSS for better looking descriptive lists on test site - https://discourse.gohugo.io/t/description-list-shortcode/9787 - https://gist.github.com/dmyates/8f0c8ed354a10ea32ffbcf2a363a77dd#file-recommended-css --- .../bare_min/layouts/_default/baseof.html | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/site/themes/bare_min/layouts/_default/baseof.html b/test/site/themes/bare_min/layouts/_default/baseof.html index 326e121..80f44b5 100644 --- a/test/site/themes/bare_min/layouts/_default/baseof.html +++ b/test/site/themes/bare_min/layouts/_default/baseof.html @@ -71,6 +71,27 @@ font-style: italic; text-align: center; } + /* Better Description Lists */ + /* https://gist.github.com/dmyates/8f0c8ed354a10ea32ffbcf2a363a77dd#file-recommended-css */ + dl { + width: 100%; + overflow: hidden; + padding: 0; + margin: 0 + } + dt { + float: left; + width: 20%; + padding-right: 0.75em; + margin: 0.5em 0 0.5em 0; + font-weight: bold; + } + dd { + float: left; + width: 75%; + padding: 0; + margin: 0.5em 0 0.5em 0; + } {{ block "head" . }}{{ end }}