Sha256: 1d4ed9dd8c31f1fb087c740f47194ab6076416299273af71a4b39a9f138fbf67

Contents?: true

Size: 1.63 KB

Versions: 87

Compression:

Stored size: 1.63 KB

Contents

@import "../tokens/colors";
@import "../tokens/transition";
$transition: $transition_cubic;

[class^=pb_checkbox_kit] {
  display: inline-flex;
  cursor: pointer;
  .pb_checkbox_label {
    padding-left: $space_xs;
    cursor: pointer;
    font-size: $text_lt_default;
    user-select: none;
  }
  .pb_checkbox_checkmark {
    position: relative;
    height: 22px;
    width: 22px;
    border: solid $border_light 2px;
    border-radius: $border_rad_light;
    transition: background $transition_default ease, border-color $transition_default ease;
    .check_icon {
      opacity: 0;
      position: relative;
      top: -2px;
      left: 1px;
      height: 16px;
      width:16px;
      color: $white;

    }
  }
  @media (hover:hover) {
    &:hover input ~ .pb_checkbox_checkmark {
      border-color: $primary_action;
    }
  }

  input {
    position: relative;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    display: none;
    &:checked ~ .pb_checkbox_checkmark {
      background-color: $primary_action;
      border-color: $primary_action;
    }
    &:checked ~ .pb_checkbox_checkmark {
      display: inline-block;
      .check_icon{
        opacity: $opacity_10;
      }
    }
  }



  &[class*=_dark] {
    input:checked ~ .pb_checkbox_checkmark {
      background-color: $primary_action;
      border-color: $primary_action;
    }

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

    &.error {
      > .pb_checkbox_checkmark {
        border-color: $error_dark;
      }
    }
  }

  &.error {
    > .pb_checkbox_checkmark {
      border-color: $error;
    }
  }
}

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
playbook_ui-7.16.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.15.1 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.15.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.14.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.13.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.12.1 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.12.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.11.1 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.11.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.10.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.9.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.8.4 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.8.3 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.8.2 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.8.1 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.8.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_checkbox/_checkbox.scss
playbook_ui-7.7.0 app/pb_kits/playbook/pb_checkbox/_checkbox.scss