From 9a0619eaddeca93af6d05869f4be794575c2a74b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 11 Sep 2017 13:23:27 +0200 Subject: [PATCH] m.components: add block-flat directive to match the CSS components. --- pelican-plugins/m/components.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pelican-plugins/m/components.py b/pelican-plugins/m/components.py index 42eb7302..5193b9ec 100644 --- a/pelican-plugins/m/components.py +++ b/pelican-plugins/m/components.py @@ -102,6 +102,9 @@ class InfoBlock(Block): class DimBlock(Block): style_class = 'm-dim' +class FlatBlock(Block): + style_class = 'm-flat' + class Frame(rst.Directive): final_argument_whitespace = True has_content = True @@ -144,5 +147,6 @@ def register(): rst.directives.register_directive('block-danger', DangerBlock) rst.directives.register_directive('block-info', InfoBlock) rst.directives.register_directive('block-dim', DimBlock) + rst.directives.register_directive('block-flat', FlatBlock) rst.directives.register_directive('frame', Frame) -- 2.30.2