Skip to content

Releases: Jarzka/stylefy

1.4.0

25 Mar 14:32
Compare
Choose a tag to compare
  • ::with-classes can now be used inside a style map definition.

1.3.0

09 Mar 15:04
Compare
Choose a tag to compare
  • use-style function now accepts HTML attributes as the second parameter. This means that there is no need to merge the return value of use-style and HTML attributes anymore. This change is backwards compatible, so merging still works as expected.
  • Updated deps (Clojure, ClojureScript & Reagent)
  • stylefy now uses clj-chrome-devtools for running tests

Previously, the second parameter of use-style was an options map, containing only one keyword ::stylefy/with-classes. This feature is now deprecated, but works. If you want to provide additional classes to use-style, you should use the regular HTML :class attribute.

1.2.0

15 Dec 14:57
Compare
Choose a tag to compare
  • Added support for globally defined vendor prefixes
  • Added support for style caching using HTML5 local storage.

See readme for more info.

1.1.0

03 Nov 20:27
Compare
Choose a tag to compare
  • Inline style map does not contain stylefy's namespaced keywords anymore(these were useless, only style properties can be used)
  • Inline style map handles Garden's units and colors correctly by converting them to CSS strings
  • New feature: Call stylefy/tag to reset the default style of a specific tag (like body)

1.0.1

09 Oct 17:48
Compare
Choose a tag to compare
  • Styles containing feature queries are not returned as inline styles.

1.0.0

29 Sep 18:00
Compare
Choose a tag to compare

Now that all major CSS features are supported, it's time to release version 1.0!

  • Added support for CSS feature queries (@supports). Media queries, modes and vendor prefixes inside @supports blocks are also supported. See README.md for examples.
  • Added support for using vendor prefixes and modes in media queries
  • Garden option {:pretty-print? false} is now supported in media queries (this change can only be seen in tests).

As always, all changes should be backwards compatible.

0.7.3

26 Jun 19:26
Compare
Choose a tag to compare
  • prepare-styles now prepares all sub-styles recursively

0.7.2

20 Jun 18:27
Compare
Choose a tag to compare
  • Adds support for deeper sub-style nesting by introducing a new core function: sub-style. See README & examples for information.

Thanks to @lllShamanlll for this idea!

0.7.1

04 Jun 12:49
Compare
Choose a tag to compare
  • Makes sure prepare-styles also prepares sub-styles of the given styles

0.7

04 Jun 11:13
Compare
Choose a tag to compare
0.7
  • Removes public reagent atoms: keyframes-in-dom? and font-faces-in-dom?. After init function was changed to add keyframes and font-faces into the DOM immediately, the values of these atoms were basically always true.
  • Adds a new public API function prepare-styles. Calling this function asks stylefy to convert the styles to CSS and add them into the DOM immediately. Calling this function on :component-will-mount can be useful if a component is going to use styles with specific modes or media queries that cannot be present as inline style, and the component should not be hidden for the small period of time when the styles are prepared to be added into the DOM.

It's good to keep in mind that most of the time prepare-styles is not needed but calling use-style should be enough.