Sha256: ec18c633367c04cd3a213eaf3dda21289d9d5df1df4fab01c3151ed34f3fa8f6

Contents?: true

Size: 746 Bytes

Versions: 12

Compression:

Stored size: 746 Bytes

Contents

  // Create CSS Triangles in a Breeze

  @mixin cssTriangle($triangleSize, $triangleColor, $triangleDirection) {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: solid $triangleSize;
    @if ($triangleDirection == top) {
      border-color: $triangleColor transparent transparent transparent;
    }
    @if ($triangleDirection == bottom) {
      border-color: transparent transparent $triangleColor transparent;
    }
    @if ($triangleDirection == left) {
      border-color: transparent transparent transparent $triangleColor;
    }
    @if ($triangleDirection == right) {
      border-color: transparent $triangleColor transparent transparent;
    }
    // .example { @include cssTriangle(5px, #fff, bottom); }
  }

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
zurb-foundation-3.2.5 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.2.4 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.2.4.rc1 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.2.3 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.2.2 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.2.0 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.2.0.rc3 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.2.0.rc2 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.2.0.rc1 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.1.1 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.1.0 scss/foundation/mixins/_css-triangle.scss
zurb-foundation-3.1.0.rc1 scss/foundation/mixins/_css-triangle.scss