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

Elastic: Lessc v4 comptibility issue: media definitions require block statements #7813

Closed
tfl opened this issue Jan 5, 2021 · 8 comments
Closed

Comments

@tfl
Copy link

tfl commented Jan 5, 2021

I have trouble lessc'ing Elastic style with lessc 4:

lessc -l -m=always styles/styles.less gives me

SyntaxError: media definitions require block statements after any features in styles/widgets/editor.less on line 632, column 5:
631
632     .mce-menu {
633         width: @layout-mobile-menu-width !important;
  • Archlinux
  • Roundcube version 1.4.10 (github checkout)
  • Node: v15.5.1
  • lessc 4.0.0 (Less Compiler) [JavaScript]
@thomascube
Copy link
Member

One more reason for #6284. This way not everybody needs to worry about the right tooling for building the css files.

@alecpl
Copy link
Member

alecpl commented Jan 6, 2021

I was going to say wontfix for 1.4, but there's a PR so maybe it wont be much trouble to fix. Does the PR fix the issue above? I didn't encounter such an issue using less v4.

The 1.4 branch also probably should get 7df5e5f.

@vookimedlo
Copy link

Does the PR fix the issue above?

Yet, it does.

@tfl
Copy link
Author

tfl commented Jan 6, 2021

Well, no. It does not - at least for me. Yes, it may fix those errors based upon mathematical calculations (which I fixed by myself previously) but it does not reference (nor fix) the error I mentioned above.

@tfl
Copy link
Author

tfl commented Jan 6, 2021

For the time beeing I downgraded lessc to 2.7.3 and now I have my styles back. I do not know since when RC less-styles became incompatible with current lessc but RC v1.4.9 styles are incompatible too.

@vookimedlo
Copy link

@tfl Do we use the same compiler?

npm install less
npm install less-plugin-clean-css

I tried it again with changes in PR and that syntax error has gone.

image

@tfl
Copy link
Author

tfl commented Jan 6, 2021

You are right! I cloned https://github.com/vookimedlo/roundcubemail.git and lessc now has nothing to complain.
BTW: we use(d) the same compiler (see my initial post)

@alecpl
Copy link
Member

alecpl commented Jan 9, 2021

Fixed.

@alecpl alecpl closed this as completed Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants