1 from ..base import WLElement
4 class Numeracja(WLElement):
8 class Rownolegle(WLElement):
9 def build_epub(self, builder):
10 for i, block in enumerate(self):
11 attr = {"class": "rownolegly-blok"}
13 attr['class'] += ' first'
14 if i == len(self) - 1:
15 attr['class'] += ' last'
16 builder.start_element('div', attr)
17 self.build_epub(block, builder)
22 EPUB_TAG = HTML_TAG = 'span'
24 def get_html_attr(self, builder):
26 szer = int(self.get('szer', 1))
30 "display": "inline-block",
34 get_epub_attr = get_html_attr