Sha256: d6112b97ae4aca7368d111ee971e0491b8eb9c6dea65dfc3f8128e3832e7da5e

Contents?: true

Size: 1.55 KB

Versions: 10

Compression:

Stored size: 1.55 KB

Contents

@import "shared";

// These defaults make the arguments optional for this mixin
// If you like, set different defaults in your project

$default-text-shadow-color:    #aaa !default;
$default-text-shadow-h-offset: 0px  !default;
$default-text-shadow-v-offset: 0px  !default;
$default-text-shadow-blur:     1px  !default;

// Provides cross-browser text shadows when one or more shadows are needed.
// Each shadow argument should adhere to the standard css3 syntax for the
// text-shadow property.
@mixin text-shadow(
  $shadow-1 : default,
  $shadow-2 : false,
  $shadow-3 : false,
  $shadow-4 : false,
  $shadow-5 : false,
  $shadow-6 : false,
  $shadow-7 : false,
  $shadow-8 : false,
  $shadow-9 : false,
  $shadow-10: false
) {
  @if $shadow-1 == default {
    $shadow-1: $default-text-shadow-color $default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur;
  }
  text-shadow: compact($shadow-1, $shadow-2, $shadow-3,
                       $shadow-4, $shadow-5, $shadow-6,
                       $shadow-7, $shadow-8, $shadow-9, $shadow-10);
}

// Provides a single cross-browser CSS text shadow.
// Includes default arguments for color, horizontal offset, vertical offset, and blur
@mixin single-text-shadow(
  $color: $default-text-shadow-color,
  $hoff: $default-text-shadow-h-offset,
  $voff: $default-text-shadow-v-offset,
  $blur: $default-text-shadow-blur
) {
  // XXX I'm surprised we don't need experimental support for this property.
  @if $color == none {
    text-shadow: none;
  } @else {
    text-shadow: $color $hoff $voff $blur;
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
compass-0.12.2.rc.0 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.13.alpha.0 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.12.1 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.12.0 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.12.rc.1 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.12.rc.0 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.12.alpha.4 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.12.alpha.3 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.12.alpha.2 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
compass-0.12.alpha.1 frameworks/compass/stylesheets/compass/css3/_text-shadow.scss