css-doodle
Advanced tools
Changelog
0.30.6
I was wrong. Only set background-size:100%
to pattern
, canvas
, and shader
.
<br /> <br />
Changelog
0.30.1
@m
function.
::after {
/* 5 4 3 2 1 */
content: @M5-1.@n;
}
<br /> <br />
Changelog
0.30.0
Add exports.
import CSSDoodle from 'css-doodle';
import { svg, shape } from 'css-doodle/generator';
import { tokenizer } from 'css-doodle/parser';
document.appendChild(CSSDoodle`
@grid: 10 / 200px;
background: @p(red, blue);
margin: 1px;
`);
let code = svg(`
viewBox: 0 0 10 10;
circle {
cx, cy, r: 5;
}
`);
let polygon = shape(`
points: 200;
r: sin(t);
`);
let tokens = tokenizer.scan(`
color: red
`);
<br /> <br />