Files
task-stream/libs/web/tracker/presenters/src/lib/ui/settings-card.scss
Josep Piguillem 58fe5e8301 fix: settings cards with the page's padding and compact buttons
The Git, automations, webhooks and import cards had no inner padding and
oversized buttons, because the settings page's styles do not reach child
components; they now share a stylesheet with the same pills. The template
button gets its own column instead of squeezing the type's name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 20:23:20 +02:00

75 lines
1.3 KiB
SCSS

// Shared by the cards of the settings page (Git, automations, webhooks,
// import and export): the same padding and the same compact pill buttons as
// the rest of that page, whose own styles do not reach child components.
:host {
display: block;
}
.ts-block {
display: grid;
gap: 0.75rem;
min-width: 0;
padding: 1.25rem;
h3 {
margin: 0;
font-size: 1rem;
font-weight: 700;
}
> div > p,
> div > h3 + p {
margin: 0.25rem 0 0;
}
}
.ts-btn {
display: inline-flex;
align-items: center;
justify-content: center;
height: 2.125rem;
padding: 0 0.875rem;
border: 1px solid var(--ts-line-strong);
border-radius: 999px;
background: var(--ts-surface);
color: var(--ts-ink-soft);
font: inherit;
font-size: 0.8125rem;
font-weight: 600;
white-space: nowrap;
cursor: pointer;
&:hover:not(:disabled) {
border-color: var(--ts-brand);
color: var(--ts-ink);
}
&:disabled {
opacity: 0.5;
cursor: default;
}
}
.ts-btn--primary {
border-color: transparent;
background: var(--ts-brand);
color: #fff;
&:hover:not(:disabled) {
color: #fff;
filter: brightness(1.08);
}
}
.ts-btn--ghost {
border-color: transparent;
background: none;
}
.ts-btn-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
}