Skip to content

Commit

Permalink
fix font-sizes from themes (#6650)
Browse files Browse the repository at this point in the history
Co-authored-by: OlgaLarina <olga.larina.dev@gmail.com>
  • Loading branch information
OlgaLarina and OlgaLarina committed Aug 4, 2023
1 parent bd2139b commit de1f54b
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/common-styles/sv-ranking.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
text-overflow: ellipsis;
white-space: nowrap;
color: $foreground;
font-size: calcFontSize(1);
line-height: calcLineHeight(1.5);
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
margin: 0 calcSize(2);
}

Expand Down
4 changes: 2 additions & 2 deletions src/defaultV2-theme/blocks/sd-action.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
font-weight: 600;
font-family: var(--font-family, $font-family);
font-style: normal;
font-size: calcFontSize(1);
line-height: calcLineHeight(1.5);
font-size: $font-questiontitle-size;
line-height: multiply(1.5, $font-questiontitle-size);
outline: none;
}

Expand Down
2 changes: 2 additions & 0 deletions src/defaultV2-theme/blocks/sd-file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
word-break: break-word;
white-space: normal;
color: $foreground-light;
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
}

.sd-file__choose-btn--text {
Expand Down
4 changes: 2 additions & 2 deletions src/defaultV2-theme/blocks/sd-imagepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
}

.sd-imagepicker__text {
font-size: calcFontSize(1);
line-height: calcLineHeight(1.5);
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
margin-top: calcSize(1);
color: $foreground;
}
Expand Down
2 changes: 2 additions & 0 deletions src/defaultV2-theme/blocks/sd-navigation.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.sd-body__navigation {
.sd-btn {
padding: calcSize(2) calcSize(8);
font-size: $font-questiontitle-size;
line-height: multiply(1.5, $font-questiontitle-size);
}
}

Expand Down
6 changes: 4 additions & 2 deletions src/defaultV2-theme/blocks/sd-paneldynamic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
}

.sd-paneldynamic__progress-text {
font-size: calcFontSize(1);
font-size: $font-questiontitle-size;
line-height: multiply(1.5, $font-questiontitle-size);
color: $foreground-light;
margin: 0;
margin-right: calcSize(3);
Expand Down Expand Up @@ -190,7 +191,8 @@
cursor: pointer;

font-family: var(--font-family, $font-family);
font-size: calcFontSize(1);
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
color: $foreground-light;
overflow-x: hidden;
white-space: nowrap;
Expand Down
4 changes: 2 additions & 2 deletions src/defaultV2-theme/blocks/sd-question.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
gap: calcSize(0.5);
justify-content: center;
min-height: calcSize(24);
line-height: calcLineHeight(1.5);
font-size: calcFontSize(1);
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
color: $foreground-light;

&>div,
Expand Down
4 changes: 2 additions & 2 deletions src/defaultV2-theme/blocks/sd-signaturepad.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


.sjs_sp_placeholder {
color: $foreground-light;
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
}

.sjs_sp_container {
Expand Down
4 changes: 2 additions & 2 deletions src/defaultV2-theme/blocks/sd-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@

.sd-table__cell {
font-weight: normal;
font-size: calcFontSize(1);
line-height: calcLineHeight(1.5);
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
padding: calcSize(1);
color: $foreground;
text-align: center;
Expand Down

0 comments on commit de1f54b

Please sign in to comment.