Skip to content

Major Release v4.0.0

Compare
Choose a tag to compare
@chharvey chharvey released this 09 Mar 16:28
· 886 commits to gh-pages since this release

Major Changes

  • removes fractional variable widths, e.g. @5o6. Manually typing the value, e.g. (5/6)*100% or 83.333%, is just as easy and saves file size.

  • removes Solarized / Lunarized colors. They can now be found in my lux-nox repo and may be installed separately, if you want to use them:

    $ npm install lux-nox
    
  • renames heading font size variables from @h1_font_size to
    @xmeter_font_size_h1 @g-font_size_h1 etc.

  • globalizes all variables and mixins. You no longer need to invoke the #XMETER object! However you still need to @import (reference) the proper Less partial file (which is most likely /src/__settings.less).

A note on variable naming

  1. Global variables—accessible throughout the entire site's stylesheets—are prefixed with @g-.
  2. Local variables—accessible within a page's or subsite's stylesheets—are prefixed with @l-. No such variables are in this package but the naming convention exists for your own packages.
  3. Private variables—visible only within a partial Less file—are prefixed with @p-.
  4. Scoped variables, including parameters, within blocks and mixins are not prefixed.

Absolutely no mixins are prefixed (for now—may change later).

Minor Changes

  • all-new documentation, with includable Jade content. this means you can include the Xmeter test page in your own project!
  • .translucent() mixin is hereby DEPRECATED. It may be removed in the future.
  • in the print media, the background, box-shadow, and text-shadow properties, which were reset on all elements, are now marked !important. Now classes won't override this behavior.

Fixes

  • color for <s> elements is now darker and more accessible-friendly
  • comment headings are now inline comments so they are not compiled into output
  • all npm dependencies have been moved to dev-dependencies