From b9c20b104ce3233f9f2b323f7c5ac82a7cb39491 Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Tue, 3 Dec 2024 12:58:22 +0100 Subject: [PATCH] Add AsciiDoc formatting for an example block (#541) Support https://github.com/keycloak/keycloak/issues/35415 Signed-off-by: Alexander Schwartz --- resources/css/keycloak.css | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/resources/css/keycloak.css b/resources/css/keycloak.css index e1229d5a..cb4aabe1 100644 --- a/resources/css/keycloak.css +++ b/resources/css/keycloak.css @@ -353,6 +353,36 @@ ol.toc-list .is-collapsed { color: #bf0000; } +.exampleblock > .content { + border-style: solid; + border-width: 1px; + border-color: #e6e6e6; + margin-bottom: 1.25em; + padding: 1.25em; + background: #fff; + -webkit-border-radius: 4px; + border-radius: 4px +} + +.exampleblock > .content > :first-child { + margin-top: 0 +} + +.exampleblock > .content > :last-child { + margin-bottom: 0 +} + +.exampleblock > .content > :last-child > :last-child, .exampleblock > .content .olist > ol > li:last-child > :last-child, .exampleblock > .content .ulist > ul > li:last-child > :last-child, .exampleblock > .content .qlist > ol > li:last-child > :last-child, .sidebarblock > .content > :last-child > :last-child, .sidebarblock > .content .olist > ol > li:last-child > :last-child, .sidebarblock > .content .ulist > ul > li:last-child > :last-child, .sidebarblock > .content .qlist > ol > li:last-child > :last-child { + margin-bottom: 0 +} + +.exampleblock > .content { + background-color: #fffef7; + border-color: #e0e0dc; + -webkit-box-shadow: 0 1px 4px #e0e0dc; + box-shadow: 0 1px 4px #e0e0dc +} + dl dd { margin-left: 1.125em; }