CSS

Defines a holder for CSS properties

known_properties: set

 

__init__(self, *selectors, **props): 

 

construct(*selectors, background=None, background_attachment=None, background_color=None, background_image=None, background_position=None, background_repeat=None, border=None, border_bottom=None, border_bottom_color=None, border_bottom_style=None, border_bottom_width=None, border_color=None, border_left=None, border_left_color=None, border_left_style=None, border_left_width=None, border_right=None, border_right_color=None, border_right_style=None, border_right_width=None, border_style=None, border_top=None, border_top_color=None, border_top_style=None, border_top_width=None, border_width=None, clear=None, clip=None, color=None, cursor=None, display=None, filter=None, float=None, font=None, font_family=None, font_size=None, font_variant=None, font_weight=None, height=None, left=None, letter_spacing=None, line_height=None, list_style=None, list_style_image=None, list_style_position=None, list_style_type=None, margin=None, margin_bottom=None, margin_left=None, margin_right=None, margin_top=None, overflow=None, padding=None, padding_bottom=None, padding_left=None, padding_right=None, padding_top=None, page_break_after=None, page_break_before=None, position=None, text_align=None, text_decoration=None, text_indent=None, text_transform=None, top=None, vertical_align=None, visibility=None, width=None, z_index=None, **props): 

Provides a convenience constructor for systems with autocompletions

  • selectors: Any
  • background: Any
  • background_attachment: Any
  • background_color: Any
  • background_image: Any
  • background_position: Any
  • background_repeat: Any
  • border: Any
  • border_bottom: Any
  • border_bottom_color: Any
  • border_bottom_style: Any
  • border_bottom_width: Any
  • border_color: Any
  • border_left: Any
  • border_left_color: Any
  • border_left_style: Any
  • border_left_width: Any
  • border_right: Any
  • border_right_color: Any
  • border_right_style: Any
  • border_right_width: Any
  • border_style: Any
  • border_top: Any
  • border_top_color: Any
  • border_top_style: Any
  • border_top_width: Any
  • border_width: Any
  • clear: Any
  • clip: Any
  • color: Any
  • cursor: Any
  • display: Any
  • filter: Any
  • float: Any
  • font: Any
  • font_family: Any
  • font_size: Any
  • font_variant: Any
  • font_weight: Any
  • height: Any
  • left: Any
  • letter_spacing: Any
  • line_height: Any
  • list_style: Any
  • list_style_image: Any
  • list_style_position: Any
  • list_style_type: Any
  • margin: Any
  • margin_bottom: Any
  • margin_left: Any
  • margin_right: Any
  • margin_top: Any
  • overflow: Any
  • padding: Any
  • padding_bottom: Any
  • padding_left: Any
  • padding_right: Any
  • padding_top: Any
  • page_break_after: Any
  • page_break_before: Any
  • position: Any
  • text_align: Any
  • text_decoration: Any
  • text_indent: Any
  • text_transform: Any
  • top: Any
  • vertical_align: Any
  • visibility: Any
  • width: Any
  • z_index: Any
  • props: Any
  • :returns: _

 

canonicalize_props(props): 

 

parse(sty): 

 

tostring(self): 

Feedback

Examples

Templates

Documentation