package styled-ppx
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Type-safe styled components for ReScript and Melange
Install
dune-project
Dependency
Authors
Maintainers
Sources
styled-ppx-0.61.0.tbz
sha256=c6eba770e9e9bb9002bf3f759f99ebcec6d7b4132c6c2ad562886c88b6839bab
sha512=8a1776181f6ef292518a0b96b1fae7927cf5767dee75dc04bc05d99d297866e45a5943455bea9ce500a04a635bd179d2b2bec8bccebc55dc1e696a23b3efad69
doc/styled-ppx.native/Css_types/Gradient/index.html
Module Css_types.Gradient
type direction = [ | Angle.t| `Bottom| `BottomLeft| `BottomRight| `Left| `Right| `Top| `TopLeft| `TopRight
]type t = [ | `linearGradient of direction option * color_stop_list| `repeatingLinearGradient of direction option * color_stop_list| `radialGradient of shape option * radial_size option * Position.t option * color_stop_list| `repeatingRadialGradient of shape option * radial_size option * Position.t option * color_stop_list| `conicGradient of direction option * color_stop_list
]val linearGradient :
direction option ->
color_stop_list ->
[> `linearGradient of direction option option * color_stop_list ]val repeatingLinearGradient :
direction option ->
color_stop_list ->
[> `repeatingLinearGradient of direction option option * color_stop_list ]val radialGradient :
shape ->
radial_size ->
Position.t ->
color_stop_list ->
[> `radialGradient of
shape option * radial_size option * Position.t option * color_stop_list ]val repeatingRadialGradient :
shape ->
radial_size ->
Position.t ->
color_stop_list ->
[> `repeatingRadialGradient of
shape option * radial_size option * Position.t option * color_stop_list ]val conicGradient :
direction option ->
color_stop_list ->
[> `conicGradient of direction option option * color_stop_list ]val maybe_string_of_position :
[< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `hv of
[< `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
| `hvOffset of
[< `center | `left | `right ]
* Length.t
* [< `bottom | `center | `top ]
* Length.t
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
option ->
stringval string_of_radialGradient :
([< `circle | `ellipse ] option
* [< `closestCorner | `closestSide | `farthestCorner | `farthestSide ]
option
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `hv of
[< `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
| `hvOffset of
[< `center | `left | `right ]
* Length.t
* [< `bottom | `center | `top ]
* Length.t
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
option
* (Color.t option * Length.t option) array) ->
stringval string_of_repeatingRadialGradients :
([< `circle | `ellipse ] option
* [< `closestCorner | `closestSide | `farthestCorner | `farthestSide ]
option
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `hv of
[< `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
| `hvOffset of
[< `center | `left | `right ]
* Length.t
* [< `bottom | `center | `top ]
* Length.t
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
option
* (Color.t option * Length.t option) array) ->
stringval toString :
[< `conicGradient of
[< `Bottom
| `BottomLeft
| `BottomRight
| `Left
| `Right
| `Top
| `TopLeft
| `TopRight
| `deg of float
| `grad of float
| `rad of float
| `turn of float ]
option
* (Color.t option * Length.t option) array
| `linearGradient of
[< `Bottom
| `BottomLeft
| `BottomRight
| `Left
| `Right
| `Top
| `TopLeft
| `TopRight
| `deg of float
| `grad of float
| `rad of float
| `turn of float ]
option
* (Color.t option * Length.t option) array
| `radialGradient of
[< `circle | `ellipse ] option
* [< `closestCorner | `closestSide | `farthestCorner | `farthestSide ]
option
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `hv of
[< `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
| `hvOffset of
[< `center | `left | `right ]
* Length.t
* [< `bottom | `center | `top ]
* Length.t
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
option
* (Color.t option * Length.t option) array
| `repeatingLinearGradient of
[< `Bottom
| `BottomLeft
| `BottomRight
| `Left
| `Right
| `Top
| `TopLeft
| `TopRight
| `deg of float
| `grad of float
| `rad of float
| `turn of float ]
option
* (Color.t option * Length.t option) array
| `repeatingRadialGradient of
[< `circle | `ellipse ] option
* [< `closestCorner | `closestSide | `farthestCorner | `farthestSide ]
option
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `hv of
[< `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
* [< `bottom
| `calc of Length.calc_value
| `center
| `ch of float
| `cm of float
| `cqb of float
| `cqh of float
| `cqi of float
| `cqmax of float
| `cqmin of float
| `cqw of float
| `em of float
| `ex of float
| `inch of float
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
| `hvOffset of
[< `center | `left | `right ]
* Length.t
* [< `bottom | `center | `top ]
* Length.t
| `inch of float
| `left
| `max of Length.t array
| `min of Length.t array
| `mm of float
| `pc of float
| `percent of float
| `pt of int
| `px of int
| `pxFloat of float
| `rem of float
| `right
| `top
| `var of string
| `varDefault of string * string
| `vh of float
| `vmax of float
| `vmin of float
| `vw of float
| `zero ]
option
* (Color.t option * Length.t option) array ] ->
string sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>