Skip to content
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

Merged
merged 5 commits into from
Oct 3, 2023
Merged

Conversation

andrewtelnov
Copy link
Member

No description provided.

@tsv2013
Copy link
Member

tsv2013 commented Oct 2, 2023

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);
Copy link
Member

@tsv2013 tsv2013 Oct 3, 2023

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);
Copy link
Member

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))));
Copy link
Member

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

@tsv2013 tsv2013 merged commit 950f06a into master Oct 3, 2023
12 checks passed
@tsv2013 tsv2013 deleted the features/scss-optimize-generation branch October 3, 2023 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants