From e1a4b51ede06ea886631061b726274d8ffdc88c4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 6 May 2018 17:54:56 +0100 Subject: [PATCH] Lower spacing on gist titles --- layouts/shortcodes/gist.html | 26 ++++++++++++++------------ static/src/scss/style.scss | 4 ++++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/layouts/shortcodes/gist.html b/layouts/shortcodes/gist.html index 5179856..f5d19e5 100644 --- a/layouts/shortcodes/gist.html +++ b/layouts/shortcodes/gist.html @@ -1,15 +1,17 @@ {{ $id := default (.Get 0) .Page.Params.gist }} {{ $data := getJSON "https://api.github.com/gists/" $id }} -{{ range $i, $e := $data.files }} -
- - {{ $i }} - -    - - View Raw - -
- {{ highlight $e.content $e.language "linenos=inline" }} -{{ end }} +
+ {{ range $i, $e := $data.files }} +
+ + {{ $i }} + +    + + View Raw + +
+ {{ highlight $e.content $e.language "linenos=inline" }} + {{ end }} +
diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index f4d7e6f..3964130 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -188,6 +188,10 @@ ul ul, ol ol { pre.chroma { margin: $spacer 0; padding: $spacer; + + .highlight & { + margin-top: 0; + } } .content {