Skip to content

Commit

Permalink
THUB-35 THUB-33: font tweaks (#17)
Browse files Browse the repository at this point in the history
* THUB-35 THUB-33: font tweaks
  • Loading branch information
jenbreese authored Jul 15, 2024
1 parent 5a4e36a commit 85e9c81
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/scss/components/banner/_default-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}

p {
font-size: 2.1rem;
font-size: 2rem;
line-height: 1.5;

a {
Expand Down
2 changes: 1 addition & 1 deletion src/scss/components/banner/_overlay-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}

p {
font-size: 2.1rem;
font-size: 2rem;
line-height: 1.5;

a {
Expand Down
8 changes: 6 additions & 2 deletions src/scss/components/card/_basic-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
img,
figure {
display: block;
min-height: 397px;
width: 100%;
object-fit: cover;
}
Expand All @@ -30,13 +29,18 @@
}

p {
font-size: 2rem;
padding: 1.8rem 0;

@include grid-media-max('md') {
font-size: 1.8rem;
}
}


h2,
h3 {
@include thub-type-b;
@include thub-type-c;

margin-bottom: 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/scss/components/hero-banner/_hero-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ main .su-alert {
font-size: 2rem;
font-weight: $su-font-regular;

@include grid-media-min('md') {
font-size: 2.4rem;
@include grid-media-max('md') {
font-size: 1.8rem;
}

a {
Expand Down
1 change: 1 addition & 0 deletions src/scss/components/person/_person-teasers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}

section.su-card__contents {
font-size: 2rem;
padding: 2rem 3rem 3.2rem 3.2rem;
text-align: left;

Expand Down
1 change: 1 addition & 0 deletions src/scss/components/teaser/_basic-page-teaser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

section.su-card__contents {
padding: 4rem 0 0 0;
font-size: 2rem;

h2,
h3 {
Expand Down
13 changes: 13 additions & 0 deletions src/scss/theme/_card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@charset "UTF-8";

.su-card {
.su-card__contents {
p {
font-size: 2rem;

@include grid-media-max('md') {
font-size: 1.8rem;
}
}
}
}
8 changes: 7 additions & 1 deletion src/scss/theme/_wysiwyg.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
@charset "UTF-8";

@include grid-media-min('xs') {
body {
font-size: 1.8rem
}
}

main {
.su-wysiwyg-text {
h2,
h3 {
@include thub-heading--badge;

width: fit-content;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/scss/theme/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

// Config and supporting scss.
@import 'button';
@import 'card';
@import 'cta';
@import 'links';
@import 'wysiwyg';

0 comments on commit 85e9c81

Please sign in to comment.