Skip to content

Commit 8f5ae59

Browse files
committed
Examples: hide pre#code-pre by default in page CSS
1 parent 487b34f commit 8f5ae59

164 files changed

Lines changed: 250 additions & 256 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/acceleration-with-vectors.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/additive-wave.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/alpha-mask.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/animated-sprite.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/arctangent.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/arm.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/array-2d.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/array-objects.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/array.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

examples/arraylist-of-objects.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.preview-wrap { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; display: block; max-width: 100%; width: fit-content; }
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
32+
pre#code-pre { display: none; }
3233
.code-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e0e0e0; font-size: 12px; color: #888; font-family: monospace; display: flex; align-items: center; justify-content: space-between; }
3334
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3435
.copy-btn:hover { background: #f0f0f0; }

0 commit comments

Comments
 (0)