mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
| Then | Now | |--------|--------| | <img width="874" height="456" alt="CleanShot 2026-08-06 at 11 20 27@2x" src="https://github.com/user-attachments/assets/7ff503be-6b12-4307-b118-76d0c130d0c1" /> | <img width="1138" height="464" alt="CleanShot 2026-08-06 at 11 20 09@2x" src="https://github.com/user-attachments/assets/9c8971d4-19cb-44dc-befa-3cead37d9431" /> |
185 lines
3.6 KiB
SCSS
Vendored
185 lines
3.6 KiB
SCSS
Vendored
// Styles for the Support section of the redesigned admin dashboard. Layout
|
|
// primitives (.db-section__*, .db-delta, .db-pill, .db-whos-posting__*) are
|
|
// owned by core; only Support-specific rules live here.
|
|
|
|
$db-bar-height: var(--space-2);
|
|
|
|
.db-support__filter {
|
|
.select-kit.multi-select.multiple-categories-selector {
|
|
max-width: 220px;
|
|
}
|
|
}
|
|
|
|
.db-support-outcomes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
container-type: inline-size;
|
|
container-name: db-support-outcomes;
|
|
|
|
&__bars {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, auto) minmax(120px, 1fr) 2.5rem;
|
|
gap: var(--space-2);
|
|
|
|
@container db-support-outcomes (width < 22rem) {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-3);
|
|
}
|
|
}
|
|
|
|
&__row {
|
|
display: grid;
|
|
grid-column: 1 / -1;
|
|
grid-template-columns: subgrid;
|
|
align-items: center;
|
|
|
|
@container db-support-outcomes (width < 22rem) {
|
|
grid-template-columns: 1fr auto;
|
|
gap: 0 var(--space-2);
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
min-width: 0;
|
|
color: var(--primary);
|
|
|
|
&:visited {
|
|
color: var(--primary);
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: var(--primary);
|
|
}
|
|
|
|
@container db-support-outcomes (width < 22rem) {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
|
|
&__track {
|
|
height: $db-bar-height;
|
|
border-radius: var(--d-border-radius-fixed);
|
|
background: var(--primary-low);
|
|
}
|
|
|
|
&__fill {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: var(--d-border-radius-fixed);
|
|
|
|
&.--resolved {
|
|
background: var(--success);
|
|
}
|
|
|
|
&.--in-progress {
|
|
background: var(--tertiary-medium);
|
|
}
|
|
|
|
&.--unanswered {
|
|
background: var(--danger);
|
|
}
|
|
}
|
|
|
|
&__share {
|
|
color: var(--primary-medium);
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: end;
|
|
line-height: 1;
|
|
}
|
|
}
|
|
|
|
// Reuse the who's-posting bar layout, recolouring fills per answerer group.
|
|
.db-support-answerers {
|
|
&.db-section__row-block {
|
|
// overrule since there is no block next to this one
|
|
border-right: 0;
|
|
}
|
|
|
|
.db-whos-posting__bar-fill {
|
|
background: var(--tertiary-medium);
|
|
|
|
&.--staff {
|
|
background: var(--primary-medium);
|
|
}
|
|
}
|
|
}
|
|
|
|
.db-support-response {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
container-type: inline-size;
|
|
container-name: db-support-response;
|
|
|
|
&__bars {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, auto) minmax(120px, 1fr) 2.5rem;
|
|
gap: var(--space-2);
|
|
|
|
@container db-support-response (width < 22rem) {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-3);
|
|
}
|
|
}
|
|
|
|
&__row {
|
|
display: grid;
|
|
grid-column: 1 / -1;
|
|
grid-template-columns: subgrid;
|
|
align-items: center;
|
|
|
|
@container db-support-response (width < 22rem) {
|
|
grid-template-columns: 1fr auto;
|
|
gap: 0 var(--space-2);
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
@include ellipsis;
|
|
|
|
@container db-support-response (width < 22rem) {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
|
|
&__track {
|
|
height: $db-bar-height;
|
|
border-radius: var(--d-border-radius-fixed);
|
|
background: var(--primary-low);
|
|
}
|
|
|
|
&__fill {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: var(--d-border-radius-fixed);
|
|
|
|
&.--bucket-lt_1h {
|
|
background: var(--success);
|
|
}
|
|
|
|
&.--bucket-1_4h {
|
|
background: var(--success-medium, var(--success));
|
|
}
|
|
|
|
&.--bucket-4_24h {
|
|
background: var(--primary-medium);
|
|
}
|
|
|
|
&.--bucket-gt_24h {
|
|
background: var(--danger);
|
|
}
|
|
}
|
|
|
|
&__share {
|
|
color: var(--primary-medium);
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: end;
|
|
line-height: 1;
|
|
}
|
|
}
|