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.59.1.tbz
sha256=8e9aabb5b5f98be5ecf8ba733a0111bcffd5fa2cba85181a58ba791f6d01d454
sha512=fcd0cd606a2630268e8cf38e36dedfdbb1fb6171160808b486d79200c0170460cf32900741eaa7b881ceea644b31ee1dc2a555ad208ccb9ad845c3d86b83085c
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 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 maybe_string_of_position :
[< `auto
| `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
| `inherit_
| `initial
| `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
| `revert
| `revertLayer
| `right
| `top
| `unset
| `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
* [< `auto
| `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
| `inherit_
| `initial
| `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
| `revert
| `revertLayer
| `right
| `top
| `unset
| `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
* [< `auto
| `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
| `inherit_
| `initial
| `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
| `revert
| `revertLayer
| `right
| `top
| `unset
| `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
* [< `auto
| `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
| `inherit_
| `initial
| `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
| `revert
| `revertLayer
| `right
| `top
| `unset
| `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
* [< `auto
| `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
| `inherit_
| `initial
| `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
| `revert
| `revertLayer
| `right
| `top
| `unset
| `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)"
>