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-10.15.1.pre.alpha.rubocop.deps app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.15.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.14.1.pre.alpha2 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.14.1.pre.alpha1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.14.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.13.1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.13.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.12.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.11.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.10.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.9.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.8.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.7.1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.7.0 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_radio/_radio.scss
playbook_ui-10.6.0 app/pb_kits/playbook/pb_radio/_radio.scss