html_compose.attributes.style_attrs

 1from . import BaseAttribute
 2from ..base_types import Resolvable, StrLike
 3
 4
 5class StyleAttrs:
 6    """
 7    This module contains functions for attributes in the 'style' element.
 8    Which is inherited by a class so we can generate type hints
 9    """
10
11    @staticmethod
12    def blocking(value: Resolvable) -> BaseAttribute:
13        """
14        "style" attribute: blocking
15        Whether the element is potentially render-blocking
16
17        Args:
18            value:
19                Unordered set of unique space-separated tokens*
20
21        Returns:
22            An blocking attribute to be added to your element
23
24        """
25
26        return BaseAttribute("blocking", value)
27
28    @staticmethod
29    def media(value) -> BaseAttribute:
30        """
31        "style" attribute: media
32        Applicable media
33
34        Args:
35            value:
36                Valid media query list
37
38        Returns:
39            An media attribute to be added to your element
40
41        """
42
43        return BaseAttribute("media", value)
44
45    @staticmethod
46    def title(value: StrLike) -> BaseAttribute:
47        """
48        "style" attribute: title
49        CSS style sheet set name
50
51        Args:
52            value:
53                Text
54
55        Returns:
56            An title attribute to be added to your element
57
58        """
59
60        return BaseAttribute("title", value)
class StyleAttrs:
 6class StyleAttrs:
 7    """
 8    This module contains functions for attributes in the 'style' element.
 9    Which is inherited by a class so we can generate type hints
10    """
11
12    @staticmethod
13    def blocking(value: Resolvable) -> BaseAttribute:
14        """
15        "style" attribute: blocking
16        Whether the element is potentially render-blocking
17
18        Args:
19            value:
20                Unordered set of unique space-separated tokens*
21
22        Returns:
23            An blocking attribute to be added to your element
24
25        """
26
27        return BaseAttribute("blocking", value)
28
29    @staticmethod
30    def media(value) -> BaseAttribute:
31        """
32        "style" attribute: media
33        Applicable media
34
35        Args:
36            value:
37                Valid media query list
38
39        Returns:
40            An media attribute to be added to your element
41
42        """
43
44        return BaseAttribute("media", value)
45
46    @staticmethod
47    def title(value: StrLike) -> BaseAttribute:
48        """
49        "style" attribute: title
50        CSS style sheet set name
51
52        Args:
53            value:
54                Text
55
56        Returns:
57            An title attribute to be added to your element
58
59        """
60
61        return BaseAttribute("title", value)

This module contains functions for attributes in the 'style' element. Which is inherited by a class so we can generate type hints

@staticmethod
def blocking( value: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]) -> html_compose.base_attribute.BaseAttribute:
12    @staticmethod
13    def blocking(value: Resolvable) -> BaseAttribute:
14        """
15        "style" attribute: blocking
16        Whether the element is potentially render-blocking
17
18        Args:
19            value:
20                Unordered set of unique space-separated tokens*
21
22        Returns:
23            An blocking attribute to be added to your element
24
25        """
26
27        return BaseAttribute("blocking", value)

"style" attribute: blocking Whether the element is potentially render-blocking

Args: value: Unordered set of unique space-separated tokens*

Returns: An blocking attribute to be added to your element

@staticmethod
def media(value) -> html_compose.base_attribute.BaseAttribute:
29    @staticmethod
30    def media(value) -> BaseAttribute:
31        """
32        "style" attribute: media
33        Applicable media
34
35        Args:
36            value:
37                Valid media query list
38
39        Returns:
40            An media attribute to be added to your element
41
42        """
43
44        return BaseAttribute("media", value)

"style" attribute: media Applicable media

Args: value: Valid media query list

Returns: An media attribute to be added to your element

@staticmethod
def title( value: str | float | int | bool) -> html_compose.base_attribute.BaseAttribute:
46    @staticmethod
47    def title(value: StrLike) -> BaseAttribute:
48        """
49        "style" attribute: title
50        CSS style sheet set name
51
52        Args:
53            value:
54                Text
55
56        Returns:
57            An title attribute to be added to your element
58
59        """
60
61        return BaseAttribute("title", value)

"style" attribute: title CSS style sheet set name

Args: value: Text

Returns: An title attribute to be added to your element