Skip to content

Commit 040f775

Browse files
committed
Fix styling of strapline on homepage
Refs #4634
1 parent d26405a commit 040f775

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

hypha/home/templates/home/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1 class="font-bold text-h00">
1313
</h1>
1414

1515
{% if settings.core.SystemSettings.home_strapline %}
16-
<p class="mb-8 text-fg-muted text-pretty">{{ settings.core.SystemSettings.home_strapline|nh3|safe }}</p>
16+
<div class="strapline">{{ settings.core.SystemSettings.home_strapline|nh3|safe }}</div>
1717
{% endif %}
1818

1919
{% if funds %}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.strapline {
2+
@apply mb-8 text-fg-muted text-pretty;
3+
4+
h1 {
5+
font-size: var(--h1-size);
6+
@apply leading-tight;
7+
}
8+
h2 {
9+
font-size: var(--h2-size);
10+
@apply leading-snug;
11+
}
12+
h3 {
13+
font-size: var(--h3-size);
14+
@apply leading-normal;
15+
}
16+
h4 {
17+
font-size: var(--h4-size);
18+
@apply leading-normal;
19+
}
20+
h5 {
21+
font-size: var(--h5-size);
22+
@apply leading-normal;
23+
}
24+
h6 {
25+
font-size: var(--h6-size);
26+
@apply leading-normal;
27+
}
28+
a {
29+
@apply text-primary hover:underline;
30+
}
31+
ul {
32+
@apply list-disc list-inside;
33+
}
34+
ol {
35+
@apply list-decimal list-inside;
36+
}
37+
}

hypha/static_src/tailwind/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
@import "./utilities/typography.css" layer(utilities);
1414
@import "./components/link.css" layer(utilities);
1515
@import "./components/steps.css" layer(utilities);
16+
@import "./components/strapline.css" layer(utilities);
1617
@import "./components/nprogress";
1718
@import "./utilities/misc.css";
1819

0 commit comments

Comments
 (0)