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

Rails asset precompile complains about invalid CSS #23

Open
tgmerritt opened this issue Jan 18, 2014 · 3 comments
Open

Rails asset precompile complains about invalid CSS #23

tgmerritt opened this issue Jan 18, 2014 · 3 comments

Comments

@tgmerritt
Copy link

Invalid CSS after "...ckground-color:": expected pseudoclass or pseudoelement, was " primary_color{..."
(in /Users/Tyler/fieldharmony/app/assets/stylesheets/application.css)
(sass):10348

It doesn't like this part :
html background-color: primary_color{border-color:#2c3e50;color:#fff}

Line 4120, 4136, 4152, 4168, 4184, 4200, 4216

All the ui-page-theme-a,b,c,d,e,f,g declarations.

I wrapped it like this:

html{background-color: primary_color{border-color:#2c3e50;color:#fff}}

With curly braces and it would compile - but I get the issue where the only usable theme is A, and when data-theme="a" is applied to the content or page div - that's the only thing that will work for the entire page. You cannot change buttons, collapsible divs etc to other themes...

@fdummert
Copy link

fdummert commented Jul 7, 2014

The error cause is a dangling comma in following selector (file build_swatch.styl, line 119):

    .ui-btn.ui-checkbox-on.ui-btn-{swatch}:after,
        background-color: primary_color

Removing the comma and rebuilding fixes the issue.

@atti84it
Copy link

atti84it commented Jan 6, 2015

yeeeeppp!!! it works!

@MichaelReiter
Copy link

Didn't work for me.

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

No branches or pull requests

4 participants