From 184717d270ea934eb2de6b091b3b1bfb6a233e9c Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Mon, 26 Nov 2018 16:59:53 -0600 Subject: [PATCH] Change inline files to not have absolute headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I haven’t thoroughly examined the effects of this, it’s specific to a problem in #2147. --- assets/stylesheets/_layout.sass | 4 +--- assets/stylesheets/prism.scss | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/stylesheets/_layout.sass b/assets/stylesheets/_layout.sass index 18f4fcd43bd..e70c48a6278 100644 --- a/assets/stylesheets/_layout.sass +++ b/assets/stylesheets/_layout.sass @@ -36,9 +36,7 @@ padding-top: 1.9em &:before content: attr(data-file) - position: absolute - top: 1.1em - left: 0 + display: inline-block z-index: 5 background: $cement-grey width: 100% diff --git a/assets/stylesheets/prism.scss b/assets/stylesheets/prism.scss index f4ee1a135da..12ce8ba478a 100644 --- a/assets/stylesheets/prism.scss +++ b/assets/stylesheets/prism.scss @@ -51,7 +51,7 @@ code[class*="language-"]::selection, code[class*="language-"] ::selection { /* Code blocks */ pre[class*="language-"] { padding: 1em; - margin: .5em 0; + margin-bottom: .5em; overflow: auto; }