Sha256: bdae78c4379b3ee051cf100e4221829ed31bbfa45d08c7e792385bea13703d8a

Contents?: true

Size: 1.52 KB

Versions: 33

Compression:

Stored size: 1.52 KB

Contents

@import "../tokens/colors";
@import "../tokens/spacing";
@import "../tokens/positioning";
@import "../pb_body/body";
@import "../tokens/transition";

[class^=pb_radio_kit] {
  display: inline-flex;
  cursor: pointer;

  .pb_radio_button {
    width: 22px;
    min-width: 22px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 1000px;
    border: 2px solid $border_light;
    margin-right: $space_xs;
    transition-property: border-color, border;
    transition-duration: $transition_short;
    transition-timing-function: $easeIn;
  }

  @media (hover:hover) {
    &:hover, &:focus {
      .pb_radio_button {
        border-color: $primary_action;
      }
    }
  }

  input {
    position: relative;
    width: 0;
    left: $offscreen;
    &:checked, &:focus {
      & ~ .pb_radio_button {
        border: 6px solid $primary;
      }
    }
  }

  &[class*=vertical] {
    flex-direction: column;
    align-items: center;
    .pb_radio_button {
      margin-right: 0px;
      margin-bottom: $space_xs;
    }
  }

  &.dark {
    .pb_radio_button {
      border-color: $border_dark;
    }
    input {
      &:checked, &:focus {
        & ~ .pb_radio_button {
          border: 6px solid $primary;
        }
      }
    }

    @media (hover:hover) {
      &:hover, &:focus {
        .pb_radio_button {
          border-color: $primary_action;
        }
      }
    }
    &.error {
      > .pb_radio_button {
        border-color: $error_dark;
      }
    }
  }
  &.error {
    > .pb_radio_button {
      border-color: $error;
    }
  }
}

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
playbook_ui-12.3.1.pre.alpha.phone1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-12.3.1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-12.3.0.pre.alpha.patchtest1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-12.3.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-12.2.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-12.1.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-12.0.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.20.0.pre.alpha.passthrough1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.20.0.pre.alpha.railsdialog1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.20.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.19.0.pre.alpha.map1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.19.0.pre.alpha.pagpassthrough1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.19.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.18.0.pre.alpha.pagutility1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.19.0.pre.typeahead1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.18.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.17.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.15.0.pre.alpha.dependencies1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.16.0.pre.alpha.paginationrails1 app/pb_kits/playbook/pb_radio/_radio.scss