Skip to content

Commit b8d9bb8

Browse files
committed
[css-rhythm] Minor example udpate
1 parent d1588d4 commit b8d9bb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-rhythm/examples/snap-height.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
snap-height: 18pt;
2222
line-height-step: 18pt;
2323
}
24+
.grid #example {
25+
background-size: 100% 18pt;
26+
background-image: linear-gradient(to bottom, #00bcd4 1px, transparent 1px);
27+
}
2428
.line-height-step #example > * {
2529
margin: 0;
2630
}
@@ -38,6 +42,7 @@
3842
border: thin solid black;
3943
padding: .5em;
4044
margin: .5em 0;
45+
user-select: none;
4146
}
4247
#control {
4348
-webkit-user-select: none;
@@ -93,6 +98,7 @@
9398
<label><input type="checkbox" value="use-inline-block">Use inline-block for h2</label>
9499
</span>
95100
</div>
101+
<label><input type="checkbox" value="grid">Show grid</label>
96102
<label><input type="checkbox" value="editable">Editable</label>
97103
</div>
98104
<div id="example" spellcheck="false">

0 commit comments

Comments
 (0)