Sha256: 7e8cc8607809164c37874506a23e8f1e30819a43aea1cf303f64fe4b220f581b

Contents?: true

Size: 1.43 KB

Versions: 122

Compression:

Stored size: 1.43 KB

Contents

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

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

$pb_dark_body_colors: (
  default:        $text_dk_default,
  light:          $text_dk_light,
  lighter:        $text_dk_lighter,
  error:          $error,
  success:        $text_dk_success_sm,
);

// Order is important here!
$pb_body_status: (
  default:        $text_lt_default,
  negative:       $error,
  dark_error:     $error_dark_body,
  positive:       $text_lt_success_sm,
);

@mixin pb_body($color: $text_lt_default) {
  line-height: $lh_tight;
  color: $color;
  font-size: $text_default;
  font-weight: $regular;
  font-family: $font-family-base;
}


// Colors ======================
@mixin pb_body_light {
  @include pb_body($text_lt_light);
}

@mixin pb_body_lighter {
  @include pb_body($text_lt_lighter);
}

@mixin pb_body_dark {
  @include pb_body($text_dk_default);
}

@mixin pb_body_light_dark {
  @include pb_body($text_dk_light);
}

@mixin pb_body_lighter_dark {
  @include pb_body($text_dk_lighter);
}

// Statuses =====================
@mixin pb_body_negative {
  @include pb_body($error);
}

@mixin pb_body_dark_error {
  @include pb_body($error_dark_body);
}

@mixin pb_body_positive {
  @include pb_body($success);
}

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
playbook_ui-12.32.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0.pre.alpha.hoverrails951 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0.pre.alpha.hoverrails948 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0.pre.alpha.multilevelnopillsdesigns944 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0.pre.alpha.multilevelnopillsdesigns941 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0.pre.alpha.PLAY814removemomentjs935 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0.pre.alpha.PLAY814removemomentjs933 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0.pre.alpha.datepickerdisableddatefix931 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0.pre.alpha.customiconsfa928 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.31.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.1.pre.alpha.play846responsivespacingglobalpropsneedsdefault924 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop917 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop916 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.1.pre.alpha.hovertesting914 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop912 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.1.pre.alpha.PLAY802responsivetitlekit909 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.0.pre.alpha.PLAY906multilevelselectedidsprop902 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.30.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.29.0.pre.alpha.play716popoverkitcloseonclickissue893 app/pb_kits/playbook/pb_body/_body_mixins.scss