Skip to content

Commit d462e57

Browse files
committed
hide pre blocks before CodeMirror loads to prevent layout flash
1 parent f53eedd commit d462e57

162 files changed

Lines changed: 162 additions & 0 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
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/additive-wave.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/alpha-mask.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/animated-sprite.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/arctangent.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/arm.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/array-2d.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/array-objects.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/array.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

examples/arraylist-of-objects.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.welcome h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
3838
.welcome p { color: #555; line-height: 1.8; max-width: 500px; }
3939
.cm-static-wrap { margin-bottom: 1.25rem; }
40+
pre { visibility: hidden; margin: 0; }
4041
.cm-static-wrap .CodeMirror { height: auto; border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 0; font-family: "SF Mono","Fira Code",monospace; }
4142
.cm-static-wrap .CodeMirror-scroll { overflow: hidden !important; max-height: none; }
4243
footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; }

0 commit comments

Comments
 (0)