8000 Support multiline syntax to break up long utility CSS class chains by mingan · Pull Request #1174 · haml/haml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support multiline syntax to break up long utility CSS class chains #1174

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

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

Conversation

mingan
Copy link
@mingan mingan commented Oct 23, 2024

I didn't get a reply when asked about the concept so I implemented this experiment. It piggybacks on the existing multiline syntax allowing

        %h1.mt-2                                            |
           .font-bold.text-2xl.text-grey-600.leading-tight  |
           .transition.duration-150.ease-in-out             |
           .lg:text-4xl.lg:mt-6                             |
           .group-hover:text-black                          |
           .group-focus:text-black                          |

to be treated as

         %h1.font-bold.text-2xl.text-grey-600.leading-tight.transition.duration-150.ease-in-out.lg:text-4xl.lg:mt-6.group-hover:text-black.group-focus:text-black

I have only two simple tests at the moment so my questions are:

  1. Is this worth pursuing?
  2. Are there better approaches to the same problem that I should try?

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.

1 participant
0