Sha256: 05be766dc67fb470ed7f2863db20a8c9d1b2b8a116d92a56ff8e0f01ab9e989c

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

// Foundation for Sites
// https://get.foundation
// Licensed under MIT Open Source

////
/// @group prototype-bordered
////

/// Responsive breakpoints for bordered utility.
/// @type Boolean
$prototype-bordered-breakpoints: $global-prototype-breakpoints !default;

/// Default value for `prototype-border-width`
/// @type Number
$prototype-border-width: rem-calc(1) !default;

/// Default value for `prototype-border-type`
/// @type String
$prototype-border-type: solid !default;

/// Default value for `prototype-border-color` defaulted to `medium-gray`
/// @type Color
$prototype-border-color: $medium-gray !default;

/// Bordered Utility: Adds a light border to an element by default.
/// @param {Number} $width [$prototype-border-width] Width of the border
/// @param {String} $type [$prototype-border-type] Type of the border
/// @param {Color} $color [$prototype-border-color] Color of the border
@mixin bordered(
  $width: $prototype-border-width,
  $type: $prototype-border-type,
  $color: $prototype-border-color
) {
  border: $width $type $color;
}

@mixin foundation-prototype-bordered {
  .bordered {
    @include bordered;
  }

  @if ($prototype-bordered-breakpoints) {
    // Loop through Responsive Breakpoints
    @each $size in $breakpoint-classes {
      @include breakpoint($size) {
        @if $size != $-zf-zero-breakpoint {
          .#{$size}-bordered {
            @include bordered;
          }
        }
      }
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foundation-rails-6.9.0.0 vendor/assets/scss/prototype/_bordered.scss
foundation-rails-6.6.2.0 vendor/assets/scss/prototype/_bordered.scss