• Stars
    star
    275
  • Rank 149,796 (Top 3 %)
  • Language
    CSS
  • License
    MIT License
  • Created about 10 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mixins for Life

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.

More Repositories

1

spotifyCurrentlyPlaying.js

Display your currently playing Spotify song(s) using Last.fm scrobbling.
CSS
85
star
2

500px-Connector

A WordPress plugin to display 500px photo streams.
PHP
10
star
3

justmy.scss

Another stupid SCSS framework, but it's just mine.
HTML
9
star
4

wordpress-angular-starter-theme

Integrating AngularJS into WordPress
PHP
6
star
5

web-agencies-worldwide

A massive list of web agencies all around the world.
6
star
6

SocialDig.js

Query data from your social profiles with ease.
HTML
6
star
7

nextjs-airtable

Simple app built with Next.js and Airtable.
JavaScript
5
star
8

Gulp-Project-Starter-Setup

Starter setup for using Gulp in a project.
JavaScript
5
star
9

alfred-is-vegan

Check if a food ingredient is vegan or not.
JavaScript
4
star
10

weave

Prototyping made easy.
CSS
3
star
11

pxtosvg

A simple WordPress plugin that will allow users to upload raster images and convert them to usable SVGs with a shortcode.
PHP
2
star
12

hide-business-insider-adblock-popup

Because it's just annoying
HTML
2
star
13

kraken-cli

Optimize images with the Kraken.io API.
Shell
2
star
14

do-trello-things

A Chrome extension for making Trello better.
JavaScript
2
star
15

storybook-twig-tailwind

JavaScript
2
star
16

tailwind-mix-twig-starter

JavaScript
1
star
17

wp-setup-script

A Bash script for setting up a WordPress site, using WP-CLI.
Shell
1
star
18

alfred-unsplash-source

Alfred 3 workflow to generate embed URLs for Unsplash photos.
JavaScript
1
star
19

alfred-workflows

A collection of my personal Alfred workflows
1
star
20

alfred-hipsum

Alfred 3 workflow to get hipster filler text.
JavaScript
1
star
21

stndp

A command line tool for doing daily stand-ups.
Shell
1
star
22

wp-shipit

PHP
1
star
23

weave-cli

CLI for use with Weave.
JavaScript
1
star