discourse/plugins/discourse-ai/assets/stylesheets/modules/llms/common/ai-credit-bar.scss
Keegan George e6ab9ba524
DEV: Separate usage for models with credit allocations (#36542)
## 🔍 Overview

We want to show usage for models with credit allocations separately.

## 📷 Screenshots

<img width="624" height="568" alt="image"
src="https://github.com/user-attachments/assets/5f75399f-e17a-43b4-95b0-77d40bfd77ae"
/>
2025-12-08 12:10:07 -08:00

62 lines
1.1 KiB
SCSS
Vendored

.ai-llm-list__credit-allocation .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);
}