Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
<body>
<div class="wrapper">
<nav class="panel container">
<h1>
<a href="./">WebGPU Samples</a>
</h1>
<input type="checkbox" id="menuToggle">
<label class="expand" for="menuToggle"></label>
<section>
<h1>
<a href="./">WebGPU Samples</a>
</h1>
<input type="checkbox" id="menuToggle">
<label class="expand" for="menuToggle"></label>
</section>
<div class="panelContents">
<search>
<hr />
Expand Down
18 changes: 13 additions & 5 deletions public/css/MainLayout.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
interpolate-size: allow-keywords;
}

.container {
padding-left: 15px;
padding-right: 15px;
Expand Down Expand Up @@ -64,6 +68,12 @@ main {
overflow: auto;
}

section {
& > h1 {
font-size: 1.5rem;
}
}

search {
inline-size: 100%;
margin-block-end: 20px;
Expand Down Expand Up @@ -114,13 +124,13 @@ search {
overflow: visible;
}

#menuToggle ~ .panelContents {
section:has(#menuToggle) ~ .panelContents {
max-height: 0;
overflow: hidden;
}

#menuToggle:checked ~ .panelContents {
max-height: 2000px;
section:has(#menuToggle:checked) ~ .panelContents {
max-height: max-content;
}

.panel .panelContents {
Expand All @@ -138,6 +148,4 @@ search {
.expand {
display: inline-block;
}

}