From 5c7a4002dd91b99e61a90322872ed4eb2fd5144a Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Tue, 10 Oct 2023 15:33:56 +0400 Subject: [PATCH] add algorithm block border --- src/base.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/base.css b/src/base.css index e921536..0fac1c2 100644 --- a/src/base.css +++ b/src/base.css @@ -847,6 +847,25 @@ padding-right: 0em; } + .algorithm:not(.heading) { + padding: .5em; + border: thin solid #ddd; + border-radius: .5em; + margin: .5em calc(-0.5em - 1px); + } + + .algorithm:not(.heading) > :first-child { + margin-top: 0; + } + + .algorithm:not(.heading) > :last-child { + margin-bottom: 0; + } + + .algorithm .algorithm { + margin: 1em 0; + } + /** Blockquotes ***************************************************************/ blockquote {