コード例 #1
0
 def title(self, title, heading=None):
     self.deprecatedPrint()
     return tags.H1(
         attributes.InlineStyle(
             color="#000000",
             font_size="32px",
             font_weight="800",
             line_height="32px",
             margin="48px 0",
             text_align="center",
         ),
         tags.Text(title),
         tags.Br(),
         (tags.Span(
             attributes.InlineStyle(
                 font_size="24px", font_weight="600", color="darkgray"),
             tags.Text(heading),
         ) if heading else None),
     )
コード例 #2
0
ファイル: html.py プロジェクト: navinkarkera/drivers
 def title(self, title, subtitle=None):
     return tags.H1(
         attributes.InlineStyle(
             color="#000000",
             font_size="32px",
             font_weight="800",
             line_height="32px",
             margin="48px 0",
             text_align="center",
         ),
         tags.Text(title),
         tags.Br(),
         (
             tags.Span(
                 attributes.InlineStyle(
                     font_size="24px", font_weight="600", color="darkgray"
                 ),
                 tags.Text(subtitle),
             )
             if subtitle
             else None
         ),
     )
コード例 #3
0
 def space(self):
     self.deprecatedPrint()
     return tags.Br()
コード例 #4
0
ファイル: html.py プロジェクト: navinkarkera/drivers
 def space(self):
     return tags.Br()