Skip to content

Commit 646ae3f

Browse files
committed
feat: add abbreviation legend below category header
1 parent b285aa5 commit 646ae3f

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

_layouts/people-category.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212

1313
{% for category in site.data.new-categories-order %}
1414
<div class="category-container">
15-
<h2 class="category-header">{{ category }}</h2>
15+
<div class="category-header-container">
16+
<h2 class="category-header">{{ category }}</h2>
17+
18+
{% if category == "Alumni: Masters Students" %}
19+
<span class="abbreviations-legend">
20+
<b>MBI = Master's in Biomedical Informatics; BIRT = Biomedical Informatics and Data Science Research Training Program</b>
21+
</span>
22+
{% endif %}
23+
</div>
1624

1725
{% assign currentPositionCategory = people_by_category | where: "name" , category | first %}
1826

_sass/pages/_people.scss

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,22 @@
88
margin-top: 60px;
99

1010
.category {
11-
&-header {
12-
font-weight: 700;
13-
font-size: 1.5rem;
14-
margin-bottom: 20px;
11+
&-header-container {
12+
.category-header {
13+
font-weight: 700;
14+
font-size: 1.5rem;
15+
margin-bottom: 20px;
16+
}
17+
18+
&:has(.abbreviations-legend) {
19+
.category-header {
20+
margin-bottom: 10px;
21+
}
22+
.abbreviations-legend {
23+
font-size: 0.875rem;
24+
}
25+
margin-bottom: 20px;
26+
}
1527
}
1628
&-body {
1729
display: flex;

0 commit comments

Comments
 (0)