Sha256: b8737123e0db4f16c06540ff2466547ffbc5e8a55e572aa6906c34ad0f79eddd

Contents?: true

Size: 1.08 KB

Versions: 131

Compression:

Stored size: 1.08 KB

Contents

@import "../tokens/colors";
@import "../tokens/typography";

$pb_caption_colors: (
  default:        $text_lt_default,
  light:          $text_lt_light,
  link:           $primary,
  lighter:        $text_lt_lighter,
  success:        $success,
  error:          $error,
);

$pb_dark_caption_colors: (
  default:        $text_dk_default,
  light:          $text_dk_light,
  link:           $primary,
  success:        $success,
  error:          $error,
);


@mixin caption($font_size: $font_smaller, $font_weight: $bold) {
  font-weight: $font_weight;
  color: $text_lt_light;
  text-transform: uppercase;
  font-size: $font_size;
  letter-spacing: $lspace_looser;
}

@mixin caption_color($color: $text_lt_light) {
  color: $color;
}

@mixin caption_lg {
  @include caption($font_large, $regular);
}

@mixin caption_xs {
  @include caption($font_smaller, $regular);
  text-transform: none;
  letter-spacing: unset;
}

@mixin caption_dark {
  color: $text_dk_light;
}
@mixin pb_caption_kit_colors {
  @each $name, $color in $pb_caption_colors {
    &[class*="#{$name}"] {
      color: $color
    }
  }
}

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
playbook_ui-12.9.0 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0.pre.alpha.PLAY625phonenumberdark301 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0.pre.alpha.PLAY625phonenumberdark300 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0.pre.alpha.PLAY649mapkitstyles299 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0.pre.alpha.PLAY645typescriptprogresstep298 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0.pre.alpha.PLAY645typescriptprogresstep297 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease296 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease295 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease294 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.8.0 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease293 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease292 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease291 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.7.1.pre.alpha.alpharubyrelease281 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.7.1.pre.alpha.menu2 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.7.1.pre.alpha.menu1 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.7.1 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.7.0 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.6.0.pre.alpha.sectionseparator1 app/pb_kits/playbook/pb_caption/_caption_mixin.scss
playbook_ui-12.6.0.pre.alpha.menuyml1 app/pb_kits/playbook/pb_caption/_caption_mixin.scss