Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css-doodle

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-doodle - npm Package Versions

1
19

0.34.7

Diff

Changelog

Source

0.34.7

  • Add svg.element() to svg generator.
  • Fix cycle detection in calc().
  • Fix backward compatibility for @doodle().

<br /> <br />

yuanchuan
published 0.34.6 •

Changelog

Source

0.34.6

  • Fix @n value outside of @m function.
  • Add unit calculation.
  • Support negative value for dict in svg filter.
  • Support custom angle in shapes builder.

<br /> <br />

yuanchuan
published 0.34.5 •

Changelog

Source

0.34.5

  • Support viewBox to @doodle function.
  • Ignore space after none for content property.

<br /> <br />

yuanchuan
published 0.34.4 •

Changelog

Source

0.34.4

  • Fix perlin noise seed by using random offsets.
  • Fix reading # symbol inside textures.
  • Add support for translate command ~.
  • Improve noise function to support octave params.
  • Improve svg-filter to add displacement only when the scale value is given.

<br /> <br />

yuanchuan
published 0.34.3 •

Changelog

Source

0.34.3

  • Fix CSS parsing on reading iterator
  • Correctly set animation-delay on paused only.

<br /> <br />

yuanchuan
published 0.34.2 •

Changelog

Source

0.34.2

  • Change cycle shift direction to match the "reduced Latin square".
  • Add experimental once function.
  • Fix rading complex value in cycle.

<br /> <br />

yuanchuan
published 0.34.1 •

Changelog

Source

0.34.1

  • Fix gap property break and remove redundant styles.

<br /> <br />

yuanchuan
published 0.34.0 •

Changelog

Source

0.34.0

Breaking

  • 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:

    1. Append the <code>noclip</code> keyword to the @grid property:

      @grid: 1 / 400px noclip;
      
    2. Overide the contain property:

      :doodle {
        @grid: 1 / 400px;
        contain: none;
      }
      

Features

  • 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);
    

Fixes

  • Fixed CSS parsing on function composition.
  • Fixed seed value at pre-compose phase.

<br /> <br />

yuanchuan
published 0.33.1 •

Changelog

Source

0.33.1

  • Fixed @Svg function detection for transforming the multiplication feature.
  • Fixed @pn index value inside @m function.

<br /> <br />

yuanchuan
published 0.33.0 •

Changelog

Source

0.33.0

  • Added new @svg-pattern function to reduce boilerplate code.

    background: @svg-pattern(
      width, height: 10%;
      viewBox: 0 0 10 10;
      circle { }
    );
    
  • Added new @Svg function to return raw SVG code rather than encoded URI value.

    @content: @Svg(
      viewBox: -1 -1 2 2;
      circle {
        r: 1;
      }
    );
    
  • Added padding value for SVG viewBox property.

    viewBox: -1 -1 2 2 padding 1;
    
    /* equals to */
    
    viewBox: -2 2 4 4;
    

<br /> <br />

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc