Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body font size #676

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions assets/config/typography.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
@charset 'utf-8';

body {
font-size: $font-size-base * 1.125;
font-size: 1rem;
font-size: clamp( 1rem, calc(0.9375rem + 0.25vw), 1.125rem );
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);

@include media-breakpoint-down(sm) { font-size: $font-size-base; }

@include media-breakpoint-down(xs) { font-size: $font-size-base * 0.875; }
}

.h1,
Expand Down Expand Up @@ -67,11 +64,8 @@ h6,
}

.lead {
font-size: 1.375rem;

@include media-breakpoint-down(md) { font-size: 1.25rem; }

@include media-breakpoint-down(xs) { font-size: 1rem; }
font-size: 1.125rem;
font-size: clamp( 1rem, calc(0.8125rem + 0.75vw) , 1.375rem );
}

small {
Expand Down
9 changes: 9 additions & 0 deletions assets/config/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ $opacities: map.merge((
"100": 1,
), $opacities);

// Font-size

$small-font-size: 0.875rem;

$btn-font-size-sm: 0.875rem;
$btn-padding-y-sm: 0.375rem;
$btn-padding-x-sm: 0.75rem;
$btn-line-height-sm: 1.5;

// Legacy font-size
$legacy-font-size-xl: 1.25rem;
$legacy-font-size-lg: 1.125rem;
Expand Down
Loading