Sha256: e05e73a727ab223630fce2439b63d505b67df11ce3e76a6fee327c40eba1e690

Contents?: true

Size: 1.49 KB

Versions: 125

Compression:

Stored size: 1.49 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;
    left: $offscreen;
    &:checked, &:focus {
      & ~ .pb_radio_button {
        border: 6px solid $primary;
      }
    }
  }

  &.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

125 entries across 125 versions & 1 rubygems

Version Path
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.3.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.7 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.6 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.5 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.4 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.4.pre.alpha1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.3 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.2 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.2.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.1.2 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.1.2.pre.alpha1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.1.1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.1.1.pre.alpha1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.1.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.0.1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.0.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.0.0.pre.alpha.2 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-11.0.0.pre.alpha.1 app/pb_kits/playbook/pb_radio/_radio.scss