package css
CSS parser and printer
Install
Dune Dependency
Authors
Maintainers
Sources
ocaml-css-0.2.0.tar.bz2
md5=ceee290f230eb786d59de6ffcf692695
sha512=9ee5de92d764a5bb5b7dac1bc48d5892ccd8425d4226842148aae3322bf7335a738cc695fb36a29e3f90a487750a922f7301f44b6e60bb8954e4ad508ae60116
doc/css/Css/index.html
Module Css
Source
A CSS structure is a list of S.statement
s.
expand_ns css
expands the namespaces in the given css
, according to the namespace statements in css
. Some predefined namespaces can be given with ns
optional argument. If not specified, the default namespaces are used.
expand_nested statements
expands nested rules in statements
. By now, this expansion handles only nesting rules with a single selector nested.
Pretty-print the given (non-expanded) CSS to the given formatter.
Pretty-print the given (with namespaces expanded) CSS to the given formatter.
Source
val compute_decls :
(module P.Prop_space) ->
root:C.t ->
parent:C.t ->
C.t ->
P.binding list ->
C.t
See C.compute_decls
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>