@import '../styles/themes/themes.less';

.@{bk-prefix}-infobox {
  font-size: @font-size-base;

  .@{bk-prefix}-modal-wrapper {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    .@{bk-prefix}-modal-body {
      min-height: 176px;

      .@{bk-prefix}-modal-content { 
        color: @default-color;
        font-size: @font-size-medium;
      }
    }

  }

  &.no-content-infobox {
    .@{bk-prefix}-modal-content {
      display: none;
    }
  }
}

.@{bk-prefix}-infobox-header {
  padding-top: 24px;
}

.@{bk-prefix}-infobox-type {
  display: flex;
  justify-content: center;
  align-items: center;
}

.@{bk-prefix}-infobox-icon {
  width: 42px;
  height: 42px;
  font-size: 42px;

  &.success {
    color: @success-color;
  }

  &.warning {
    color: @warning-color;
  }

  &.danger {
    color: @danger-color;
  }

  &.loading {
    color: @primary-color;
  }
}

.@{bk-prefix}-infobox-title {
  padding-right: 24px;
  padding-left: 24px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 32px;
  color: #313238;
}

.@{bk-prefix}-infobox-content {
  padding-left: 24px;
  padding-right: 24px;
  margin-top: 16px;

  &.set-bg-color {
    background-color: @sub-title-bg-color;
    margin-left: 32px;
    margin-right: 32px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

.@{bk-prefix}-infobox-footer {
  display: flex;
  padding-right: 24px;
  padding-bottom: 24px;
  padding-left: 24px;
  margin-top: 24px;
  align-content: center;

  &.is-position-right {
    justify-content: right;
  }

  &.is-position-center {
    justify-content: center;
  }

  &.is-position-left {
    justify-content: left;
  }

  .@{bk-prefix}-button {
    min-width: 88px;
    & ~ .@{bk-prefix}-button {
      margin-left: 8px;
    }
  }
}
