Skip to content

Commit d80c1b7

Browse files
Fix feature image and title margins
1 parent 339ccec commit d80c1b7

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

_layouts/associated.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>{{ page.title }}</h1>
3333
height="auto"
3434
/>
3535
</div>
36-
<h2 class="feature-title">{{ associate.title }}</h2>
36+
<span class="feature-title">{{ associate.title }}</span>
3737
<div class="feature-content">{{ associate.description }}</div>
3838
{% if associate.link %}
3939
<div class="feature-content">

_layouts/capabilities.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2>Examples</h2>
2323
/>
2424
</div>
2525
{% endif %}
26-
<h2 class="feature-title">{{ capability.title }}</h2>
26+
<span class="feature-title">{{ capability.title }}</span>
2727
<div class="feature-content">{{ capability.description }}</div>
2828
{% if capability.link %}
2929
<div class="feature-content">

_layouts/contributor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h1>{{page.title}}</h1>
2323
/>
2424
</div>
2525
{% endif %}
26-
<h2 class="feature-title">{{ institution.name }}</h2>
26+
<span class="feature-title">{{ institution.name }}</span>
2727
<a target="_blank" href="{{ contributor.institution.url }}">
2828
<div class="content">{{ institution.institute }}</div>
2929
</a>

_layouts/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h2>Featured examples</h2>
3030
/>
3131
</div>
3232
{% endif %}
33-
<h2 class="feature-title">{{ capability.title }}</h2>
33+
<span class="feature-title">{{ capability.title }}</span>
3434
<div class="feature-content">{{ capability.description }}</div>
3535
</div>
3636
</div>
@@ -64,7 +64,7 @@ <h2 class="feature-title">{{ capability.title }}</h2>
6464
/>
6565
</div>
6666
{% endif %}
67-
<h2 class="feature-title">{{ institution.name }}</h2>
67+
<span class="feature-title">{{ institution.name }}</span>
6868
<div class="feature-content">{{ institution.institute }}</div>
6969
</div>
7070
</div>

_sass/components/_feature.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@
1313
width: auto;
1414
height: 100px;
1515
display: flex;
16-
margin-bottom: 20px;
1716
text-align: center;
1817
}
1918
img {
2019
width: auto;
2120
height: 100px;
2221
}
2322
.feature-title {
23+
font-family: $font-family-heading;
24+
font-size: 26px;
25+
font-weight: bold;
26+
line-height: 1.4;
27+
margin-top: 20px;
28+
margin-bottom: 15px;
2429
}
2530
.feature-content {
2631
margin-bottom: 0;

0 commit comments

Comments
 (0)