Skip to content

Commit 717dea1

Browse files
committed
Use gap instead of grid-gap
1 parent 21380fb commit 717dea1

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

index.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ <h4><a name="attribute-grid"></a><span>Grid</span></h4>
231231
<textarea code>
232232
<css-doodle grid="5">
233233
:doodle {
234-
grid-gap: 1px;
235234
width: 8em; height: 8em;
235+
gap: 1px;
236236
}
237237
background: #60569e;
238238
</css-doodle>
239239
</textarea>
240240
<css-doodle grid="5">
241241
:doodle {
242-
grid-gap: 1px;
242+
gap: 1px;
243243
@size: 8em;
244244
}
245245
background: #60569e;
@@ -251,17 +251,17 @@ <h4><a name="attribute-grid"></a><span>Grid</span></h4>
251251
<textarea code>
252252
<css-doodle grid="1x35">
253253
:doodle {
254-
grid-row-gap: 1px;
255-
@size: 8em; /* width: 8em; height: 8em; */
254+
@size: 8em 12em; /* width: 8em; height: 12em; */
255+
gap: 1px;
256256
}
257257
background: #60569e;
258258
width: @rand(5%, 100%); /* from 5% to 100% by random */
259259
</css-doodle>
260260
</textarea>
261261
<css-doodle grid="1x35" click-to-update>
262262
:doodle {
263-
grid-row-gap: 1px;
264-
@size: 8em;
263+
@size: 8em 12em;
264+
gap: 1px;
265265
}
266266
transition: .2s ease @rand(500ms);
267267
background: #60569e;
@@ -430,7 +430,7 @@ <h4><a name="selector-:doodle"></a><span>:doodle</span></h4>
430430
:doodle {
431431
@grid: 5 / 8em;
432432
--s: 0;
433-
grid-gap: 1px;
433+
gap: 1px;
434434
}
435435
:doodle(:hover) {
436436
--s: 1;
@@ -451,15 +451,15 @@ <h4><a name="selector-:container"></a><span>:container</span></h4>
451451
<p>
452452
The <code>:container</code>
453453
is the container element that holds all the cells, which is using <a href="https://www.w3.org/TR/css-grid-1/">Grid Layout</a>.
454-
You may want to set <code>grid-gap</code> inside it.
454+
You may want to set <code>gap</code> inside it.
455455
</p>
456456
<p class="has-preview">
457457
<textarea code>
458458
:doodle {
459459
overflow: hidden;
460460
}
461461
:container {
462-
grid-gap: 1px;
462+
gap: 1px;
463463
transform: rotate(45deg) scale(1.5);
464464
}
465465
</textarea>
@@ -469,7 +469,7 @@ <h4><a name="selector-:container"></a><span>:container</span></h4>
469469
overflow: hidden;
470470
}
471471
:container {
472-
grid-gap: 1px;
472+
gap: 1px;
473473
transform: rotate(45deg) scale(1.5);
474474
}
475475
background: #60569e;
@@ -481,7 +481,7 @@ <h4><a name="selector-:container"></a><span>:container</span></h4>
481481
<p class="no-preview">
482482
<textarea code>
483483
:doodle {
484-
grid-gap: 1px;
484+
gap: 1px;
485485
}
486486
</textarea>
487487
</p>
@@ -512,7 +512,7 @@ <h4><a name="selector-@nth"></a><span>@nth(n, ...)</span></h4>
512512
<css-doodle grid="5">
513513
:doodle {
514514
@size: 8em;
515-
grid-gap: 1px;
515+
gap: 1px;
516516
}
517517
background: #f5f5f5;
518518
:nth-child(1) {
@@ -597,7 +597,7 @@ <h4><a name="selector-@at"></a><span>@at(col, row)</span></h4>
597597
<css-doodle grid="5">
598598
:doodle {
599599
@size: 8em;
600-
grid-gap: 1px;
600+
gap: 1px;
601601
}
602602
background: #f5f5f5;
603603
@at(4, 2) {
@@ -624,7 +624,7 @@ <h4><a name="selector-@random"></a><span>@random([ ratio ])</span></h4>
624624
<css-doodle grid="5" click-to-update>
625625
:doodle {
626626
@size: 8em;
627-
grid-gap: 1px;
627+
gap: 1px;
628628
}
629629
background: #f5f5f5;
630630
transition: .2s;
@@ -938,7 +938,7 @@ <h4><a name="property-@grid"></a><span>@grid</span></h4>
938938
<css-doodle grid="5">
939939
:doodle {
940940
@grid: 8 / 8em;
941-
grid-gap: 1px;
941+
gap: 1px;
942942
}
943943
background: #60569e;
944944
</css-doodle>
@@ -1513,7 +1513,7 @@ <h4><a name="function-@repeat"></a><span>@repeat(times, value)</span></h4>
15131513
}
15141514
</textarea>
15151515
<css-doodle grid="5" click-to-update>
1516-
:doodle { @size: 8em; grid-gap: 1px }
1516+
:doodle { @size: 8em; gap: 1px }
15171517
background: #60569e;
15181518
transition: .2s;
15191519
transform: scale(.95);
@@ -1950,7 +1950,7 @@ <h4><a name="function-@hex"></a><span>@hex(num)</span></h4>
19501950
}
19511951
</textarea>
19521952
<css-doodle grid="5" click-to-update>
1953-
:doodle { @size: 8em; grid-gap: 1px }
1953+
:doodle { @size: 8em; gap: 1px }
19541954
:after {
19551955
content: \@hex(@rand(9632, 9687));
19561956
color: #60569e;

0 commit comments

Comments
 (0)