Sha256: f1c277d93f94f156b29031e2cef4725af6da42841eccd9e3a0ccb16c36da67a4

Contents?: true

Size: 1.52 KB

Versions: 6

Compression:

Stored size: 1.52 KB

Contents

@import "hacks";
@import "base/normalize";
@import "base/reset";
@import "base/hybrid";

// protect against multiple resets
$RESET_INIT: false !default;

// @category  base

// sets the base styles for the page (e.g. reset or normalize)
// @mixin     base
// @param     $exclude {List} the list of styles to exclude @see _normalize.scss and _reset.scss
// @param     $method {String} reset method [reset|normalize|hybrid]
// @param     $force {Bool} force reset to invoke; by default base() can only be invoked once, to re-invoke must pass in $force: true
@mixin base($exclude: $CONFIG_RESET_EXCLUDES, $method: $CONFIG_RESET_METHOD, $force: false) {
  @if not $RESET_INIT or $force {
    $RESET_INIT: true;
    // normalize
    @if $method == normalize {
      @include base-normalize($exclude: $exclude);
    }
    // hyrbid reset (reset + some normalize)
    @else if $method == hybrid {
      @include base-hybrid($exclude: $exclude);
    }
    // default to reset
    @else {
      @include base-reset($exclude: $exclude);
    }
  }
  @if $CONFIG_GLYPHS_AUTO and do-once("archetype/base#glyph") {
    @include base-glyph();
  }
}

@mixin base-glyph() {
  // the font-face mixin will likely change in a future version, keep an eye on this
  // https://github.com/chriseppstein/compass/issues/867
  @include font-face($CONFIG_GLYPHS_NAME, $CONFIG_GLYPHS_FILES, $CONFIG_GLYPHS_EOT, $CONFIG_GLYPHS_WEIGHT, $CONFIG_GLYPHS_STYLE);
}

// auto invoke base reset
@if $CONFIG_RESET_AUTO and do-once('archetype/base') {
  @include base($CONFIG_RESET_EXCLUDES);
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
archetype-0.0.1.pre.3.6ed259b stylesheets/archetype/_base.scss
archetype-0.0.1.pre.3.f9dde24 stylesheets/archetype/_base.scss
archetype-0.0.1.pre.3.00dfd9a stylesheets/archetype/_base.scss
archetype-0.0.1.pre.3.83f0d7a stylesheets/archetype/_base.scss
archetype-0.0.1.pre.3.55c4182 stylesheets/archetype/_base.scss
archetype-0.0.1.pre.3.811928f stylesheets/archetype/_base.scss