chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5536e
)
m.components: add block-flat directive to match the CSS components.
author
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 11 Sep 2017 11:23:27 +0000
(13:23 +0200)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Tue, 12 Sep 2017 10:06:26 +0000
(12:06 +0200)
pelican-plugins/m/components.py
patch
|
blob
|
history
diff --git
a/pelican-plugins/m/components.py
b/pelican-plugins/m/components.py
index 42eb73021d65df8af3bd5f7fdb686f573858ccbc..5193b9ecb4d64be755d5ba65a1ec76feda5556b9 100644
(file)
--- 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)