From: Vladimír Vondruš Date: Mon, 11 Sep 2017 11:23:27 +0000 (+0200) Subject: m.components: add block-flat directive to match the CSS components. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=9a0619eaddeca93af6d05869f4be794575c2a74b;p=blog.git m.components: add block-flat directive to match the CSS components. --- 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)