Sha256: 4eea56a8eca7530b367c812a4d1bf07e72a18879f5c2eff4d0add03a22412790

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

// ------------------------------------------------------ //
//    MATH & LAYOUT               												//
// ------------------------------------------------------ //

@function calc-em($target-px, $context) {
  @return ($target-px / $context) * 1em;
}

@mixin clearfix {
  &:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
  }
}

// ------------------------------------------------------ //
//    Background/Colors           												//
// ------------------------------------------------------ //

@mixin imprint {
  background: #141414;
  background: -moz-linear-gradient(top, #141414 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#141414), color-stop(100%,#070707));
  background: -webkit-linear-gradient(top, #141414 0%,#070707 100%);
  background: -o-linear-gradient(top, #141414 0%,#070707 100%);
  background: -ms-linear-gradient(top, #141414 0%,#070707 100%);
  background: linear-gradient(top, #141414 0%,#070707 100%);
  
  @include box-shadow((inset rgba(0,0,0,1) 1px 2px 3px));
  
  border-bottom: 1px solid rgba(255,255,255,.2);
}

// ------------------------------------------------------ //
//    Bourbon Mixins:                                     //
//  	Taken from thoughtbot's bourbon gem,                //
//    found here: https://github.com/thoughtbot/bourbon   //
// ------------------------------------------------------ //

  // ---- Box Shadow ------------------------------------ //
  @import 'bourbon/css3/box-shadow';
  
  // ---- Border Radius --------------------------------- //
  @import 'bourbon/css3/border-radius';

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ample_assets-0.0.7 app/assets/stylesheets/ample_assets/custom_mixins.scss
ample_assets-0.0.6 app/assets/stylesheets/ample_assets/custom_mixins.scss
ample_assets-0.0.4 app/assets/stylesheets/ample_assets/custom_mixins.scss
ample_assets-0.0.3 app/assets/stylesheets/ample_assets/custom_mixins.scss
ample_assets-0.0.2 app/assets/stylesheets/ample_assets/custom_mixins.scss
ample_assets-0.0.1 app/assets/stylesheets/ample_assets/custom_mixins.scss