1
0
Fork 0
forked from OpenNeo/impress
impress/app/assets/stylesheets
Emi Matchu 30eced448d Fix bug precompiling a CSS file that contains a min() expression
When I run `bin/deploy:precompile` on the previous version, I get an
error from libsass that `vw` and `vh` are incompatible units. I don't
get this error in development, only when compiling for production.

My inference is:
1. For the production build, Sass is trying to preprocess even non-SASS
   files, maybe to help minify them?
2. In Sass, their `min()` existed before CSS's `min()`, so it's
   treating it Like That, and returning a reasonable-in-some-cases-but-
   not-here error that `min(100vw, 100vh)` can't be *precomputed*.

Anyway, wrapping it in `calc()` isn't a *problem*, and helps the Sass
compiler not try to precompute it, so. Okay!
https://github.com/sass/node-sass/issues/2815#issuecomment-575926329
2024-09-06 11:00:49 -07:00
..
alt_styles Left-align the alt styles on the page, to flow better with the headers 2024-01-24 08:02:19 -08:00
application Improve the loading indicator for the new item page previews 2024-07-07 21:32:41 -07:00
auth_users Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
closet_hangers Replace old stickUp dependency with position: sticky 2024-02-20 18:33:23 -08:00
closet_lists Add trade warning to closet list form 2024-04-16 16:53:30 -07:00
contributions Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00
devise/sessions Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
fundraising Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
item_trades Don't overflow long usernames in the trades table 2024-01-21 06:52:51 -08:00
items Add html5 badge to new item previews 2024-09-05 18:48:41 -07:00
neopets_page_import_tasks Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00
outfits Tweak the NeoPass announcement box's orange down 2024-04-27 14:25:58 -07:00
partials Add responsive layout for item page 2024-09-05 16:18:48 -07:00
pets Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00
swf_assets Fix bug precompiling a CSS file that contains a min() expression 2024-09-06 11:00:49 -07:00
users Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00
_items.sass Add responsive layout for item page 2024-09-05 16:18:48 -07:00
_layout.sass Remove CSS reset that removes focus outline from all elements by default 2024-05-27 15:49:12 -07:00
_responsive.sass Add responsive layout for item page 2024-09-05 16:18:48 -07:00
application.css.sass Add responsive layout for item page 2024-09-05 16:18:48 -07:00
fonts.css.sass Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00