package tiny_languages

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module ComputedSource

Sourcetype display =
  1. | Inline
  2. | Block
  3. | Inline_block
  4. | List_item
  5. | Flex
  6. | Inline_flex
  7. | Grid
  8. | Table
  9. | Table_row_group
  10. | Table_row
  11. | Table_cell
  12. | Table_caption
  13. | Display_none
  14. | Contents
Sourcetype position =
  1. | Static
  2. | Relative
  3. | Absolute
  4. | Fixed
  5. | Sticky
Sourcetype size =
  1. | Auto
  2. | Len of Css_values.length
Sourcetype family =
  1. | Serif
  2. | Sans_serif
  3. | Monospace
Sourcetype white_space =
  1. | Normal
  2. | Pre
  3. | Nowrap
  4. | Pre_wrap
  5. | Pre_line
Sourcetype text_align =
  1. | Align_left
  2. | Align_right
  3. | Align_center
  4. | Align_justify
Sourcetype vertical_align =
  1. | Baseline
  2. | Middle
  3. | Top
  4. | Bottom
  5. | Text_top
  6. | Text_bottom
  7. | Sub
  8. | Super
Sourcetype line_height =
  1. | Line_normal
  2. | Factor of float
  3. | Line_px of float
Sourcetype side =
  1. | Side_none
  2. | Side_left
  3. | Side_right
  4. | Side_both
Sourcetype flex_direction =
  1. | Row
  2. | Row_reverse
  3. | Column
  4. | Column_reverse
Sourcetype align =
  1. | Start
  2. | End
  3. | Center
  4. | Stretch
  5. | Space_between
  6. | Space_around
  7. | Space_evenly
  8. | Align_baseline
Sourcetype t = {
  1. display : display;
  2. position : position;
  3. float : side;
  4. clear : side;
  5. top : size;
  6. right : size;
  7. bottom : size;
  8. left : size;
  9. width : size;
  10. height : size;
  11. min_width : Css_values.length;
  12. min_height : Css_values.length;
  13. max_width : size;
  14. max_height : size;
  15. margin : size * size * size * size;
  16. padding : Css_values.length * Css_values.length * Css_values.length * Css_values.length;
  17. border_width : float * float * float * float;
  18. border_color : Css_values.color * Css_values.color * Css_values.color * Css_values.color;
  19. border_box : bool;
  20. color : Css_values.color;
  21. background : Css_values.color;
  22. background_image : string option;
  23. mask_image : string option;
  24. font_size : float;
  25. bold : bool;
  26. italic : bool;
  27. family : family;
  28. line_height : line_height;
  29. text_align : text_align;
  30. underline : bool;
  31. line_through : bool;
  32. uppercase : bool;
  33. white_space : white_space;
  34. vertical_align : vertical_align;
  35. list_style : string;
  36. visible : bool;
  37. overflow_hidden : bool;
  38. flex_direction : flex_direction;
  39. flex_wrap : bool;
  40. justify_content : align;
  41. align_items : align;
  42. align_self : align option;
  43. flex_grow : float;
  44. flex_shrink : float;
  45. flex_basis : size;
  46. row_gap : Css_values.length;
  47. column_gap : Css_values.length;
  48. custom : (string * Css_syntax.component list) list;
}
Sourceval initial : t
Sourceval compute : Cascade.media -> root_font_size:float -> parent:t -> (string * Css_syntax.component list) list -> t
Sourceval user_agent_sheet : Cascade.sheet
Sourceval browser_sheets : quirks:bool -> Cascade.sheet list
Sourceval styles : ?visited:(string -> bool) -> ?quirks:bool -> Cascade.media -> Cascade.sheet list -> Dom.element -> Dom.element -> t