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

OBS-383: Replace LESS with native CSS #6814

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

toufali
Copy link

@toufali toufali commented Nov 22, 2024

This PR transpiles LESS files to CSS – a preliminary step for the front-end refactor.

This PR is intentionally limited in scope for ease of review and logical/modular commits. Further changes to come, including deleting all LESS files, removing the LESS compiler and associated code.

These changes should not result in any visible difference in-browser. The app should still build without issue using django-pipeline. This was tested by following the steps in Production-style Assets, then spot-testing the site in the browser.

@toufali toufali requested a review from a team as a code owner November 22, 2024 04:21
@smarnach smarnach self-assigned this Nov 22, 2024
Copy link
Contributor

@smarnach smarnach left a comment

Choose a reason for hiding this comment

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

I'm somewhat out of my comfort zone here, so I'm not sure I understand correctly what's going on here.

It looks like this PR adds compiled versions of all the less files. And it looks like in the compiled versions all imports are inlined, and all variables are replaced with their actual values.

What I believe we eventually want is using CSS imports instead of the less imports, and CSS variables instead of the less variables, since this would keep the logical structure and maintainability of the code. Is this what you are trying to do? Or are you going some other route?

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.

2 participants