+ cls = 'ilustr'
+ if self.attrib.get('wyrownanie'):
+ cls += ' ' + self.attrib['wyrownanie']
+ if self.attrib.get('oblew'):
+ cls += ' oblew'
+ attr = {
+ 'class': cls,
+ 'alt': self.attrib.get('alt', ''),
+ 'title': self.attrib.get('alt', ''),
+ 'src': self.attrib.get('src', ''),
+ }
+ if self.attrib.get('srcset'):
+ attr['srcset'] = self.attrib['srcset']
+ attr['sizes'] = '''
+ (min-width: 718px) 600px,
+ (min-width: 600px) calc(100vw - 118px),
+ (min-width: 320px) calc(100vw - 75px),
+ (min-width: 15em) calc(100wv - 60px),
+ calc(100wv - 40px)
+ '''
+ if self.attrib.get('szer'):
+ attr['style'] = 'width: ' + self.attrib['szer']
+ return attr