Skip to content

Commit 58a3911

Browse files
committed
update examples
1 parent bef9bbb commit 58a3911

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2480,6 +2480,6 @@ <h2>Dedicated to people who <span><css-doodle use="var(--heart)"></css-doodle> C
24802480
</footer>
24812481
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.38.0/codemirror.min.js"></script>
24822482
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.38.0/mode/css/css.min.js"></script>
2483-
<script src="main.js?f6c5b4c637ab04f7a65f1aa0f11e322e"></script>
2483+
<script src="main.js?dce95b54b2047764da43ac7acab7d8ae"></script>
24842484
</body>
24852485
</html>

main.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -162,30 +162,20 @@
162162
@grid: 50x1 / 100%;
163163
164164
@place: center;
165-
@size: calc(75% / @I * @i);
165+
@size: @iI(*75%);;
166166
167-
transform: rotate(calc(@i * 5deg));
167+
transform: rotate(@i(*5deg));
168168
169169
border-radius: 30%;
170170
border: 1px solid hsla(
171-
calc(10 + 4 * @i), 70%, 68%, @r.8
171+
@i(*4, 10), 70%, 68%, @r.8
172172
);
173173
`),
174174
dashed: indent(`
175-
@grid: 1x10 / 85%;
176-
177-
@place: center;
178-
@size: calc(@i * 10%);
179-
175+
@grid: 9 / 90%;
180176
border-radius: 50%;
181-
border-style: dashed;
182-
border-width: calc(@i * 4px);
183-
border-color: hsla(
184-
calc(20 * @i), 70%, 68%,
185-
calc(3 / @i * .8)
186-
);
187-
188-
transform: rotate(@r(360deg));
177+
background: hsl(@t(/20), 70%, 60%);
178+
scale: sin(@atan2(@dx, @dy) + @t(/1000));
189179
`),
190180
tiled: indent(`
191181
@grid: 1 / 90%;
@@ -249,6 +239,17 @@
249239
border-radius: 50%;
250240
box-shadow: 50px 0 0 -10px
251241
hsl(calc(360/@I*@i) 90% 60%);
242+
`),
243+
244+
pattern: indent(`
245+
@grid: 1 / 90% / #101935;
246+
247+
background-image: @pattern(
248+
grid: 71;
249+
match(((int(x*y*x*y*7.)>>4)&2) == 2) {
250+
fill: #F2FDFF;
251+
}
252+
);
252253
`)
253254
};
254255

0 commit comments

Comments
 (0)