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

Breakpoint v3.0.0 is incompatible with Python libsass #191

Open
oleg-nenashev opened this issue Nov 28, 2023 · 0 comments
Open

Breakpoint v3.0.0 is incompatible with Python libsass #191

oleg-nenashev opened this issue Nov 28, 2023 · 0 comments

Comments

@oleg-nenashev
Copy link

Follow up to sass/libsass-python#449 . 8f400aa and other commits moved the library to sass:math which is not supported in Python's libsass: https://discourse.gohugo.io/t/cant-use-sass-math-div/33087

The incompatibility leads to errors like this one:

ERROR   -  [SASS] Failed to build CSS: Error: Invalid CSS after "...   @return math": expected expression (e.g. 1px, bold), was ".div(base-conversio"
                   on line 15:19 of extra_sass/vendor/breakpoint/stylesheets/breakpoint/_helpers.scss
                   from line 28:1 of extra_sass/vendor/breakpoint/stylesheets/_breakpoint.scss
                   from line 6:4 of extra_sass/_masthead.scss
                   from line 2:1 of extra_sass/style.css.scss
           >>       @return math.div(base-conversion($value), base-conversion(breakpoint-g
              ------------------^
           Traceback (most recent call last):
             File "/home/onenashev/.local/lib/python3.8/site-packages/mkdocs_extra_sass_plugin/plugin.py", line 74, in _build_entry
               info = entry_point.save_to(site_dir, dest_dir)
             File "/home/onenashev/.local/lib/python3.8/site-packages/mkdocs_extra_sass_plugin/plugin.py", line 177, in save_to
               css, source_map = sass.compile(
             File "/home/onenashev/.local/lib/python3.8/site-packages/sass.py", line 725, in compile
               raise CompileError(v)
           sass.CompileError: Error: Invalid CSS after "...   @return math": expected expression (e.g. 1px, bold), was ".div(base-conversio"
                   on line 15:19 of extra_sass/vendor/breakpoint/stylesheets/breakpoint/_helpers.scss
                   from line 28:1 of extra_sass/vendor/breakpoint/stylesheets/_breakpoint.scss
                   from line 6:4 of extra_sass/_masthead.scss
                   from line 2:1 of extra_sass/style.css.scss
           >>       @return math.div(base-conversion($value), base-conversion(breakpoint-g

Downgrading to breakpoint 2.x works around the issue

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

1 participant