-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature/CSS refactoring #832
base: main
Are you sure you want to change the base?
Feature/CSS refactoring #832
Conversation
Required when working with Webstorm or other Intellij IDEs.
Update both files, add newer version of Tailwind CSS and fix some npm vulnerabilities.
Remove .tailwind-rules container. We don't need it because all Tailwind clases use the 'tw-' prefix. Remove @layer base {} from CSS.
We include and build Tailwind CSS properly and there is no need for this file anymore. Rename all tailwind-like-utils classes to their 'tw-' equivalents.
Remove these files and replace its classes with Tailwind CSS variants.
* Delete some obsolete and no longer used static CSS * Move admin CSS files to public/css/admin
* keep only build files in the root folder * delete obsolete and unused files * tune file structure
Feedback is welcome. |
Wow 🤩 . This PR looks like a miracle. We were thinking about doing all of these things before... but nobody really wanted to start. I appreciate your effort a lot. |
* remove obsolete files * keep admin CSS in public/css/admin. * keep site CSS in public/plugins
* move all CSS resources to resources/ * keep only generated CSS in public/css/ * put all imports into admin.less and style.less respectively, remove it from PHP * remove more unused less files
* include compiled Tailwind in main style files * remove app-tailwind.css
It is messing with Tailwinds' rem units.
Thank you for the feedback. I am glad you like the direction of my efforts. This phase is IMO done, I would like to eventually meet with you someday and talk about testing this PR and future development. I read something about dropping / replacing the Bootstrap (in the commit messages): this is the task I would love to help you with. I also like to 'atomize' (Tailwind-ize 😄) the CSS and to work on overall refactoring. Btw I love all your work in lab.sng. I checked the Warhol microsite in the meantime and it blew my dekel off; splendid work! |
Hi @adamplesnik 👋! Thank you very much for your effort. It'll take a while for us to review all the changes, but from skimming the code, it looks like a major step in the right direction. Right now I'm having trouble compiling the project assets (see e.g. here). Are you able to run Note the project uses NodeJS v14 right now. That's is not a hard requirement AFAIK but if you're using a different version, please let us know. |
…S to be built with postCss. + fix import paths
# Conflicts: # package-lock.json # package.json
Hi @eronisko, thank you for the feedback. I actually broke the build by calling Tailwind plugin in less() build. I put Tailwind into separate file, it should work now. |
…arate CSS to be built with postCss." This reverts commit 2a1ac52.
* create separate CSS to be built with postCss. * fix import paths * no code reformatting this time ;)
I am sorry about the revert, I realised too late that it would be better to leave the code formatting off for PHP files. |
I am sorry I was in a hurry and forgot to do things properly.
* create separate CSS to be built with postCss. * fix import paths * no code reformatting this time ;)
…ature/css-refactoring
I am sorry about this commit mess, I reverted the initial build and then reapplied it in a hurry. |
+ set correct line height for Tailwind's text-base
@eronisko I tried to fix all major issues. Would you please run the tests again? Thank you very much. |
# Conflicts: # resources/js/components/user-collections/SharedCollection.vue # resources/views/components/footer.blade.php # resources/views/dielo.blade.php # resources/views/frontend/catalog/index.blade.php # resources/views/frontend/shared-user-collections/show.blade.php # resources/views/informacie.blade.php # resources/views/livewire/newsletter-signup-form.blade.php # resources/views/reprodukcie.blade.php
Thanks @adamplesnik. I'll get you the test results first thing on Thursday. |
New test run, looks better I think: |
It doesn't work well with BS.
…ature/css-refactoring
Add @tailwindcss/forms back.
# Conflicts: # package.json
# Conflicts: # resources/views/frontend/catalog-new/index-new.blade.php
Description
My original intention was to introduce a dark mode for webumenia.sk. However I found out that the project CSS was due to an update and I attempted to do one.
List of changes
Todo
Type of change
Checklist: