Skip to content

kjbrum/juice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Kyle Brumm
Aug 13, 2015
25e6d52 · Aug 13, 2015

History

62 Commits
Mar 1, 2015
Mar 1, 2015
Nov 18, 2014
Dec 22, 2014
Mar 1, 2015
Nov 19, 2014
Aug 13, 2015
Aug 13, 2015
Mar 1, 2015
Nov 23, 2014
Nov 26, 2014
Aug 4, 2015
Mar 1, 2015
Jan 6, 2015

Repository files navigation

Bower Version

Juice - Mixins for Life

Simplify your life. Juice is a collection of Sass mixins/functions that are used to minimize the work needed to apply styling/properties to elements. Juice is not just a collection to help with cross browser support, so it is best paired with autoprefixer, for the best possible browser compatibility.

Documentation

http://kylebrumm.com/juice

Requirements:

  • Sass Version 3.3

Features:

Mixins

  • Breakpoints
  • Show/Hide Element
  • Single Side Border Radius
  • Single Transform
  • Box Emboss
  • Letterpress
  • Placeholder Color
  • Sizing
  • Hoverer
  • Responsive
  • Triangle
  • Circle
  • Square
  • Position
  • TRBL
  • Image Preload
  • Juice Prefixer

Helpers

  • Clearfix
  • Hide Text
  • Centerer
  • Vertical Centerer
  • Coverer
  • Center Block
  • Clean

Functions

  • Tint
  • Shade
  • Strip Units
  • Rem Calc
  • Em Calc
  • Random Color
  • Reverse String

Installation

You can use either bower or just clone the github repo directly.

Bower

$ bower install juice

Clone/Fork

$ git clone [email protected]:kjbrum/juice.git

Using the file

Just import the "_juice.scss" file into your main scss file:

@import "juice";

Compatibility Issues / Conflicts:

Bourbon
  • Position (mixin)
  • Single Side Border Radius (mixin)
  • Triangle (mixin)
  • Strip Units (function)
Compass
  • Single Side Border Radius (mixin)
  • Transforms (mixin)

Changelog:

1.0.1:
  • Fix box-emboss with prefixes issue
1.0.0:
  • Placeholders have been turned into argument-less mixins (helpers)
  • New mixins - Image Preload, show/hide, juice prefixer, clean
  • Global option (variable) to add cross browser prefixes
  • Added a few extra breakpoint presets (mostly -only options)
  • Fixed the breakpoint mixin so that the more complex queries actually work now

To-Do

  • Change the way mixins that take multiple values (trbl, size, etc..) are structured. (Make it so they don't require commas)

License

Copyright © Kyle Brumm. Juice is free to use on whatever and may be redistributed under the terms specified in the license.