stylefy

Clojure(Script) library for styling user interface components with ease.

MIT License

Downloads
121.5K
Stars
317
Committers
8
stylefy - 1.11.1

Published by Jarzka almost 6 years ago

  • Fix compile warning
stylefy - 1.11.0

Published by Jarzka almost 6 years ago

Same as 1.11.0-beta1, only includes minor fixes in the documentation and adds tests.

stylefy - 1.11.0-beta1

Published by Jarzka almost 6 years ago

  • Implemented support for manual mode, which makes it possible to style child components with custom CSS selectors. It is recommended to use manual mode only for corner cases, i.e. when regular sub-styles cannot produce the desired end result. An example of this is a case when we want to easily change the style of a child component when the parent is being hovered. Manual mode can also be used to style 3rd party components that do not take style parameters. To avoid possible hassle, stylefy's special keywords do not work in manual mode and styles written in manual mode are scoped inside the element in which you use the style.
  • Log a warning when attempted to initialise stylefy more than once.
  • Log a warning when attempted to use an incorrect mode with spaces.
  • Fix bug: Modes were not working correctly inside feature query
stylefy - 1.10.1

Published by Jarzka almost 6 years ago

  • Fixed compile warnings.
stylefy - 1.10.0

Published by Jarzka about 6 years ago

Same as 1.10.0-beta1, only adds one more example.

stylefy - 1.10.0 beta 1

Published by Jarzka about 6 years ago

  • Improves performance especially in large applications: Previously all components were re-rendered when the "CSS in DOM" state of some stylefy style was changed. Now component is re-rendered only if the "CSS in DOM" state of a style, which is used in the component, has changed.
stylefy - 1.9.0

Published by Jarzka about 6 years ago

  • Adds multi-instance support.
stylefy - 1.9.0 Beta 1

Published by Jarzka about 6 years ago

  • Adds multi-instance support.
stylefy - 1.8.0

Published by Jarzka about 6 years ago

Same as 1.8.0 beta 1, only includes more tests and minor refactoring.

stylefy - 1.8.0 Beta 1

Published by Jarzka about 6 years ago

  • Reduces RAM & local storage usage by approximately 50% by keeping only the compiled CSS in memory, not the whole style map.
  • Makes it possible to define custom class prefix (for debugging and testing purposes)
stylefy - 1.7.0

Published by Jarzka over 6 years ago

  • Removes the need for requestAnimationFrame. DOM is now updated asynchronously, immediately after new CSS code is generated.
  • Sets caching on by default. The default expiration time is 7 days.
stylefy - 1.7.0 beta 2

Published by Jarzka over 6 years ago

  • Sets caching on by default. The default expiration time is 3 days.
stylefy - 1.7.0 beta 1

Published by Jarzka over 6 years ago

  • Removes the need for requestAnimationFrame. DOM is now updated asynchronously, immediately after new CSS code is generated.
stylefy - 1.6.0

Published by Jarzka over 6 years ago

Same as 1.6.0 beta 1.

stylefy - 1.6.0 beta1

Published by Jarzka over 6 years ago

  • Pseudo classes and pseudo elements that require double colon syntax are now supported. If you need double colon syntax, define the name of the mode as string. For example: "::-webkit-progress-bar"
stylefy - 1.5.1

Published by Jarzka over 6 years ago

  • A warning message is logged if trying to use use-style without calling stylefy/init first when the application starts.
stylefy - 1.5.0

Published by Jarzka over 6 years ago

The changes are the same as in 1.5.0-beta1

stylefy - 1.5.0-beta1

Published by Jarzka over 6 years ago

  • stylefy/class and stylefy/tag now support custom stylefy definitions (modes, media queries, supports queries)
  • Minor code refactoring inside the library
stylefy - 1.4.2

Published by Jarzka over 6 years ago

  • Style conversion is now approximately 7% faster when not using media or feature queries.
stylefy - 1.4.1

Published by Jarzka over 6 years ago

Bug fix release:

  • HTML attributes are now returned when calling use-style with an empty style map
  • Style maps with different garden units are now treated structurally different and thus produce different hash values (= CSS class selector)