Spaces:
Running
Running
Anonymous commited on
Commit ·
6586b49
1
Parent(s): a4e61d9
Refine task directory layout
Browse files- index.html +7 -11
- static/css/index.css +8 -21
index.html
CHANGED
|
@@ -34,18 +34,14 @@
|
|
| 34 |
<p>PromptDialog task demos.</p>
|
| 35 |
</div>
|
| 36 |
|
| 37 |
-
<
|
| 38 |
-
<
|
| 39 |
-
|
| 40 |
-
<div class="task-card">
|
| 41 |
-
<p class="loading">Loading audio demos...</p>
|
| 42 |
-
</div>
|
| 43 |
-
</div>
|
| 44 |
-
</div>
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
| 49 |
</div>
|
| 50 |
</div>
|
| 51 |
</section>
|
|
|
|
| 34 |
<p>PromptDialog task demos.</p>
|
| 35 |
</div>
|
| 36 |
|
| 37 |
+
<nav class="task-directory" id="task-directory" aria-label="Audio demo tasks">
|
| 38 |
+
<p class="loading">Loading task directory...</p>
|
| 39 |
+
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
<div class="task-list" id="task-list" aria-live="polite">
|
| 42 |
+
<div class="task-card">
|
| 43 |
+
<p class="loading">Loading audio demos...</p>
|
| 44 |
+
</div>
|
| 45 |
</div>
|
| 46 |
</div>
|
| 47 |
</section>
|
static/css/index.css
CHANGED
|
@@ -101,28 +101,18 @@ body {
|
|
| 101 |
line-height: 1.55;
|
| 102 |
}
|
| 103 |
|
| 104 |
-
.demo-layout {
|
| 105 |
-
display: grid;
|
| 106 |
-
grid-template-columns: minmax(0, 1fr) 17rem;
|
| 107 |
-
gap: 1.5rem;
|
| 108 |
-
align-items: start;
|
| 109 |
-
}
|
| 110 |
-
|
| 111 |
-
.demo-main {
|
| 112 |
-
min-width: 0;
|
| 113 |
-
}
|
| 114 |
-
|
| 115 |
.task-directory {
|
| 116 |
display: grid;
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
align-items: start;
|
| 120 |
margin: 0;
|
| 121 |
border: 1px solid var(--line);
|
| 122 |
background: var(--soft);
|
| 123 |
padding: 0.9rem;
|
| 124 |
-
position:
|
| 125 |
-
top:
|
|
|
|
|
|
|
| 126 |
}
|
| 127 |
|
| 128 |
.task-directory-title {
|
|
@@ -317,13 +307,10 @@ audio {
|
|
| 317 |
width: min(100% - 1rem, 1640px);
|
| 318 |
}
|
| 319 |
|
| 320 |
-
.demo-layout {
|
| 321 |
-
grid-template-columns: 1fr;
|
| 322 |
-
}
|
| 323 |
-
|
| 324 |
.task-directory {
|
| 325 |
-
grid-template-columns: 1fr;
|
| 326 |
position: static;
|
|
|
|
|
|
|
| 327 |
}
|
| 328 |
|
| 329 |
.audio-grid {
|
|
|
|
| 101 |
line-height: 1.55;
|
| 102 |
}
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
.task-directory {
|
| 105 |
display: grid;
|
| 106 |
+
gap: 0.65rem;
|
| 107 |
+
width: 15rem;
|
|
|
|
| 108 |
margin: 0;
|
| 109 |
border: 1px solid var(--line);
|
| 110 |
background: var(--soft);
|
| 111 |
padding: 0.9rem;
|
| 112 |
+
position: fixed;
|
| 113 |
+
top: 8.5rem;
|
| 114 |
+
right: max(1rem, calc((100vw - 1640px) / 2 + 1rem));
|
| 115 |
+
z-index: 20;
|
| 116 |
}
|
| 117 |
|
| 118 |
.task-directory-title {
|
|
|
|
| 307 |
width: min(100% - 1rem, 1640px);
|
| 308 |
}
|
| 309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
.task-directory {
|
|
|
|
| 311 |
position: static;
|
| 312 |
+
width: auto;
|
| 313 |
+
margin: 0 0 1.25rem;
|
| 314 |
}
|
| 315 |
|
| 316 |
.audio-grid {
|