Skip to content

marioloncarek/sass-mixins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

sass-mixins

Useful sass mixins without bs

List of mixins included:

font-face

  • include local fonts easy
  • usage @include font-face('hk_grotesklight', '../fonts/hk-grotesk/hkgrotesk-light-webfont')

breakpoint

  • for mediquerys with singe argument
  • usage: @include breakpoint(xl){} or @include breakpoint(600px, min-width){} or @include breakpoint(number or predefined point, max-width(px)/min-width(px)/or any other feature){}
  • define variables for breakpoints before usage
  • demo: http://codepen.io/riogrande/pen/jqPJPO

breakpoints

  • for mediquerys with two breakpoint arguments
  • usage: @include breakpoints(400px, 600px){} or @include breakpoints(400px, 600px, 'only screen'){}
  • $media-type is disabled as default
  • demo: http://codepen.io/riogrande/pen/JXYPKY

box-sizing

  • usage: @include box-sizing;
  • with or without arguments, border-box is default

clearfix

  • usage: @include clearfix;
  • no arguments

transitions

border-radius-radius

border-radius-round

border-radius-custom

  • for defining only some rounded corners
  • usage: @include border-radius-custom; or @include border-radius-custom(5px, 5px, 0, 0);
  • second example above will give 5px border radius on top left and top right corner
  • demo: http://codepen.io/riogrande/pen/mPVprY

center

box-shadow

gradient

rotate

opacity

Installation

  • copy/paste to your project
  • include as partial

Licence

Do what ever you want

About

Useful sass mixins without bs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages