Giter VIP home page Giter VIP logo

Comments (5)

wneessen avatar wneessen commented on August 26, 2024 1

Ran into the same issue. Fixed it with this little patch:

--- vendor/bundle/ruby/2.6.0/gems/cssminify2-2.0.1/lib/cssminify2/cssmin-orig.rb	2021-02-20 22:16:46.000000000 +0100
+++ vendor/bundle/ruby/2.6.0/gems/cssminify2-2.0.1/lib/cssminify2/cssmin.rb	2021-02-20 22:16:41.000000000 +0100
@@ -212,2 +212,6 @@
     css = css.gsub(/(:|\s)0+\.(\d+)/) { "#{$1.to_s}.#{$2.to_s}" }
+
+    #
+    # Put space back between ' + ' i. e. in calc() operations
+    css = css.gsub(/\+/i, ' + ')

from jekyll-minifier.

TheEvilSkeleton avatar TheEvilSkeleton commented on August 26, 2024 1

which doesn't work. I have tried a "workaround"

max-width: calc(100% - - 40px);

which also doesn't work.

I've had to remove jekyll-minifier from my build.

@thetwopct have you tried max-width: calc(100% - -40px); (remove the space after the second -)? This worked for me

For example: https://gitlab.com/TheEvilSkeleton/theevilskeleton.gitlab.io/-/commit/be3571f703dc70cbd792b6aece89791c3eff42cf#e5af3623409c270e77be92ef76ad4c5fda7764a7_24_28

Update: Apparently it doesn't work everywhere...

from jekyll-minifier.

thetwopct avatar thetwopct commented on August 26, 2024

Also suffering same issue where spaces from the CSS calc() function are being removed making the style fail.

Example:

max-width: calc(100% + 40px);

is output as

max-width: calc(100%+40px);

which doesn't work. I have tried a "workaround"

max-width: calc(100% - - 40px);

which also doesn't work.

I've had to remove jekyll-minifier from my build.

from jekyll-minifier.

jordikitto avatar jordikitto commented on August 26, 2024

Any update on this? Still a big issue

from jekyll-minifier.

tallcoleman avatar tallcoleman commented on August 26, 2024

I also ran into this recently. Didn't appear to be an issue on Firefox, but broke on Edge and Safari because there wasn't space on both sides of a - operator. Was only able to fix it by turning CSS minification completely off in _config.yml.

from jekyll-minifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.