@import "../plugins/theme-variables.scss";
@import "~element-ui/packages/theme-chalk/src/mixins/mixins";
@import "~element-ui/packages/theme-chalk/src/mixins/utils";
@import "~element-ui/packages/theme-chalk/src/mixins/button";
@import "~element-ui/packages/theme-chalk/src/radio";

/* ---- jellies radio overrides (self-contained; ships with the component) ---- */

/* label.el-radio beats element's `.el-radio{display:inline-block}` so the flex centring actually applies (incl. is-bordered). */
label.el-radio {
  display: inline-flex;
  align-items: center;
  white-space: normal;
}
.el-radio__input {
  margin: 0;
  line-height: 1;
  .el-radio__inner {
    display: block;
  }
}
.el-radio__label {
  line-height: 1.45;
}
.el-radio.radio-small {
  &.is-bordered {
    height: 42px;
  }
  .el-radio__label {
    font-size: 16px;
    line-height: 21px;
  }
  .el-radio__inner {
    width: 16px;
    height: 16px;
    &:after {
      width: 5px;
      height: 5px;
    }
  }
}
.el-radio.radio-medium {
  &.is-bordered {
    height: 44px;
  }
  .el-radio__label {
    font-size: 18px;
    line-height: 23px;
  }
  .el-radio__inner {
    width: 18px;
    height: 18px;
    &:after {
      width: 6px;
      height: 6px;
    }
  }
}
.el-radio.radio-large {
  &.is-bordered {
    height: 46px;
  }
  .el-radio__label {
    font-size: 20px;
    line-height: 25px;
  }
  .el-radio__inner {
    width: 20px;
    height: 20px;
    &:after {
      width: 7px;
      height: 7px;
    }
  }
}
.el-radio.full-width {
  width: 100%;
  height: auto !important;
}
.el-radio.is-bordered {
  padding: 9px 20px 9px 10px !important;
}
