Skip to content

Commit 7c5a5f5

Browse files
Nitin GuptaNitin Gupta
authored andcommitted
Layout of members page tweaks
1 parent 7fd8de5 commit 7c5a5f5

1 file changed

Lines changed: 32 additions & 14 deletions

File tree

assets/css/main.scss

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,39 @@ html, body {
4141
color:#ffffff !important;
4242
}
4343

44-
/* ── Members page — grid + cards ─────────────────────── */
44+
/* ── Members page: two-column card layout ──────────────────────── */
4545

46-
.members-grid { display:grid;
47-
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
48-
gap:2rem 3rem; margin-top:2rem; }
49-
50-
.card-column { display:flex; flex-direction:column; gap:1rem; }
46+
/* keep the outer grid that separates groups */
47+
.members-grid {
48+
display: grid;
49+
grid-template-columns: 1fr; /* one group per row */
50+
gap: 2rem 3rem;
51+
margin-top: 2rem;
52+
}
5153

52-
.member-card { display:flex; align-items:center; gap:1rem;
53-
padding:1rem 1.25rem; border:1px solid #e6e4dd;
54-
border-radius:.5rem; background:#fff; }
54+
/* make the card stacks themselves two columns ≥768 px */
55+
.card-column {
56+
display: grid;
57+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
58+
gap: 1rem;
59+
}
5560

56-
.avatar { width:56px; height:56px; border-radius:50%;
57-
object-fit:cover; }
61+
/* mobile fallback → single column */
62+
@media (max-width: 767px) {
63+
.card-column {
64+
grid-template-columns: 1fr;
65+
}
66+
}
5867

59-
.info { line-height:1.3; }
60-
.name { font-weight:600; }
61-
.title { font-size:.875rem; color:#605f5b; }
68+
/* existing card styling */
69+
.member-card { /* unchanged */
70+
display: flex; align-items: center; gap: 1rem;
71+
padding: 1rem 1.25rem;
72+
border: 1px solid #e6e4dd;
73+
border-radius: .5rem;
74+
background: #fff;
75+
}
76+
.avatar { width:56px; height:56px; border-radius:50%; object-fit:cover; }
77+
.info { line-height:1.3; }
78+
.name { font-weight:600; }
79+
.title { font-size:.875rem; color:#605f5b; }

0 commit comments

Comments
 (0)