css v0.1.0 Css

Documentation for Css.

Link to this section Summary

Link to this section Functions

Link to this function

background_color(color)

Link to this function

border(width, type, color)

Link to this function

border_bottom_color(color)

Link to this function

border_color(color)

Link to this function

border_left_color(color)

Link to this function

border_radius(r)

Link to this function

border_right_color(color)

Link to this function

border_top_color(color)

Link to this function

box_shadow(offset_x, offset_y, blur_radius, color)

Link to this function

box_shadow(offset_x, offset_y, blur_radius, spread_radius, color)

Link to this function

checked(styles)

Link to this function

disabled(styles)

Link to this function

invalid(styles)

Link to this function

padding(p1, p2)

Link to this function

required(styles)

Generates a style tag and a class to be attached to individual components

Examples

iex> [display_flex(), hover [background_color(rgb("#200F13"))]] |> styled()
{"aoGhYVFwgcTVVW", "<style>\n  .aoGhYVFwgcTVVW {\n    display: flex;\n  }\n</style><style>\n  .aoGhYVFwgcTVVW:hover {\n    background-color: #200F13;\n  }\n</style>"}
Link to this function

visited(styles)