Comments (5)
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.
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
Update: Apparently it doesn't work everywhere...
from jekyll-minifier.
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.
Any update on this? Still a big issue
from jekyll-minifier.
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)
- in feed.xml newlines in pre/code tags are not preserved
- Dependecy Error despite all dependecies HOT 10
- Speeding up the wrapper HOT 1
- Obfuscation Techniques HOT 1
- Respect jekyll.environment to disable minification HOT 2
- Inline Data URI, SVG XML loses whitespace HOT 1
- CSS assets minification can't be disabled HOT 3
- Have bug since last update 0.1.8 HOT 3
- To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true)
- It's not working anymore HOT 15
- Default config error with uglifier_args
- CSS Minifying svg in background-image HOT 9
- Unexpected token: Operator (<) errors with javascript compression HOT 2
- Should work with incremental build and use cache to speed up.
- Option to disable and enable minification without env variables HOT 1
- PHP minifier breaks PHP file when single line comments are present
- JSON+LD not getting compressed within HTML
- JavaScript comments break build HOT 2
- <script> is not detected if it has the "type" attribute set
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-minifier.