@import '../../../base/style.less';
  .iot-switch {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: var(--card-margin-size);
    width: var(--card-width-size);
    height: auto;
    border: var(--card-border);
    padding: var(--card-padding-TD);
    background: var(--card-bg-color);
    border-radius: var(--card-border-radius-size);

    .switch-left {
      display: flex;
      flex-direction: row;
      align-items: center;
      flex: var(--card-letf-flex);

      .switch-icon {
        margin: var(--icon-margin-all);
        width: var(--icon-width-size);
        height: var(--icon-height-size);
        display: flex;
        flex: 0 0 var(--icon-width-size);
        flex-direction: row;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: var(--icon-bg-color);

        .switch-icon-image {
          display: inline-block;
          width: var(--icon-inside-width);
          height: var(--icon-inside-height);
          font-size: var(--icon-inside-font-size);
          color: var(--icon-inside-color);
        }
      }

      .switch-title {
        .switch-main {
          overflow: hidden;
          font-family: var(--title-font-family);
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          font-size: var(--title-font-size);
          color: var(--title-font-color);
          line-height: var(--title-font-height);
          font-weight: var(--title-font-weight);

        }

        .switch-sub {
          overflow: hidden;
          display: -webkit-box;
          font-family: var(--subtitle-font-family);
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          margin-top: var(--subtitle-margin-Top);
          font-size: var(--subtitle-font-size);
          color: var(--subtitle-font-color);
          line-height: var(--subtitle-font-height);
        }

      }
    }

    .switch-right {
      position: relative;
      flex: var(--card-right-flex);
      display: flex;
      justify-content: flex-end;

      /* background-color: yellow; */
      .switch-btn {
        // transition: position ease .5s;
        position: relative;
        display: flex;
        align-items: center;
        margin-right: var(--operation-margin-LR);
        // width: var(--switch-width-size);
        // height: var(--switch-height-size);
        font-size: var(--enter-font-size);
        border-radius: var(--switch-round-angle);

        .switch-ball {
          box-shadow: 0;
          transition: all ease .5s;
          position: absolute;
          width: var(--ball-width-size);
          height: var(--ball-height-size);
          background: var(--ball-bg-color);
          box-shadow: var(--ball-shadow-round);
          border-radius: 50%;
        }
      }

      .switch-btn-on {
        background: var(--switch-on-bgcolor);

        .switch-ball {
          right: var(--ball-margin-LR);
        }
      }

      .switch-btn-off {
        background: var(--switch-off-bgcolor);

        .switch-ball {
          left: var(--ball-margin-LR);
        }
      }
    }
  }