scalacss. Many projects already do this.
find . -type f -name '*.scala' -exec perl -pi -e 's/japgolly\.(?=scalacss)//g' {} +
Style composition warnings gained more detail.
// Before
[CSS WARNING] .scalacss-0001 -- margin overridden by marginLeft.
[CSS WARNING] .scalacss-0002 -- cursor overridden by cursor.
// After
[CSS WARNING] .MyStyles-0001 -- {margin-left: 6px} conflicts with {margin: 12px}
[CSS WARNING] .MyStyles-0002 -- {cursor: zoom-in} conflicts with {cursor: pointer}
addClassNames.DevDefaults and ProdDefaults with Defaults choosing between the two.StyleSheet gets a different prefix.StyleSheet class/object name.StyleSheet:override implicit val classNameHint = ClassNameHint("TEST")
StyleSheets can be used in the same process without overlap.mutable.GlobalRegistry as an optional convenience for managing shared stylesheets.
.styles and .css to StyleSheet.StyleSheet now warn if new styles are registered after .render, .css, .styles called.
mutable package.)mixin(…).
(The difference between style() which registers, and styleS() which doesn't, was too fine.)mixinIf(bool)(…).mixinIfElse(bool)(…)(…).<String>.color. Example: borderColor("#080".color).inherit,initial, unset.each_line to eachLine.// These correctly generate {margin: 4px 1ex}
margin(4 px, 1 ex)
margin(h = 1.ex, v = 4.px)
.vertical and .horizontal.margin.vertical(4 px)
// ↑ is a shortcut for ↓
marginTop(4 px) compose marginBottom(4 px)
clear learned inlineStart and inlineEnd values.float learned inlineStart and inlineEnd values.Added browser prefixes for...
captionSide block/inline start/end values.display flex and grid values.fontSizeAdjust keys.order keys.textAlign start/end values.