@charset "utf-8";
@import "../helpers/index";
/**
 * Checkbox
 * --------------------------------------------------
 */
.item-checkbox{
  background-color: transparent;
  height: 20px;
  padding:0;
}

.checkbox{
  cursor: pointer;
  position: relative;
  //left: 0px;
  //right: 0px;
  z-index: 3;
  @extend .flex;
  @extend .items-center;

  & ion-checkbox{
    margin-right:10px;
    position: static;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
    border: 0;
    background: 0 0;
    -webkit-appearance: none;

    & .checkbox-icon{
      display: table;
      width: 100%;
      height: 100%;
      //border-width: 1px;
      @include border-width(1px);
      .platform-android4 &,.platform-android5 &,.platform-android6 &{
        @include border-width(1px,'',true);
      }

      border-style: solid;
      border-color: $primary;
      border-radius: 3px;
      background: 0 0;
      content: ' ';
      -webkit-transition: background-color 20ms ease-in-out;
      transition: background-color 20ms ease-in-out;
    }

    & .checkbox-icon.checkbox-checked{
      background: $primary;
      border-color: $primary;
    }

    & .checkbox-inner{
      -webkit-transition: opacity .05s ease-in-out;
      transition: opacity .05s ease-in-out;
      -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      transform: rotate(-45deg);
      position: absolute;
      top: 25%;
      left: 15%;
      display: table;
      width: 13px;
      height: 6px;
      border: 2px solid #fff;
      border-top: 0;
      border-right: 0;
      content: ' ';
      opacity: 0;
    }

    & .checkbox-checked .checkbox-inner {
      opacity: 1;
    }
  }
}