From 4d39fc4ca0a35dd64459a672c089d9b1b52432b9 Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Thu, 27 Feb 2020 21:51:54 +0100 Subject: Add a minimal style for the .example class used by Org for results --- site/cleopatra/Contents/Org.org | 5 +++++ site/cleopatra/Theme.org | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'site') diff --git a/site/cleopatra/Contents/Org.org b/site/cleopatra/Contents/Org.org index 0211091..5ac0001 100644 --- a/site/cleopatra/Contents/Org.org +++ b/site/cleopatra/Contents/Org.org @@ -127,6 +127,11 @@ INIT := --batch --load="${ROOT}/scripts/packages.el" \ .org-src-tangled-to, .org-src-name @include padding-centered(4rem) +.example + @include verbatim-block + // this is hacky, but it works: no need for a padding-bottom + padding-top : 1rem + .footdef @include padding-centered diff --git a/site/cleopatra/Theme.org b/site/cleopatra/Theme.org index 49c51c6..2646f44 100644 --- a/site/cleopatra/Theme.org +++ b/site/cleopatra/Theme.org @@ -157,6 +157,13 @@ $document-width : 33rem overflow-x : auto scrollbar-width : thin +@mixin verbatim-block + @include padding-centered + @include code-font + background : $bg-verbatim + overflow-x : auto + scrollbar-width : thin + * box-sizing: border-box -- cgit v1.2.3