Sha256: f724e2eb90ec60f19a39b91eab2c1aa471d6b3876180f05c81e9dee936cf495e
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
// Foundation for Sites // https://get.foundation // 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: $white !default; /// Alternate text color for labels. /// @type Color $label-color-alt: $black !default; /// Coloring classes. A map of classes to output in your CSS, like `.secondary`, `.success`, and so on. /// @type Map $label-palette: $foundation-palette !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; border-radius: $label-radius; font-size: $label-font-size; line-height: 1; white-space: nowrap; cursor: default; } @mixin foundation-label { .label { @include label; background: $label-background; color: $label-color; @each $name, $color in $label-palette { &.#{$name} { background: $color; color: color-pick-contrast($color, ($label-color, $label-color-alt)); } } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foundation-rails-6.6.2.0 | vendor/assets/scss/components/_label.scss |