Sha256: 5756f167e08423479a2478c0b4732e97b2d542dfe50061d78576cb2cf758fbc6

Contents?: true

Size: 1.32 KB

Versions: 69

Compression:

Stored size: 1.32 KB

Contents

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

[class^=pb_link_kit]{
  @include pb_link($primary);
  &:hover {
    color: $text_lt_default;
  }
  &:focus {
    outline: none;
  }
  &:focus-visible {
    border-radius: $border_rad_light;
    outline: 1px solid $primary;
    outline-offset: 2px;
  }
  &:visited {
    color: darken($primary_action, 10%);
  }
  &.dark  {
    @include pb_link($active_dark);
    &:hover {
      color: $text_dk_default;
    }
  }
  @each $color_name, $color_value in $pb_link_colors {
    &[class*=_#{"" + $color_name}] {
      @include pb_link($color_value);

      &:hover {
        color: map-get($pb_link_hover_colors, $color_name);
      }

      &:visited {
        color: darken($primary_action, 10%);
      }
    }
  }

  @each $dark_color_name, $dark_color_value in $pb_dark_link_colors{
    &[class*=_#{$dark_color_name}][class*=dark]{
      @include pb_link($dark_color_value);
      
      &:hover {
        color: map-get($pb_dark_link_hover_colors, $dark_color_name);
      }

      &:visited {
        color: darken($primary_action, 10%);
      }
    }
  }

  &[class*=_underline] {
    text-decoration: underline;
  }

  &[class*=_disabled] {
    pointer-events: none;
    cursor: default;
    color: $text_lt_lighter;
  }

}

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.11.0.pre.rc.11 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.11.0.pre.rc.10 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5214 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5213 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5210 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5208 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5207 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play16825206 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5204 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5201 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.11.0.pre.rc.9 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5200 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.11.0.pre.rc.8 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.11.0.pre.rc.7 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.11.0.pre.rc.6 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.11.0.pre.rc.5 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5193 app/pb_kits/playbook/pb_link/_link.scss
playbook_ui-14.11.0.pre.rc.4 app/pb_kits/playbook/pb_link/_link.scss