ScalaCSS

0.5.0 (commit log)

Most significant changes

  • Drastically reduce size of output JS.

    • fastOptJS reduced by ~590k
    • fullOptJS reduced by ~140k
  • Remove Scalaz as a dependency.

Other changes

  • Allow decimal percentages in keyframe rules.
  • Add negation to length & resolutions.
  • Add division to length & resolutions.
  • The following JS-only methods have been moved from the ext-react module to the core module.
    • createStyleElement
    • installStyle
    • <style>.addToDocument()
  • There is now a compile-time check that styleF inputs are safe to be stored in a Map (which is (by default) what ScalaCss does under-the-hood). If you use styleF with custom data types, see the new section at the end of Functional Styles.
  • Defaults no longer use PlatformJS to determine autoprefixing rules. By default, all prefixes will be generated. You can re-enable this in your own defaults if you want to keep using PlatformJS.
  • Remove scalacss.ext.CssReset. It wasn't advertised and isn't appropriate here.
  • Refactor to expose less internal API. Everything now lives in scalacss.internal with scalacss._ being a curated list of exports.
  • Upgrade dependencies:
    • Scala.JS 0.6.12.
    • Scalatags 0.6.0.
    • scalajs-react 0.11.1
    • scala-js-dom 0.9.1
  • Update caniuse data to latest.

0.5.1 (commit log)

  • Change object aliases in Export from def to val so inner content can be imported.
  • Build for Scala 2.12.
  • Upgrade dependencies:
    • Scala.JS 0.6.13.
    • Scalatags 0.6.2.
    • UnivEq 1.0.2.

0.5.3-RC1 (commit log)

(Skipping 0.5.2 due to botched release)

  • background-clip now has type-safe DSL.
  • FontFace names are now optional. When specified they are never modified and duplication is allowed. When not specified, they are given a unique name.
  • Upgrade dependencies:
    • Scala.JS 0.6.14.
    • Scalatags 0.6.3.
    • Scalaz 7.2.9.
    • scalajs-react 1.0.0-RC1.

0.5.3 (commit log)

  • scalacss.Defaults was broken in that it always pointed to dev settings and never chose prod settings. This has been deprecated and replaced with scalacss.devOrProdDefaults. Unfortunately you can no longer import its members directly and must instead, store it in a val somewhere in your project first.

  • Upgrade dependencies:

    • Scala to 2.11.11 & 2.12.2.
    • Scala.JS 0.6.15.
    • Scalatags 0.6.5.
    • Scalaz 7.2.11.
    • scalajs-react 1.0.0.
  • Compile for Scala 2.12 with -opt:l:method

  • Replace all instance of Stream with List, Vector or Iterator

0.5.4 (commit log)

  • grid-template-areas now has type-safe DSL and produces correct CSS.
  • Bugfix when adding > 26 separate stylesheets (thanks @an-tex & @vmarc)
  • Timing functions using .steps now default to direction=end when unspecified. (thanks @Myrddin27)
  • Upgrade dependencies:
    • Scala 2.12.4
    • Scala.JS 0.6.19
    • Scalatags 0.6.7
    • Scalaz 7.2.16
    • scalajs-react 1.1.1

0.5.5 (commit log)

  • CSS rules rendering in the same order as defined in the Scala code.
  • New CSS attributes:
    • caret-color
    • font-variantion-settings
    • hanging-punctuation
    • initial-letter
    • overscroll-behavior
    • overscroll-behavior-x
    • overscroll-behavior-y
  • New CSS values:
    • display: flow-root
    • font-family: system-ui
  • Type-safety added to CSS attributes:
    • background-repeat
  • Upgrade dependencies:
    • scala-js-dom 0.9.4

If you like what I do —my OSS libraries, my contributions to other OSS libs, my programming blog— and you'd like to support me, more content, more lib maintenance, please become a patron! I do all my OSS work unpaid so showing your support will make a big difference.