forge
Explore
Log in

Don't you dare go Hollow

Landing chrome pins to the top while the section's cards centre in the room below — tabs stationary, content mid-screen

Browse files at this commit

83d82acf0c271a5a220274a827b6f2a574f49e5aAhmet Kaan GümüşParent: ef24069
crates/im-web/assets/main.cssmodified+9 -3
@@ -318,9 +318,15 @@ body:has(.auth-stage) > .auth-stage::-webkit-scrollbar {
318318 padding: 4px 0 10px;
319319 }
320320
321-.landing-stage .auth-column {
322- margin-top: 40px;
323- margin-bottom: 40px;
321+.landing-stage {
322+ flex-direction: column;
323+}
324+.landing-stage .landing-chrome {
325+ margin: 24px auto 0;
326+ display: flex;
327+ flex-direction: column;
328+ align-items: center;
329+ gap: 6px;
324330 }
325331
326332 .auth-card {
crates/im-web/src/pages.rsmodified+3 -1
@@ -607,9 +607,11 @@ async fn signed_in(cx: &Cx, user: &im_core::model::User) -> Result {
607607 let stage = view! {
608608 cx =>
609609 <main class="auth-stage landing-stage">
610- <div class="auth-column">
610+ <div class="landing-chrome">
611611 (wordmark(cx).await?)
612612 <nav class="admin-tabs landing-nav">(topcoat::view::Unescaped::new_unchecked(nav))</nav>
613+ </div>
614+ <div class="auth-column">
613615 if let Some(code) = ok {
614616 <div class="auth-ok">(ok_text(&code, lang))</div>
615617 }
style/main.scssmodified+15 -6
@@ -279,12 +279,21 @@ body:has(.auth-stage) {
279279 padding: 4px 0 10px;
280280 }
281281
282-// The landing top-anchors: sections differ in height, and a centred column
283-// would move the tab row under the mouse between them. Fixed offset, the
284-// admin panel's posture; the auth gates stay centred.
285-.landing-stage .auth-column {
286- margin-top: 40px;
287- margin-bottom: 40px;
282+// The landing pins its chrome — wordmark and section tabs — at the top, so
283+// the row never moves between sections, and centres the section's cards in
284+// the room left below. The column's `margin: auto` does the centring and
285+// still top-anchors when a section outgrows the window; the auth gates keep
286+// their plain centred stage.
287+.landing-stage {
288+ flex-direction: column;
289+
290+ .landing-chrome {
291+ margin: 24px auto 0;
292+ display: flex;
293+ flex-direction: column;
294+ align-items: center;
295+ gap: 6px;
296+ }
288297 }
289298
290299 .auth-card {