Sha256: 680ca54b8a47b125c9c3e2cc90ca46cd4c8dfdba8092c5d900d5faf6174e95f9

Contents?: true

Size: 521 Bytes

Versions: 39

Compression:

Stored size: 521 Bytes

Contents

$borders-data: (
  base: 1px solid color(sky),
  dark: 1px solid color(sky, dark),
  transparent: 1px solid transparent
);

/// Returns the default border.
/// @param {String} $variant [base] - The border variant key.
/// @return {List} The border value.

@function border($variant: base) {
  $fetched-value: map-get($borders-data, $variant);

  @if $fetched-value {
    @return $fetched-value;
  } @else {
    @error 'Border variant `#{$variant}` not found. Available variants: #{available-names($borders-data)}';
  }
}

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
polaris_view_helpers-0.0.22 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.21 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.20 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.19 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.18 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.17 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.16 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.15 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.14 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.13 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.12 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.11 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.10 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.9 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.8 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.7 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.6 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.5 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss
polaris_view_helpers-0.0.4 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss