-
Notifications
You must be signed in to change notification settings - Fork 839
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
Remove unneeded calc in scc #7059
Conversation
Previously $font-size was a fallback to --font-size variable. Probably we break something. |
margin: 0; | ||
color: $cover-title-forecolor; | ||
font-family: $font-surveytitle-family; | ||
font-size: $font-surveytitle-size; | ||
font-size: var(--default-font-size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be it would be better to introduce a global css variable --sjs-font--default-surveytitle-size to use here and in st-title.scss
font-family: $font-pagetitle-family; | ||
font-weight: $font-pagetitle-weight; | ||
font-size: $font-pagetitle-size; | ||
font-size: var(--default-font-size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to use different variable names for different objects. It's hard to find what variable to set or rename if they have the same names.
@@ -29,11 +29,12 @@ | |||
flex-grow: 1; | |||
|
|||
.sd-title { | |||
--default-font-size: var(--sjs-font-surveytitle-size, calc(2 * (var(--sjs-font-size, 16px)))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be it would be better to introduce a global css variable --sjs-font--default-surveytitle-size
…m/surveyjs/survey-library into features/scss-optimize-generation
No description provided.