Sha256: 7f8723759d704e6d75e12b61e628332263a62921c8e53e8aebdd1bebbc280bc9

Contents?: true

Size: 801 Bytes

Versions: 8

Compression:

Stored size: 801 Bytes

Contents

// Label mixins

// Default: 20px
// Large: 24px
// Inline: em based

@mixin labels-base {
  display: inline-block;
  // stylelint-disable-next-line primer/spacing
  padding: 0 7px;
  font-size: $font-size-small;
  font-weight: $font-weight-semibold;
  line-height: 18px;
  white-space: nowrap;
  border: $border-width $border-style transparent;
  border-radius: 2em;
}

@mixin labels-large {
  // stylelint-disable-next-line primer/spacing
  padding-right: 10px;
  // stylelint-disable-next-line primer/spacing
  padding-left: 10px;
  line-height: 22px;
}

// Inline
//
// Doesn't increase height of parent element
// Can be used with different font-sizes

@mixin labels--inline {
  display: inline;
  // stylelint-disable-next-line primer/spacing
  padding: 0.12em $em-spacer-5;
  font-size: 85%;
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-v4-theme-primer-0.16.0 _sass/@primer/css/labels/mixins.scss
jekyll-v4-theme-primer-0.15.0 _sass/@primer/css/labels/mixins.scss
jekyll-v4-theme-primer-0.14.0 _sass/@primer/css/labels/mixins.scss
jekyll-v4-theme-primer-0.13.0 _sass/@primer/css/labels/mixins.scss
jekyll-v4-theme-primer-0.12.0 _sass/@primer/css/labels/mixins.scss
jekyll-v4-theme-primer-0.11.0 _sass/@primer/css/labels/mixins.scss
jekyll-v4-theme-primer-0.10.0 _sass/@primer/css/labels/mixins.scss
jekyll-v4-theme-primer-0.9.0 _sass/@primer/css/labels/mixins.scss