Skip to content

Commit

Permalink
Update font-* variable instances, T-20761
Browse files Browse the repository at this point in the history
  • Loading branch information
nadyahakkinen committed Oct 25, 2024
1 parent 9f7fcec commit ce6c372
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion sass/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
color: var(--color-button);
cursor: pointer;
display: inline-block;
font-family: var(--font-paragraph);
font-family: var(--typography-family-paragraph);
font-size: var(--typography-size-16);
font-weight: var(--typography-weight-semibold);
line-height: 1.39;
Expand Down
2 changes: 1 addition & 1 deletion sass/features/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.navigation:not(.post-navigation) .nav-links {
align-items: flex-start;
display: flex;
font-family: var(--font-heading);
font-family: var(--typography-family-heading);
font-size: 1.4rem;
justify-content: flex-start;
margin-top: 4rem;
Expand Down
4 changes: 2 additions & 2 deletions sass/gutenberg/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@

// Default editor blocks
.is-root-container > .wp-block {
font-family: var(--font-paragraph);
font-family: var(--typography-family-paragraph);

// Font smoothing
-moz-osx-font-smoothing: grayscale;
Expand Down Expand Up @@ -203,7 +203,7 @@
.is-root-container .wp-block.wp-block-quote,
.is-root-container .wp-block[data-type^="core"],
.is-root-container [contenteditable] p {
font-family: var(--font-paragraph);
font-family: var(--typography-family-paragraph);

// Font smoothing
-moz-osx-font-smoothing: grayscale;
Expand Down
2 changes: 1 addition & 1 deletion sass/gutenberg/blocks/_core-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ th,
.wp-block-table td,
.wp-block-table th {
border: 0;
font-family: var(--font-paragraph);
font-family: var(--typography-family-paragraph);
font-size: var(--typography-size-14);
height: 2rem;
padding: .6rem 1.5rem;
Expand Down
4 changes: 2 additions & 2 deletions sass/layout/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ input[type="search"] {
border-style: solid;
border-width: var(--border-width-input-field);
color: var(--color-form-text);
font-family: var(--font-paragraph);
font-family: var(--typography-family-paragraph);
font-size: var(--typography-size-input-fields);
line-height: var(--form-line-height);
margin-bottom: 0;
Expand Down Expand Up @@ -102,7 +102,7 @@ select {
border-style: solid;
border-width: var(--border-width-input-field);
color: var(--color-form-text);
font-family: var(--font-paragraph);
font-family: var(--typography-family-paragraph);
font-size: var(--typography-size-input-fields);
line-height: var(--form-line-height);
max-width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions sass/layout/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.acf-block-preview .block,
body {
color: var(--color-paragraph);
font-family: var(--font-paragraph);
font-family: var(--typography-family-paragraph);
font-size: var(--typography-size-paragraph);
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
Expand All @@ -31,7 +31,7 @@ h4,
h5,
h6 {
color: var(--color-heading);
font-family: var(--font-heading);
font-family: var(--typography-family-heading);
font-weight: var(--typography-weight-heading);
margin-bottom: var(--margin-between-paragraphs);
margin-top: var(--margin-between-paragraphs);
Expand Down
6 changes: 3 additions & 3 deletions sass/variables/_font-family.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// and then attach them to elements: --font-paragraph: var(--font-barlow)
:root {
// Fonts in use for content
--font-inter: 'Inter', -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
--font-paragraph: var(--font-inter);
--font-heading: var(--font-inter);
--typography-family-inter: 'Inter', -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
--typography-family-paragraph: var(--typography-family-inter);
--typography-family-heading: var(--typography-family-inter);
}

0 comments on commit ce6c372

Please sign in to comment.