Commit Graph

5 Commits

Author SHA1 Message Date
evazion
3bf65d1378 css: update browserslist requirement.
Update the minimum browser requirement from browsers released since
2012, to browsers released in the last 5 years.

This means PostCSS won't prefix CSS properties like `flex` or other
properties supported by browsers since 2017. Babel also won't transpile
Javascript syntax that has been supported by browsers since 2017.
2022-01-08 12:09:25 -06:00
evazion
bb60a59001 css: remove postcss-flexbugs-fixes plugin.
Remove a PostCSS plugin used to workaround bugs in the `flex` CSS
property. Most of these bugs are no longer relevant and only affected
ancient browsers like IE 10 or 11.

https://github.com/philipwalton/flexbugs
2022-01-08 11:54:45 -06:00
evazion
52311ad914 css: don't include fallbacks for CSS variables.
Don't include fallback CSS properties for CSS variables. Before we
generated CSS like this:

  a.tag-type-1 {
    color: #c00004;
    color: var(--artist-tag-color);
  }

Now we generate CSS like this:

  a.tag-type-1 {
    color: var(--artist-tag-color);
  }

This means that support for CSS variables is now required for colors to
work properly. All major browsers have supported CSS variables since
2016-2017.
2022-01-08 11:50:02 -06:00
evazion
c325bfa199 css: factor out colors from main css (#4158). 2019-09-17 00:28:41 -05:00
evazion
504f785edc Fix #4115: Upgrade to webpack 4.x.
https://github.com/rails/webpacker/blob/master/docs/v4-upgrade.md
2019-07-31 20:17:14 -05:00