Skip to content

Commit

Permalink
Merge branch 'main' into feature/streamfield-card-list-carousel-blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Aug 21, 2024
2 parents 9ec4737 + 6cb1715 commit f318b27
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/common/src/scss/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@
}
}

.math-text {
@apply font-serif;
@apply italic;
}

// text readability class
// use this in areas where text is overlaying an image
// managed separately for the navigation since we can't @apply these classes there
Expand Down
6 changes: 1 addition & 5 deletions packages/common/src/scss/components/_BlockText.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,11 @@
content: '';
width: 30px;
height: 2px;
@apply bg-jpl-red block absolute top-0 left-0 mt-3;
@apply bg-primary block absolute top-0 left-0 mt-3;

@screen sm {
@apply mt-4;
}

.ThemeVariantDark & {
@apply bg-jpl-red-light;
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion packages/common/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const defaultTheme: Partial<CustomThemeConfig> = {
colors: themeColors,
fontFamily: {
primary: ['Metropolis', ...fallbackFontStack],
secondary: ['Archivo Narrow', 'Metropolis', ...fallbackFontStack]
secondary: ['Archivo Narrow', 'Metropolis', ...fallbackFontStack],
serif: ['ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif']
},
fontWeight: {
// Commenting out anything Tailwind provides by default but we don’t use for this project.
Expand Down
2 changes: 2 additions & 0 deletions packages/vue/src/docs/foundation/typography.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export const TextStyles = {
<code>.text-body-xs</code>
<p class="mt-8"><mark>Highlighted text</mark></p>
<code>mark</code>
<p class="mt-8"><span class="math-text">This is math text. a<sup>2</sup> + a<sub>b</sub> = c</span></p>
<code>.math-text</code>
</div>`
})
}
Expand Down

0 comments on commit f318b27

Please sign in to comment.