Sha256: 61e703d37fa7857d5b6cc3f780d5d147123fe8320c49f63efd0110fbdac2c4d1

Contents?: true

Size: 1.12 KB

Versions: 13

Compression:

Stored size: 1.12 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group label
////

/// Default background color for labels.
/// @type Color
$label-background: $primary-color !default;

/// Default text color for labels.
/// @type Color
$label-color: foreground($label-background) !default;

/// Default font size for labels.
/// @type Number
$label-font-size: 0.8rem !default;

/// Default padding inside labels.
/// @type Number
$label-padding: 0.33333rem 0.5rem !default;

/// Default radius of labels.
/// @type Number
$label-radius: $global-radius !default;

/// Generates base styles for a label.
@mixin label {
  display: inline-block;
  padding: $label-padding;
  font-size: $label-font-size;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  border-radius: $label-radius;
}

@mixin foundation-label {
  .label {
    @include label;

    background: $label-background;
    color: $label-color;

    @each $name, $color in $foundation-colors {
      @if $name != primary {
        &.#{$name} {
          background: $color;
          color: foreground($color);
        }
      }
    }
  }
}

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
locomotivecms_wagon-2.4.0.rc2 generators/foundation/public/stylesheets/foundation6/components/_label.scss
locomotivecms_wagon-2.4.0.rc1 generators/foundation/public/stylesheets/foundation6/components/_label.scss
locomotivecms_wagon-2.3.0 generators/foundation/public/stylesheets/foundation6/components/_label.scss
locomotivecms_wagon-2.3.0.rc1 generators/foundation/public/stylesheets/foundation6/components/_label.scss
locomotivecms_wagon-2.2.0 generators/foundation/public/stylesheets/foundation6/components/_label.scss
locomotivecms_wagon-2.2.0.rc3 generators/foundation/public/stylesheets/foundation6/components/_label.scss
locomotivecms_wagon-2.2.0.rc2 generators/foundation/public/stylesheets/foundation6/components/_label.scss
locomotivecms_wagon-2.2.0.rc1 generators/foundation/public/stylesheets/foundation6/components/_label.scss
foundation-rails-6.1.2.0 vendor/assets/scss/components/_label.scss
foundation-rails-6.1.1.3 vendor/assets/scss/components/_label.scss
foundation-rails-6.1.1.2 vendor/assets/scss/components/_label.scss
foundation-rails-6.1.1.1 vendor/assets/scss/components/_label.scss
foundation-rails-6.1.1.0 vendor/assets/scss/components/_label.scss