:tocdepth: 3 :py:mod:`gws.lib.style.core` ============================ .. py:module:: gws.lib.style.core **Source code:** :source:`gws.lib.style.core` Module Contents --------------- .. py:class:: Config(*args, **kwargs) Bases: :py:obj:`gws.Config` Feature style .. py:attribute:: cssSelector :type: Optional[str] CSS selector .. py:attribute:: text :type: Optional[str] raw style content .. py:attribute:: values :type: Optional[dict] style values .. py:function:: from_config(cfg: gws.Config, opts: gws.lib.style.parser.Options = None) -> Object Creates a css style object from a configuration. :param cfg: A configuration. :param opts: Configuration options. :returns: A css style object. .. py:function:: from_dict(d: dict, opts: gws.lib.style.parser.Options = None) -> Object Creates a css style object from a dictionary. :param d: A dictionary. :param opts: Dictionary options. :returns: A css style object. .. py:function:: from_props(props: gws.Props, opts: gws.lib.style.parser.Options = None) -> Object Creates a css style object from properties. :param props: Properties. :param opts: Property Options. :returns: A css style object. .. py:class:: Object(selector, text, values) Bases: :py:obj:`gws.Style` CSS Style object. .. py:attribute:: cssSelector .. py:attribute:: text .. py:attribute:: values .. py:method:: props(user) .. py:class:: Props(*args, **kwargs) Bases: :py:obj:`gws.Props` Object properties. .. py:attribute:: cssSelector :type: Optional[str] CSS selector .. py:attribute:: values :type: Optional[dict] Style values