Skip to content

Commit 6378369

Browse files
committed
Improve responsiveness of details
1 parent c6f0e3e commit 6378369

1 file changed

Lines changed: 59 additions & 25 deletions

File tree

warduino/.vitepress/components/home.vue

Lines changed: 59 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -70,29 +70,39 @@ const {frontmatter: fm} = useData()
7070
<div class="container">
7171
<div class="vp-doc grow">
7272
<h2></h2>
73-
<div class="grow divider">
74-
<article class="list">
75-
<h4>Getting started</h4>
76-
<p><a href="./guide/get-started.html">-&gt; Get started</a></p>
77-
<p><a href="./guide/examples/index.html">-&gt; Examples</a></p>
78-
<p><a href="./guide/latch.html">-&gt; Automated testing</a></p>
79-
<p><a href="./guide/plugin.html">-&gt; Debugging in VS Code</a></p>
80-
</article>
81-
<article class="list">
82-
<h4>Developer's guide</h4>
83-
<p><a style="font-size: 14px" href="./reference/development.html">-&gt; Development</a></p>
84-
<p><a href="./reference/debug-protocol.html">-&gt; Debugger reference</a></p>
85-
<p><a href="./reference/platforms.html">-&gt; Supported platforms</a></p>
86-
<p><a href="./reference/primitives.html">-&gt; WARDuino primitives</a></p>
87-
<p><a href="./reference/edward/index.html">-&gt; EDWARD reference</a></p>
88-
</article>
89-
<article class="list">
90-
<h4>Examples</h4>
91-
<p><a href="./guide/examples/analog.html">-&gt; Analog Read Serial</a></p>
92-
<p><a href="./guide/examples/blink.html">-&gt; Blinking LED</a></p>
93-
<p><a href="./guide/examples/button.html">-&gt; Button</a></p>
94-
<p><a href="./guide/examples/index.html">-&gt; More ...</a></p>
95-
</article>
73+
<div style="display: flex; flex-flow: column nowrap; gap: 24px; justify-content: space-between">
74+
<div class="grow divider">
75+
<article class="list">
76+
<h4>Getting started</h4>
77+
<p><a href="./guide/get-started.html">-&gt; Get started</a></p>
78+
<p><a href="./guide/examples/index.html">-&gt; Examples</a></p>
79+
<p><a href="./guide/latch.html">-&gt; Automated testing</a></p>
80+
<p><a href="./guide/plugin.html">-&gt; Debugging in VS Code</a></p>
81+
</article>
82+
<article class="list">
83+
<h4>Developer's guide</h4>
84+
<p><a style="font-size: 14px" href="./reference/development.html">-&gt; Development</a></p>
85+
<p><a href="./reference/debug-protocol.html">-&gt; Debugger reference</a></p>
86+
<p><a href="./reference/platforms.html">-&gt; Supported platforms</a></p>
87+
<p><a href="./reference/primitives.html">-&gt; WARDuino primitives</a></p>
88+
<p><a href="./reference/edward/index.html">-&gt; EDWARD reference</a></p>
89+
<p><a href="./latch/index.html">-&gt; Latch reference</a></p>
90+
</article>
91+
<article class="list">
92+
<h4>Examples</h4>
93+
<p><a href="./guide/examples/analog.html">-&gt; Analog Read Serial</a></p>
94+
<p><a href="./guide/examples/blink.html">-&gt; Blinking LED</a></p>
95+
<p><a href="./guide/examples/button.html">-&gt; Button</a></p>
96+
<p><a href="./guide/examples/index.html">-&gt; More ...</a></p>
97+
</article>
98+
</div>
99+
100+
<div class="grow divider">
101+
<article class="list">
102+
<h4>Templates</h4>
103+
<p><a href="https://github.com/TOPLLab/as-warduino-template">-&gt; AssemblyScript</a></p>
104+
</article>
105+
</div>
96106
</div>
97107
<h2></h2>
98108

@@ -283,6 +293,13 @@ const {frontmatter: fm} = useData()
283293
}
284294
}
285295
296+
@media (max-width: 960px) {
297+
.grid > .item {
298+
width: calc(50% - 24px);
299+
}
300+
}
301+
302+
286303
@media (max-width: 640px) {
287304
.grid > .item {
288305
width: 100%;
@@ -308,13 +325,30 @@ const {frontmatter: fm} = useData()
308325
flex-grow: 1;
309326
}
310327
328+
@media (max-width: 960px) {
329+
.divider {
330+
flex-wrap: wrap;
331+
gap: 24px;
332+
justify-content: space-between;
333+
}
334+
335+
.divider > * {
336+
width: calc(50% - 24px);
337+
}
338+
}
339+
340+
@media (max-width: 640px) {
341+
.divider > * {
342+
width: 100%;
343+
}
344+
}
345+
311346
.list > p {
312347
font-size: 14px;
313348
margin-top: 2px;
314349
margin-bottom: 0;
315350
padding-top: 8px;
316351
line-height: 24px;
317352
font-weight: 400;
318-
color: var(--vp-c-text-2);
319353
}
320-
</style>
354+
</style>

0 commit comments

Comments
 (0)