Sha256: c050a8be0738125c735c6f704384887f21787a6d3a60c554eca40e4abaa45a95

Contents?: true

Size: 1.53 KB

Versions: 126

Compression:

Stored size: 1.53 KB

Contents

@import "../tokens/colors";
@import "../tokens/spacing";
@import "../tokens/opacity";
@import "./section_separator_mixin";

$section_colors_light: (
  background:   $bg_light,
  card:         $card_light,
);

$section_colors_dark: (
  background:   $bg_dark,
  card:         tint($bg_dark,10),
);

[class^=pb_section_separator_kit] {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  @each $color_name, $color_value in $section_colors_light {
    &[class*=_#{$color_name}] {
      span {
        display: inline-block;
        padding: 0 $space_xs;
        background: #{$color_value};
        position: relative;
        z-index: 1;
      }
    }
  }
  &::after {
    @include section_separator_horizontal(false);
  }
  &[class*=_horizontal] {
    justify-content: center;
  }
  &[class*=_vertical] {
    margin-left: $space_xs;
    margin-right: $space_xs;
    &::after {
      @include section_separator_vertical(false);
    }
  }

  // Dark =========================

  &.dark {
    &::after {
      @include section_separator_horizontal(true);
    }
    @each $color_name, $color_value in $section_colors_dark {
      &[class*=_#{$color_name}] {
        span {
          display: inline-block;
          padding: 0 $space_xs;
          background: #{$color_value};
          position: relative;
          z-index: 1;
        }
      }
    }
    &[class*=_vertical] {
      margin-left: $space_xs;
      margin-right: $space_xs;
      &::after {
        @include section_separator_vertical(true);
      }
    }
  }
}

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.6.0 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.5.0 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.4.0.pre.alpha.rubytheme1 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.4.0 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.3.0 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.2.7 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.2.6 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.2.5 app/pb_kits/playbook/pb_section_separator/_section_separator.scss
playbook_ui-11.2.4 app/pb_kits/playbook/pb_section_separator/_section_separator.scss