Zixuan19 commited on
Commit
a289046
·
verified ·
1 Parent(s): b384eef

back to the fold-out examples panel

Browse files
Files changed (3) hide show
  1. data.json +2 -2
  2. index.html +2 -3
  3. style.css +3 -0
data.json CHANGED
@@ -121,8 +121,8 @@
121
  "这三道题的完整写法放在下面填表的地方,填的时候可以对照。"
122
  ],
123
  "exf_title": [
124
- "Reference: three complete challenges, field by field",
125
- "参考例子:三道完整的题,每一栏怎么填"
126
  ],
127
  "ex_excerpt": [
128
  "Excerpt from the reference text",
 
121
  "这三道题的完整写法放在下面填表的地方,填的时候可以对照。"
122
  ],
123
  "exf_title": [
124
+ "Reference: three complete challenges, field by field (click to open)",
125
+ "参考例子:三道完整的题,每一栏怎么填(点开查看)"
126
  ],
127
  "ex_excerpt": [
128
  "Excerpt from the reference text",
index.html CHANGED
@@ -83,11 +83,10 @@
83
  <section id="form" hidden>
84
  <div class="step" id="s2"><span class="num">02</span><div><h2 data-t="s2"></h2><p data-t="s2_sub"></p></div></div>
85
  <div id="auth"></div>
86
- <section class="panel examples" id="exfull">
87
- <h3 class="sec"><span data-t="exf_title"></span></h3>
88
  <div id="exf_tabs" class="chips" role="tablist"></div>
89
  <div id="exf_body" class="ex_grid"></div>
90
- </section>
91
  <div class="cols">
92
  <div class="fields">
93
  <section class="panel" id="sec_game">
 
83
  <section id="form" hidden>
84
  <div class="step" id="s2"><span class="num">02</span><div><h2 data-t="s2"></h2><p data-t="s2_sub"></p></div></div>
85
  <div id="auth"></div>
86
+ <details class="panel exfull" id="exfull"><summary class="sec"><span data-t="exf_title"></span></summary>
 
87
  <div id="exf_tabs" class="chips" role="tablist"></div>
88
  <div id="exf_body" class="ex_grid"></div>
89
+ </details>
90
  <div class="cols">
91
  <div class="fields">
92
  <section class="panel" id="sec_game">
style.css CHANGED
@@ -79,6 +79,9 @@ main { padding-block: 26px 48px; }
79
 
80
  /* examples */
81
  .ex_more { margin-top: 14px; }
 
 
 
82
  #ex_body, .ex_grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 26px; align-items: start; margin-top: 16px; }
83
  .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
84
  .gallery a { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
 
79
 
80
  /* examples */
81
  .ex_more { margin-top: 14px; }
82
+ details.exfull > summary { cursor: pointer; list-style: none; } details.exfull > summary::-webkit-details-marker { display: none; }
83
+ details.exfull > summary span::before { content: "▸ "; } details.exfull[open] > summary span::before { content: "▾ "; }
84
+ details.exfull[open] > summary { margin-bottom: 14px; }
85
  #ex_body, .ex_grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 26px; align-items: start; margin-top: 16px; }
86
  .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
87
  .gallery a { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }