Repository navigation
v0.34.0
Breaking
-
The
css-doodleelement now by default restricts the visible area to its dimension,
which means it's overflow hidden. There are two ways to change this behavior:-
Append the
noclipkeyword to the@gridproperty:@grid: 1 / 400px noclip;
-
Overide the
containproperty::doodle { @grid: 1 / 400px; contain: none; }
-
Features
-
Extended
@gridto support doodle background color, after the second/symbol.@grid: 1 / 400px / #000;
-
Extended
@gridand@sizeto supportaspect-ratioif one of thewidthandwidthisauto.@grid: 1 / 400px auto 2; @grid: 1 / 400px auto (4/3); @size: 100px auto 1.5;
-
Extended
@gridto supportrotateandscaleto:container.@grid: 1 / 400px + 2; /* + means scale */ @grid: 1 / 400px * 45deg; /* * means rotate */ @grid: 1 / 400px + 2 * 45deg;
-
Extended
@gridto change the layout toFlexlayout.@grid: - 8x2 / 400px; /* - means using flex */ @grid: | 8x2 / 400px; /* | means using flex and vertical direction */
-
Added support for 0 index value in
@mfunction./* 0 1 2 3 4 */ @content: @M0-4.n
-
Added
@gapproperty.@grid: 10 / 400px; @gap: 1px;
-
Added
@dxand@dyfunctions./* -2,-2 -1,-2 0,-2 1,-2 2,-2 -2,-1 -1,-1 0,-1 1,-1 2,-1 -2,0 -1,0 0,0 1,0 2,0 -2,1 -1,1 0,1 1,1 2,1 -2,2 -1,2 0,2 1,2 2,2 */ @grid: 5 / 400px; @content: @dx, @dy;
Adjust offset.
/* -3,-3 -2,-3 -1,-3 0,-3 1,-3 -3,-2 -2,-2 -1,-2 0,-2 1,-2 -3,-1 -2,-1 -1,-1 0,-1 1,-1 -3,0 -2,0 -1,0 0,0 1,0 -3,1 -2,1 -1,1 0,1 1,1 */ @grid: 5 / 400px; @content: @dx(1), @dy(1);
Fixes
- Fixed CSS parsing on function composition.
- Fixed seed value at pre-compose phase.