Skip to content

A platform for community discussion. Free, open, simple.

1.1 KB
Raw Blame
.ai-credit-allocation-status .fk-d-tooltip__trigger {
  width: 100%;
  display: block;
  cursor: auto;
}

.ai-credit-bar {
  --credit-bar-color: rgb(75, 192, 192, 0.8);
  margin-top: 0.5em;
  width: 100%;

  &__progress {
    height: 0.75rem;
    background: var(--primary-low);
    border-radius: var(--d-border-radius-large);
    overflow: hidden;
    margin-bottom: 0.25em;
    width: 100%;
  }

  &__fill {
    height: 100%;
    background: var(--credit-bar-color);
    transition: width 0.3s ease;
  }

  &__text {
    font-size: var(--font-down-1);
    color: var(--primary-high);
  }

  &--warning {
    .ai-credit-bar__fill {
      background: var(--danger);
    }
  }

  &--compact {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: 0;

    .ai-credit-bar__progress {
      flex: 1;
      margin-bottom: 0;
      min-width: 60px;
    }

    .ai-credit-bar__text {
      flex-shrink: 0;
      font-size: var(--font-down-2);
      white-space: nowrap;
    }
  }
}

.ai-credit-warning {
  margin-top: 0.5em;
  border-radius: var(--d-border-radius);
  font-size: var(--font-down-1);
}