Skip to content

Commit 9ca34f8

Browse files
committed
Fix nav link to /team/, fill member grid using CSS auto-fill
1 parent 3ef8c46 commit 9ca34f8

2 files changed

Lines changed: 3 additions & 17 deletions

File tree

_includes/redesign_nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<li><a href="/docs/"{% if page.url contains '/docs/' %} aria-current="page"{% endif %}>Documentation</a></li>
1717
<li><a href="/libraries/"{% if page.url contains '/libraries/' %} aria-current="page"{% endif %}>Libraries</a></li>
1818
<li><a href="/about/"{% if page.url contains '/about/' %} aria-current="page"{% endif %}>About</a></li>
19-
<li><a href="/team.html"{% if page.url == '/team.html' %} aria-current="page"{% endif %}>Team</a></li>
19+
<li><a href="/team/"{% if page.url contains '/team/' %} aria-current="page"{% endif %}>Team</a></li>
2020
</ul>
2121
</div>
2222
</nav>

assets/css/redesign.css

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,8 +1931,8 @@ ul {
19311931
}
19321932

19331933
.team-members__grid {
1934-
display: flex;
1935-
flex-wrap: wrap;
1934+
display: grid;
1935+
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
19361936
gap: 1px;
19371937
background: var(--color-border);
19381938
margin-bottom: 80px;
@@ -1942,11 +1942,9 @@ ul {
19421942
display: flex;
19431943
flex-direction: column;
19441944
align-items: center;
1945-
width: 256px;
19461945
padding: 32px 24px;
19471946
gap: 12px;
19481947
background: var(--color-white);
1949-
flex-shrink: 0;
19501948
transition: background 0.15s ease;
19511949
}
19521950

@@ -2048,10 +2046,6 @@ ul {
20482046
.team-header__heading {
20492047
font-size: 40px;
20502048
}
2051-
2052-
.team-member {
2053-
width: calc(25% - 1px);
2054-
}
20552049
}
20562050

20572051
/* ------------------------------------------------------------
@@ -2061,10 +2055,6 @@ ul {
20612055
.team-header__heading {
20622056
font-size: 32px;
20632057
}
2064-
2065-
.team-member {
2066-
width: calc(50% - 1px);
2067-
}
20682058
}
20692059

20702060
/* ------------------------------------------------------------
@@ -2074,10 +2064,6 @@ ul {
20742064
.team-header__heading {
20752065
font-size: 28px;
20762066
}
2077-
2078-
.team-member {
2079-
width: 100%;
2080-
}
20812067
}
20822068

20832069
/* ------------------------------------------------------------

0 commit comments

Comments
 (0)