package styled-ppx
Type-safe styled components for ReScript and Melange
Install
Dune Dependency
Authors
Maintainers
Sources
styled-ppx-0.59.1.tbz
sha256=8e9aabb5b5f98be5ecf8ba733a0111bcffd5fa2cba85181a58ba791f6d01d454
sha512=fcd0cd606a2630268e8cf38e36dedfdbb1fb6171160808b486d79200c0170460cf32900741eaa7b881ceea644b31ee1dc2a555ad208ccb9ad845c3d86b83085c
doc/styled-ppx.css-parser/Styled_ppx_css_parser/Ast/index.html
Module Styled_ppx_css_parser.Ast
val pp_position :
Ppx_deriving_runtime.Format.formatter ->
position ->
Ppx_deriving_runtime.unit
val show_position : position -> Ppx_deriving_runtime.string
val pp_loc :
Ppx_deriving_runtime.Format.formatter ->
loc ->
Ppx_deriving_runtime.unit
val show_loc : loc -> Ppx_deriving_runtime.string
val location : Format.formatter -> Ppxlib.location -> unit
type 'a with_loc = 'a * loc
val pp_with_loc :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'a with_loc ->
Ppx_deriving_runtime.unit
val show_with_loc :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
'a with_loc ->
Ppx_deriving_runtime.string
type declaration = {
name : string with_loc;
value : component_value_list with_loc;
important : bool with_loc;
loc : loc;
}
and component_value_list = component_value with_loc list
and component_value =
| Paren_block of component_value_list
| Bracket_block of component_value_list
| Percentage of string
| Ident of string
| String of string
| Selector of selector_list
| Uri of string
| Operator of string
| Combinator of string
| Delim of string
| Function of string with_loc * component_value_list with_loc
| Hash of string
| Number of string
| Unicode_range of string
| Float_dimension of string * string
| Dimension of string * string
| Variable of string list
and at_rule = {
name : string with_loc;
prelude : component_value with_loc;
block : brace_block;
loc : loc;
}
and selector =
| SimpleSelector of simple_selector
| ComplexSelector of complex_selector
| CompoundSelector of compound_selector
| RelativeSelector of relative_selector
and compound_selector = {
type_selector : simple_selector option;
subclass_selectors : subclass_selector list;
pseudo_selectors : pseudo_selector list;
}
and simple_selector =
| Universal
| Ampersand
| Type of string
| Subclass of subclass_selector
| Variable of string list
| Percentage of string
and subclass_selector =
| Id of string
| Class of string
| ClassVariable of string list
| Attribute of attribute_selector
| Pseudo_class of pseudo_selector
and attribute_selector =
| Attr_value of string
| To_equal of {
name : string;
kind : string;
value : attr_value;
}
and pseudoclass_kind =
| PseudoIdent of string
| Function of {
name : string;
payload : selector_list with_loc;
}
| NthFunction of {
name : string;
payload : nth_payload with_loc;
}
val pp_declaration :
Ppx_deriving_runtime.Format.formatter ->
declaration ->
Ppx_deriving_runtime.unit
val show_declaration : declaration -> Ppx_deriving_runtime.string
val pp_component_value_list :
Ppx_deriving_runtime.Format.formatter ->
component_value_list ->
Ppx_deriving_runtime.unit
val show_component_value_list :
component_value_list ->
Ppx_deriving_runtime.string
val pp_component_value :
Ppx_deriving_runtime.Format.formatter ->
component_value ->
Ppx_deriving_runtime.unit
val show_component_value : component_value -> Ppx_deriving_runtime.string
val pp_brace_block :
Ppx_deriving_runtime.Format.formatter ->
brace_block ->
Ppx_deriving_runtime.unit
val show_brace_block : brace_block -> Ppx_deriving_runtime.string
val pp_at_rule :
Ppx_deriving_runtime.Format.formatter ->
at_rule ->
Ppx_deriving_runtime.unit
val show_at_rule : at_rule -> Ppx_deriving_runtime.string
val pp_rule_list :
Ppx_deriving_runtime.Format.formatter ->
rule_list ->
Ppx_deriving_runtime.unit
val show_rule_list : rule_list -> Ppx_deriving_runtime.string
val pp_rule :
Ppx_deriving_runtime.Format.formatter ->
rule ->
Ppx_deriving_runtime.unit
val show_rule : rule -> Ppx_deriving_runtime.string
val pp_style_rule :
Ppx_deriving_runtime.Format.formatter ->
style_rule ->
Ppx_deriving_runtime.unit
val show_style_rule : style_rule -> Ppx_deriving_runtime.string
val pp_stylesheet :
Ppx_deriving_runtime.Format.formatter ->
stylesheet ->
Ppx_deriving_runtime.unit
val show_stylesheet : stylesheet -> Ppx_deriving_runtime.string
val pp_selector :
Ppx_deriving_runtime.Format.formatter ->
selector ->
Ppx_deriving_runtime.unit
val show_selector : selector -> Ppx_deriving_runtime.string
val pp_selector_list :
Ppx_deriving_runtime.Format.formatter ->
selector_list ->
Ppx_deriving_runtime.unit
val show_selector_list : selector_list -> Ppx_deriving_runtime.string
val pp_complex_selector :
Ppx_deriving_runtime.Format.formatter ->
complex_selector ->
Ppx_deriving_runtime.unit
val show_complex_selector : complex_selector -> Ppx_deriving_runtime.string
val pp_compound_selector :
Ppx_deriving_runtime.Format.formatter ->
compound_selector ->
Ppx_deriving_runtime.unit
val show_compound_selector : compound_selector -> Ppx_deriving_runtime.string
val pp_relative_selector :
Ppx_deriving_runtime.Format.formatter ->
relative_selector ->
Ppx_deriving_runtime.unit
val show_relative_selector : relative_selector -> Ppx_deriving_runtime.string
val pp_simple_selector :
Ppx_deriving_runtime.Format.formatter ->
simple_selector ->
Ppx_deriving_runtime.unit
val show_simple_selector : simple_selector -> Ppx_deriving_runtime.string
val pp_subclass_selector :
Ppx_deriving_runtime.Format.formatter ->
subclass_selector ->
Ppx_deriving_runtime.unit
val show_subclass_selector : subclass_selector -> Ppx_deriving_runtime.string
val pp_attribute_selector :
Ppx_deriving_runtime.Format.formatter ->
attribute_selector ->
Ppx_deriving_runtime.unit
val show_attribute_selector : attribute_selector -> Ppx_deriving_runtime.string
val pp_attr_value :
Ppx_deriving_runtime.Format.formatter ->
attr_value ->
Ppx_deriving_runtime.unit
val show_attr_value : attr_value -> Ppx_deriving_runtime.string
val pp_pseudo_selector :
Ppx_deriving_runtime.Format.formatter ->
pseudo_selector ->
Ppx_deriving_runtime.unit
val show_pseudo_selector : pseudo_selector -> Ppx_deriving_runtime.string
val pp_pseudoclass_kind :
Ppx_deriving_runtime.Format.formatter ->
pseudoclass_kind ->
Ppx_deriving_runtime.unit
val show_pseudoclass_kind : pseudoclass_kind -> Ppx_deriving_runtime.string
val pp_nth_payload :
Ppx_deriving_runtime.Format.formatter ->
nth_payload ->
Ppx_deriving_runtime.unit
val show_nth_payload : nth_payload -> Ppx_deriving_runtime.string
val pp_nth :
Ppx_deriving_runtime.Format.formatter ->
nth ->
Ppx_deriving_runtime.unit
val show_nth : nth -> Ppx_deriving_runtime.string
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>