Skip to content

Commit 290f95f

Browse files
committed
fix: center atc panel in single-column layout
1 parent 31ea627 commit 290f95f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

examples/atc/serve.nu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,12 @@ def page []: nothing -> string {
139139
<style>
140140
body{background:#0a0f0a;color:#7CFC7C;font-family:ui-monospace,monospace;margin:0;padding:1rem;min-height:100vh;box-sizing:border-box;display:grid;place-content:center}
141141
.wrap{display:grid;grid-template-columns:1fr;gap:1.4rem;width:100%;max-width:1080px;margin:0 auto;align-items:center}
142-
@media (min-width:900px){ .wrap{grid-template-columns:340px 1fr} }
143-
.panel{display:flex;flex-direction:column;gap:.75rem;text-align:left}
142+
.panel{display:flex;flex-direction:column;gap:.75rem;text-align:center}
144143
.radar{display:flex;justify-content:center}
145144
h1{font-size:1rem;font-weight:normal;margin:0}
146-
.lede{color:#9aa;font-size:.8rem;max-width:60ch;margin:0;line-height:1.45}
145+
.lede{color:#9aa;font-size:.8rem;max-width:60ch;margin:0 auto;line-height:1.45}
147146
.lede b{color:#9ec;font-weight:600}
148-
.sel{margin:0;display:flex;flex-wrap:wrap;gap:.3rem}
147+
.sel{margin:0;display:flex;flex-wrap:wrap;gap:.3rem;justify-content:center}
149148
button{background:#06120a;color:#7CFC7C;border:1px solid #1c3;font-family:inherit;padding:.5rem 1.1rem;font-size:.9rem;cursor:pointer}
150149
button.active{background:#1c3;color:#021}
151150
.scope{position:relative;width:min(78vmin,600px);height:min(78vmin,600px);border-radius:50%;border:1px solid #1c3;background:#06120a;overflow:hidden;margin:0}
@@ -180,6 +179,7 @@ def page []: nothing -> string {
180179
.row{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:1.5rem;padding:.08rem 0}
181180
.row .k{color:#5a8a5a;white-space:nowrap}
182181
.row .v{color:#cfe;white-space:nowrap}
182+
@media (min-width:900px){ .wrap{grid-template-columns:340px 1fr} .panel{text-align:left} .sel{justify-content:flex-start} }
183183
</style></head>
184184
<body data-signals='{"sel":"both","ac":"","cx":0,"cy":0}' data-on:click__window="$ac = ''; document.getElementById('card')?.remove()">
185185
<div class="wrap">

0 commit comments

Comments
 (0)