codeburn/app/renderer/sections/Plugins.module.css
Resham Joshi 3a1dac20a1
Some checks are pending
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
Plugins: coming-soon card instead of the bare empty state (#1447)
* Replace broken Plugins empty state with a coming-soon card

* Remove redundant eyebrow from Plugins coming-soon card

The h1 above already says Plugins, so the eyebrow duplicated it.
2026-09-15 23:13:00 +02:00

284 lines
4.5 KiB
CSS

.container {
padding: 1rem;
flex: 1;
overflow-y: auto;
}
.container h1 {
margin: 0 0 1.5rem;
font-size: 1.5rem;
font-weight: 600;
}
.error {
padding: 0.75rem 1rem;
margin-bottom: 1rem;
background: var(--color-error-bg);
border: 1px solid var(--color-error-border);
border-radius: 4px;
color: var(--color-error-text);
font-size: 0.875rem;
}
.empty {
max-width: 560px;
margin: 0 auto;
padding: 32px 28px;
text-align: center;
}
.emptyTitle {
margin: 0 0 14px;
color: var(--ink);
font-size: 20px;
font-weight: 640;
}
.emptyBody {
margin: 0 0 10px;
color: var(--mut);
font-size: 13px;
line-height: 1.55;
}
.emptyFooter {
margin: 18px 0 0;
color: var(--mut2);
font-size: 11.5px;
}
.list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.row {
padding: 0.75rem 1rem;
border: 1px solid var(--color-border);
border-radius: 4px;
background: var(--color-bg-secondary);
display: flex;
justify-content: space-between;
align-items: center;
}
.row[data-status="rejected"] {
background: var(--color-error-bg);
border-color: var(--color-error-border);
}
.info {
flex: 1;
}
.name {
font-weight: 600;
color: var(--color-text);
margin-bottom: 0.25rem;
}
.reason {
font-size: 0.875rem;
color: var(--color-text-secondary);
margin-top: 0.25rem;
}
.caps {
display: flex;
gap: 0.5rem;
margin-top: 0.5rem;
font-size: 0.75rem;
}
.caps span {
padding: 0.25rem 0.5rem;
background: var(--color-bg-hover);
border-radius: 3px;
color: var(--color-text-secondary);
}
.actions {
display: flex;
gap: 0.5rem;
align-items: center;
}
.actions button {
padding: 0.35rem 0.75rem;
font-size: 0.875rem;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--panel);
color: var(--ink);
cursor: pointer;
transition: all 0.2s;
}
.actions button:hover:not(:disabled) {
background: var(--hover);
border-color: var(--ink);
}
.actions button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.modalBackdrop {
position: fixed;
inset: 0;
z-index: 1000;
display: grid;
place-items: center;
padding: 24px;
background: rgba(8, 10, 14, 0.56);
}
.modal {
position: relative;
width: min(600px, 100%);
max-height: 80vh;
overflow-y: auto;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--panel);
color: var(--ink);
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), 0 3px 12px rgba(0, 0, 0, 0.16);
}
.modalClose {
position: absolute;
top: 10px;
right: 10px;
z-index: 1;
width: 28px;
height: 28px;
padding: 0;
border: 0;
border-radius: 7px;
background: transparent;
color: var(--mut);
font: inherit;
font-size: 24px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.modalClose:hover {
background: var(--hover);
color: var(--ink);
}
.modalContent {
padding: 24px;
}
.modalContent h2 {
margin: 0 0 1rem;
font-size: 1.25rem;
font-weight: 600;
}
.modalContent h3 {
margin: 1.5rem 0 0.75rem;
font-size: 1rem;
font-weight: 600;
}
.modalContent p {
margin: 0.5rem 0;
font-size: 0.9375rem;
line-height: 1.5;
}
.description {
color: var(--mut);
font-size: 0.875rem;
}
.section {
margin: 1rem 0;
padding: 0.75rem;
background: var(--fill);
border-radius: 4px;
}
.section ul {
margin: 0.5rem 0;
padding-left: 1.5rem;
}
.section li {
margin: 0.5rem 0;
font-size: 0.875rem;
}
.section strong {
color: var(--ink);
font-weight: 600;
}
.disclosure {
font-size: 0.75rem;
color: var(--mut);
font-style: italic;
margin-top: 0.25rem;
}
.spinner {
display: inline-block;
width: 40px;
height: 40px;
border: 3px solid var(--line);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Windows: plugins have no runtime there yet, so the page says so instead of loading.
Same centred card the empty state uses, with the section's own glyph above it. */
.soon {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 10px;
padding: 44px 24px;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--fill);
}
.soonMark {
width: 30px;
height: 30px;
fill: none;
stroke: var(--accent);
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
opacity: .9;
}
.soonTitle {
color: var(--ink);
font-size: 14px;
font-weight: 600;
}
.soonBody {
margin: 0;
max-width: 42ch;
color: var(--mut);
font-size: 12.5px;
line-height: 1.55;
}