Sha256: 098f4c6b076b0fabed6a0ae7f7bde8cf62732588b5a8bc615c0b827b7b77043a

Contents?: true

Size: 1.4 KB

Versions: 5

Compression:

Stored size: 1.4 KB

Contents

// ensure the core is loaded
@import "archetype/core";

// @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|h5bp|hybrid]
// @param     $force {Boolean} 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) {

  $unknown-method: "[archetype:base:unknown] the base method `base-#{$method}` does not exist or is not recognized";

  // ensure the mixin exists before we can call it
  @if mixin-exists('base-#{$method}') {
    // normalize
    @if $method == normalize {
      @include base-normalize($exclude: $exclude);
    }
    // html5 boiler plate
    @else if $method == h5bp {
      @include base-h5bp($exclude: $exclude);
    }
    // hyrbid reset (reset + some normalize)
    @else if $method == hybrid {
      @include base-hybrid($exclude: $exclude);
    }
    // custom (user set)
    @else if $method == custom {
      @include base-custom($exclude: $exclude);
    }
    // default to reset
    @else if $method == reset {
      @include base-reset($exclude: $exclude);
    }
    @else {
      @warn $unknown-method;
    }
  }
  @else {
    @warn $unknown-method;
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
archetype-base-1.0.0.alpha.5 stylesheets/archetype/base/_core.scss
archetype-base-1.0.0.alpha.4 stylesheets/archetype/base/_core.scss
archetype-base-1.0.0.alpha.3 stylesheets/archetype/base/_core.scss
archetype-base-1.0.0.alpha.2 stylesheets/archetype/base/_core.scss
archetype-base-1.0.0.alpha.1 /Users/eoneill/workspace/archetype/extensions/archetype-base/stylesheets/archetype/base/_core.scss