Skip to content

Commit 50c9296

Browse files
authored
Merge pull request #515 from bnijenhuis/style/proud-members
Fixed layout for members on homepage
2 parents ed5b3d9 + 09e6d71 commit 50c9296

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

src/_components/shortcodes/tag/tag.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
padding: 0.5em 1em;
66
margin: 0 1em;
77
background: var(--lilac-light);
8-
font-size: var(--font-size-12);
8+
/* font-size: var(--font-size-12); */
99
}
1010

1111
/* Angled tags, like with < and > */
@@ -26,6 +26,6 @@
2626
clip-path: url(#button-curly-braces);
2727
}
2828

29-
.tag:not(.token) + .tag:not(.token) {
29+
.tag:not(.token)+.tag:not(.token) {
3030
margin-inline-start: 2em;
31-
}
31+
}

src/_includes/partials/homepage/proud-members.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
@media all and (min-width: 31.25rem) {
77
.proud-members .desktop-columns {
88
display: grid;
9-
grid-template-columns: repeat(3, 1fr);
9+
grid-template-columns: repeat(3, minmax(0, 1fr));
1010
grid-gap: var(--spacing);
1111
margin-block-end: 0;
1212
}
1313
}
1414

1515
.proud-members:focus-within {
1616
z-index: 3;
17-
}
17+
}

src/_includes/partials/member.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,25 @@
4747
}
4848

4949
.member-content .tag {
50-
margin-block-end: var(--spacing-half);
5150
text-align: center;
5251
width: max-content;
52+
margin: 0;
53+
}
54+
55+
.member-content .tag:not(.token) {
56+
margin: 0;
57+
}
58+
59+
.member-content .tag:not(.token)+.tag:not(.token) {
60+
margin-inline-start: 0;
5361
}
5462

5563
.backlinks {
5664
margin-block-start: var(--spacing-half);
5765
text-align: center;
5866
}
5967

60-
.has-profile:has(a) ~ .has-no-profile {
68+
.has-profile:has(a)~.has-no-profile {
6169
display: none;
6270
}
6371

@@ -68,10 +76,8 @@
6876
}
6977

7078
.member-specialties {
71-
display: grid;
72-
grid-auto-flow: dense;
73-
grid-template-columns: max-content min-content;
74-
place-content: space-around;
79+
display: flex;
80+
flex-wrap: wrap;
7581
gap: 1em;
7682
}
7783

@@ -98,4 +104,4 @@
98104
.member:focus-within .member-content {
99105
z-index: 1;
100106
}
101-
}
107+
}

0 commit comments

Comments
 (0)