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 breakpoint syntax and library #14893

Merged
merged 4 commits into from
Mar 17, 2024
Merged

Conversation

schlawg
Copy link
Collaborator

@schlawg schlawg commented Mar 17, 2024

I think the basic scss syntax is clearer, and removing the library shaves 1-2 seconds off of sass build times.

from 7s down to 5.1

$medium: 980px;
$large: 1120px;
$x-large: 1260px;
$xx-large: 1360px;
Copy link
Collaborator

@ornicar ornicar Mar 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This value changed from 1500px to 1360px. Why? Are there any other functional changes in this PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was 1360px when this branch's code was actually forked and maybe became 1500px at some point recently?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no intentional changes to any function, that was due to the block in question having a heritage in topnav-tweaks/_variables.scss which didn't pick up the corresponding mq-xx-large change in _media-queries.scss

display: block;
}

@include breakpoint($mq-topnav-hidden) {
@media (max-width: at-most($medium)) {
Copy link
Collaborator

@ornicar ornicar Mar 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are losing some meaning here, before it was clear that it was about the topnav being visible or not. But after the change it looks arbitrary, like it could be changed - but it could not.

In this this precise case I suppose we could use a mixin like the mq-subnav-top one; but a bit later...

@ornicar ornicar merged commit b2443ba into lichess-org:master Mar 17, 2024
3 checks passed
@schlawg schlawg deleted the scratch branch March 17, 2024 15:41
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