css-doodle
Advanced tools
Changelog
0.37.2
$%(10)
.@unicode
to @code
internally.<br /> <br />
Changelog
0.37.0
New $
function for reading and evaluating numeric variables.
--a: 2;
--b: $(a * 2);
--c: $b;
/* 30px */
--d: $px(10 + 20);
Add repeatCount to draw
draw: 10s indefinite;
draw: 10s infinite;
Variables can be put directly inside @svg()
now.
@content: @svg(
--size: 10;
viewBox: 0 0 $size $size;
);
<br /> <br />
Changelog
0.36.0
Add @hover
selector.
@hover {
/* same as :hover */
}
@hover(-1, 1) {
/* previous and next */
}
@hover(0 -1, 0 1) {
/* left and right cells. Targeting by `dx dy`.
}
Round the values generated by '@shape' to a maximum of six decimal places."
<br /> <br />
Changelog
0.35.1
Support nested css-doodle element via @content: @doodle()
.
@grid: 2 / 400px;
@content: @doodle(
@grid: 2 / 100%;
background: @p(red, blue);
);
Add path animation with property draw
in nomral SVG element.
@conent: @svg(
path {
d: '..';
draw: 5s;
}
)
Change property animate
to draw
inside @svg-polygon
.
Change default @svg-polygon
stroke color to currentColor
.
Fix sequence generator index.
Fix negative calculation in generator functions.
Changelog
0.35.0
@svg-polygon()
.@raw()
to choose format explicitly.not
condition for selectors.@Svg()
, use @svg()
instead.@content
property automatically.<br /> <br />
Changelog
0.34.9
box-sizing
value for :host
.structuredClone
.content
values.p
alias for viewBox
padding.<br /> <br />