From 2a1ecdbdca55174aa8ff23483eed4662c4232ef3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 28 Oct 2025 18:18:03 +0200 Subject: [PATCH] feat(share): display admonition icons (closes #6733) --- packages/ckeditor5/src/theme/ck-content.css | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/ckeditor5/src/theme/ck-content.css b/packages/ckeditor5/src/theme/ck-content.css index e9db06ec5..a18afdde4 100644 --- a/packages/ckeditor5/src/theme/ck-content.css +++ b/packages/ckeditor5/src/theme/ck-content.css @@ -26,6 +26,7 @@ padding: 1em; margin: 1.25em 0; position: relative; + padding-inline-start: 2.5em; overflow: hidden; } @@ -41,4 +42,18 @@ .admonition.tip { --accent-color: #40c025; } .admonition.important { --accent-color: #9839f7; } .admonition.caution { --accent-color: #ff2e2e; } -.admonition.warning { --accent-color: #e2aa03; } \ No newline at end of file +.admonition.warning { --accent-color: #e2aa03; } + +.admonition::before { + color: var(--accent-color); + font-family: boxicons !important; + position: absolute; + top: 1em; + inset-inline-start: 1em; +} + +.admonition.note::before { content: "\eb21"; } +.admonition.tip::before { content: "\ea0d"; } +.admonition.important::before { content: "\ea7c"; } +.admonition.caution::before { content: "\eac7"; } +.admonition.warning::before { content: "\eac5"; } \ No newline at end of file