Skip to content

Commit 28f7f05

Browse files
committed
Fix: let code-highlight.js handle syntax-block hiding
1 parent 466e4cf commit 28f7f05

165 files changed

Lines changed: 121 additions & 352 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.

assets/nav.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,10 @@
6262
style.textContent = `
6363
html.dark-pre body { background:#1a1a2e !important; }
6464
pre#code-pre { display:none !important; }
65-
.syntax-block { display:none !important; }
6665
.CodeMirror-scroll { border:none !important; background:transparent !important; }
6766
.CodeMirror-hscrollbar, .CodeMirror-vscrollbar { display:none !important; }
6867
6968
pre#code-pre { display:none !important; }
70-
.syntax-block { display:none !important; }
7169
.CodeMirror-scroll { border:none !important; background:transparent !important; }
7270
.CodeMirror-hscrollbar, .CodeMirror-vscrollbar { display:none !important; }
7371

examples/acceleration-with-vectors.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

examples/additive-wave.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

examples/alpha-mask.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

examples/animated-sprite.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

examples/arctangent.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

examples/arm.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

examples/array-2d.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

examples/array-objects.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

examples/array.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.preview-wrap iframe { display: block; border: none; max-width: 100%; }
3131
.code-block { background: #f8f8f8; border-radius: 8px; overflow: hidden; }
3232
pre#code-pre { display: none; }
33-
.syntax-block { display: none; }
3433
.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; }
3534
.copy-btn { font-size: 12px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
3635
.copy-btn:hover { background: #f0f0f0; }

0 commit comments

Comments
 (0)