Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
css-doodle
Advanced tools
A web component for drawing patterns with CSS.
<css-doodle>
@grid: 5 / 200px;
background: @p(#000, #fff);
margin: 1px;
</css-doodle>
# build css-doodle.js
npm run build
# generate css-doodle.min.js
npm run minify
# or just use make
make
Thank you for your support! 🙏
0.34.0
The css-doodle element 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 <code>noclip</code> keyword to the @grid
property:
@grid: 1 / 400px noclip;
Overide the contain
property:
:doodle {
@grid: 1 / 400px;
contain: none;
}
Extended @grid
to support doodle background color, after the second /
symbol.
@grid: 1 / 400px / #000;
Extended @grid
and @size
to support <code>aspect-ratio</code> if one of the width
and width
is auto
.
@grid: 1 / 400px auto 2;
@grid: 1 / 400px auto (4/3);
@size: 100px auto 1.5;
Extended @grid
to support <code>rotate</code> and <code>scale</code> to <code>:container</code>.
@grid: 1 / 400px + 2; /* + means scale */
@grid: 1 / 400px * 45deg; /* * means scale */
@grid: 1 / 400px + 2 * 45deg;
Extended @grid
to change the layout to Flex
layout.
@grid: - 8x2 / 400px; /* - means using flex */
@grid: | 8x2 / 400px; /* | means using flex and vertical direction */
Added support for 0 index value in @m
function.
/* 0 1 2 3 4 */
@content: @M0-4.n
Added @gap
property.
@grid: 10 / 400px;
@gap: 1px;
Added @dx
and @dy
functions.
/* -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);
<br /> <br />
FAQs
A web component for drawing patterns with CSS
The npm package css-doodle receives a total of 2,447 weekly downloads. As such, css-doodle popularity was classified as popular.
We found that css-doodle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.