Sha256: a5c3c04ea8c28c96799ffc1d2390e7eef486307d3e322a929eb6420f57cb6be9

Contents?: true

Size: 1.44 KB

Versions: 3

Compression:

Stored size: 1.44 KB

Contents

// @category   ui/layout

// throw an error if archetype/ui has not been registered
$a-blackhole: require-archetype-modules(archetype/ui);

// additional non-standard compass features required in this module
@import "compass/layout/stretching";

// makes your element centered vertically and horizontally in a parent element
// @mixin   centered-box
@mixin centered-box() {
  @include stretch();
  margin: auto;
}

// mixin for generating a fade box which fades from transparent to white
// @mixin     fade-box
// @param     $width {String} the width of the overlay
// @param     $height {String} the height of the overlay
// @param     $direction {String} top=vertical left=horizontal
// @param     $from {Color} the start color
// @param     $to {Color} the end color
@mixin fade-box($width: 100%, $height: 100%, $direction: top, $from: rgba(255,255,255,0.4), $to: rgba(255,255,255,1)) {
  @if support-legacy-browser('ie', '8', $threshold: $critical-usage-threshold) {
    @if $direction == left {
      @include ie-filter(gradient(startColorstr=ie-hex-str($from), endColorstr=ie-hex-str($to), GradientType=1));
    }
    @else {
      @include ie-filter(gradient(startColorstr=ie-hex-str($from), endColorstr=ie-hex-str($to)));
    }
  }
  @include background-image(linear-gradient($direction, $from, $to) );
  @include pseudo-element($width: $width, $height: $height, $position: absolute);
  text-align: center;
  bottom: 0;
  #{if($direction == left, right, left)}: 0;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
archetype-1.0.0.alpha.3 stylesheets/archetype/ui/_layout.scss
archetype-1.0.0.alpha.2 stylesheets/archetype/ui/_layout.scss
archetype-1.0.0.alpha.1 stylesheets/archetype/ui/_layout.scss