Skip to content

Commit

Permalink
chore: swap preview fonts (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs authored Dec 5, 2023
1 parent af3c8db commit 5e2d66c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
4 changes: 0 additions & 4 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ body {
height: 100%;
}

* {
font-family: "Inter" sans-serif;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
Expand Down
5 changes: 2 additions & 3 deletions src/styles/isomer-cms/elements/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@import "./variable";

body {
font-family: "Inter", sans-serif;
font-family: "Inter", BlinkMacSystemFont, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
font-size: 16px;
background: $base-background;
margin: 0;
Expand Down Expand Up @@ -33,7 +33,7 @@ select,
textarea,
p,
li {
font-family: "Inter", sans-serif;
font-family: "Inter", BlinkMacSystemFont, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
}

.wrapper {
Expand All @@ -59,7 +59,6 @@ h3,
h4,
h5,
h6 {
font-family: "Inter", sans-serif;
font-weight: 700;
margin: 0;
padding: 0;
Expand Down
10 changes: 0 additions & 10 deletions src/styles/isomer-cms/pages/Editor.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@
.homepageEditorMain {
@extend .preview-styles;

* {
font-family: "Lato";
}
width: calc(100vw - #{$homepage-editor-sidebar-width});
height: calc(100vh - #{$header-height} - #{$footer-height} - 1rem);
box-sizing: border-box;
Expand All @@ -117,9 +114,6 @@
.contactUsEditorMain {
@extend .preview-styles;

* {
font-family: "Lato";
}
width: calc(100vw - #{$homepage-editor-sidebar-width});
height: calc(100vh - #{$header-height} - #{$footer-height} - 1rem);
box-sizing: border-box;
Expand Down Expand Up @@ -165,10 +159,6 @@

.pageEditorMain {
@extend .previewTextStyles;

* {
font-family: "Lato";
}
}

//! TODO figure out how to put styles at the correct place
Expand Down
16 changes: 2 additions & 14 deletions src/styles/isomer-template/theme/_text-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
display-1 {
color: $content-base;

font-family: Lato;
font-size: 4rem;
font-style: normal;
font-weight: 700;
Expand All @@ -16,8 +15,7 @@ display-1 {
.h1 {
color: $content-base;

font-family: Lato;
font-size: 3rem;
font-size: 3rem;
font-style: normal;
font-weight: 700;
line-height: 3.5rem; /* 116.667% */
Expand All @@ -30,8 +28,7 @@ display-1 {
.h1 {
color: $content-base;

font-family: Lato;
font-size: 2.75rem;
font-size: 2.75rem;
font-style: normal;
font-weight: 700;
line-height: 3.5rem; /* 116.667% */
Expand All @@ -42,7 +39,6 @@ display-1 {
.h2 {
color: $content-base;

font-family: Lato;
font-size: 2rem;
font-style: normal;
font-weight: 700;
Expand All @@ -54,7 +50,6 @@ display-1 {
color: $content-base;

font-feature-settings: "clig" off, "liga" off;
font-family: Lato;
font-size: 1.625rem;
font-style: normal;
font-weight: 700;
Expand All @@ -65,7 +60,6 @@ display-1 {
color: $content-base;

/* new-subtitle-1 */
font-family: Lato;
font-size: 1.125rem;
font-style: normal;
font-weight: 400;
Expand All @@ -77,7 +71,6 @@ display-1 {
color: $content-base;

/* new-subtitle-2 */
font-family: Lato;
font-size: 1rem;
font-style: normal;
font-weight: 400;
Expand All @@ -92,7 +85,6 @@ display-1 {
font-feature-settings: "clig" off, "liga" off;

/* new-body-1 */
font-family: Lato;
font-size: 1.25rem;
font-style: normal;
font-weight: 400;
Expand All @@ -103,7 +95,6 @@ display-1 {
color: $content-base;

font-feature-settings: "clig" off, "liga" off;
font-family: Lato;
font-size: 1.125rem;
font-style: normal;
font-weight: 400;
Expand All @@ -116,7 +107,6 @@ display-1 {
font-feature-settings: "clig" off, "liga" off;

/* new-linkbutton */
font-family: Lato;
font-size: 1.125rem;
font-style: normal;
font-weight: 600;
Expand All @@ -138,7 +128,6 @@ display-1 {
font-feature-settings: "clig" off, "liga" off;

/* new-buttontext */
font-family: Lato;
font-size: 1rem;
font-style: normal;
font-weight: 600;
Expand All @@ -152,7 +141,6 @@ display-1 {
font-feature-settings: "clig" off, "liga" off;

/* new-link */
font-family: Lato;
font-size: 1.125rem;
font-style: normal;
font-weight: 600;
Expand Down

0 comments on commit 5e2d66c

Please sign in to comment.