package tiny_languages

  1. Overview
  2. Docs
Small languages from scratch: Scheme, Lisp, Smalltalk-80, Pascal, BASIC, JavaScript, HTML, CSS and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_languages.lang_css/Looks/index.html

Module LooksSource

Sourcetype color = int * int * int
Sourcetype align =
  1. | Left
  2. | Center
  3. | Right
Sourcetype t = {
  1. size : float;
  2. bold : bool;
  3. italic : bool;
  4. underline : bool;
  5. strike : bool;
  6. monospace : bool;
  7. color : color;
  8. pre : bool;
  9. align : align;
  10. visited_color : color;
  11. base : float;
  12. extensions : bool;
}
Sourceval root : ?extensions:bool -> size:float -> unit -> t
Sourceval color_of_string : string -> color option
Sourceval font_scale : string -> float option
Sourceval leading : float
Sourceval look : t -> Dom.element -> t
Sourcetype display =
  1. | Block
  2. | Inline
  3. | Rule
  4. | Hidden
Sourcetype box = {
  1. display : display;
  2. margin_top : float;
  3. margin_bottom : float;
  4. indent : float;
  5. right : float;
  6. background : color option;
}
Sourceval box : t -> Dom.element -> box
Sourceval styled : parent:t -> t -> (string * string) list -> t
Sourceval styled_box : t -> box -> (string * string) list -> box
Sourceval length : em:float -> ?percent:float -> string -> float option