@import "../style/var.less";
@import "../style/base.less";
@import "../style/mixin/setOnepx.less";

.fe-actionsheet {
  position: relative;
  &-header {
    font-weight: 500;
    font-size: 16px;
    line-height: 44px;
    text-align: center;
    &-icon {
      font-size: 18px;
      top: 12px;
      right: 12px;
      position: absolute !important;
      z-index: 1;
      color: #c8c9cc;
      font-size: 16px;
      cursor: pointer;
    }
  }
  &-description {
    padding: 8px 16px;
    color: #646566;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
  }
  &-cell {
    position: relative;
    padding: 14px 16px;
    text-align: center;
    font-size: 16px;
    background-color: #fff;
    &:before {
      .setTopLine(#eee);
    }
    &.active {
      color: #000;
      &:after {
        color: #1890ff;
        content: "\ec92";
        font-family: "feart";
        float: right;
      }
    }
    &:first-of-type {
      &:before {
        display: none;
      }
    }
    .item-content {
      flex: 1;
      position: relative;
      display: inline-block;
      .fe-ellipsis {
        display: inline-block;
        max-width: 280px;
        vertical-align: middle;
      }
      .fe-badge {
        position: absolute;
        top: 0;
        left: calc(100% + 10px);
      }
    }
  }

  .fe-actionsheet-primary {
    color: #1990fa;
  }
  .fe-actionsheet-warn {
    color: #f4333c;
  }
  .fe-actionsheet-default {
    color: #333;
  }
  .fe-actionsheet-disabled {
    color: #ccc;
    cursor: not-allowed;
  }
  &-alignLeft {
    text-align: left;
    padding-left: 16px;
    display: flex;

    .fe-actionsheet-icon {
      &-left {
        margin-right: 6px;
      }
      &-right {
        margin-left: 6px;
      }
    }
  }
  &-default {
    color: #333;
  }
  &-cancel {
    display: block;
    width: 100%;
    padding: 0;
    font-size: 16px;
    line-height: 46px;
    text-align: center;
    background-color: #fff;
    border: none;
    cursor: pointer;
    &:before {
      display: block;
      height: 8px;
      background-color: #f7f8fa;
      content: " ";
    }
  }
}
