Skip to content

Commit 810ab8a

Browse files
authored
Merge pull request #428 from processing/fix/glossary
Update h4 styles
2 parents e9266fb + 178d4a6 commit 810ab8a

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

src/components/EducationResource/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const authorHTML = (await Astro.slots.render("author")).replace(/\<p[^\>]*\>/gm,
2222
</div>
2323
<div class="rendered-markdown">
2424
<div class="text-sm">
25-
<h4 set:html={authorHTML} />
25+
<div set:html={authorHTML} />
2626
<slot name="description" />
2727
</div>
2828
<div class="text-sm leading-8 [&_a]:whitespace-nowrap [&_a]:rounded-full [&_a]:mr-1 [&_a]:py-1 [&_a]:px-2 [&_a]:outline [&_a]:outline-1 [&_a]:outline-[var(--type-magenta-dark)]">

src/layouts/ReferenceItemLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const seenParams: Record<string, true> = {};
142142
seenParams[param.name] = true;
143143
return (
144144
<div class="grid grid-cols-6 gap-gutter-md text-body">
145-
<h4 class="col-span-1">{param.name}</h4>
145+
<span class="col-span-1">{param.name}</span>
146146
<div
147147
class="col-span-5 [&_p]:m-0 [&_p]:inline [&_a]:underline"
148148
>

styles/global.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,21 @@ h3 {
114114
}
115115
}
116116

117+
.text-h4,
118+
h4 {
119+
font-size: 1.25rem;
120+
line-height: 1.167;
121+
-webkit-text-stroke-width: 0.1px;
122+
font-family: var(--font-sans);
123+
margin-top: var(--spacing-md);
124+
125+
@media (min-width: $breakpoint-tablet) {
126+
font-size: 1.5rem;
127+
line-height: 1.1333;
128+
-webkit-text-stroke-width: 0.15px;
129+
}
130+
}
131+
117132
.text-body-large {
118133
font-size: 1.25rem;
119134
line-height: 1.2;

0 commit comments

Comments
 (0)