@import "../../themes/ionic.globals";

// Toggle
// --------------------------------------------------

ion-toggle {
  display: inline-block;

  contain: content;

  touch-action: none;
  user-select: none;
}

ion-toggle ion-gesture {
  display: block;

  width: 100%;
  height: 100%;

  visibility: inherit;
}

.toggle-cover {
  @include position-horizontal(0, null);

  position: absolute;
  top: 0;

  width: 100%;
  height: 100%;

  border: 0;
  outline: none;

  font-family: inherit;
  font-style: inherit;
  font-variant: inherit;

  line-height: 1;
  text-transform: none;

  background: transparent;
  cursor: pointer;
}

ion-toggle input {
  @include position(0, null, null, 0);
  @include margin(0);

  position: absolute;

  width: 100%;
  height: 100%;

  background: transparent;
  cursor: pointer;
  border: 0;

  pointer-events: none;
  // touch-action: pan-x;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

ion-toggle :focus {
  outline: none;
}

.toggle-key input {
  border: 2px solid #5e9ed6;
}
