Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions app/assets/stylesheets/solid_queue_web/_01_base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sqd-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px;
border-radius: 2px;
}

:root {
--bg: #f8f9fa;
--surface: #ffffff;
--border: #dee2e6;
--text: #212529;
--muted: #6c757d;
--primary: #0d6efd;
--danger: #dc3545;
--warning: #fd7e14;
--success: #198754;
--info: #0dcaf0;
--purple: #6f42c1;
}

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 14px;
background: var(--bg);
color: var(--text);
line-height: 1.5;
}
99 changes: 99 additions & 0 deletions app/assets/stylesheets/solid_queue_web/_02_layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.sqd-header {
background: var(--surface);
border-bottom: 1px solid var(--border);
}

.sqd-header__inner {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
display: flex;
align-items: center;
gap: 2rem;
height: 56px;
}

.sqd-header__title {
font-size: 16px;
font-weight: 600;
color: var(--text);
text-decoration: none;
}

.sqd-nav {
display: flex;
gap: 0.25rem;
list-style: none;
}

.sqd-nav a {
display: block;
padding: 0.35rem 0.75rem;
border-radius: 6px;
color: var(--muted);
text-decoration: none;
font-size: 13px;
font-weight: 500;
transition: background 0.1s, color 0.1s;
}

.sqd-nav a:hover,
.sqd-nav a.active {
background: var(--bg);
color: var(--text);
}

.sqd-nav-toggle {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 36px;
height: 36px;
padding: 6px;
margin-left: auto;
background: none;
border: 1px solid var(--border);
border-radius: 5px;
cursor: pointer;
}

.sqd-nav-toggle span {
display: block;
height: 2px;
background: var(--text);
border-radius: 1px;
}

.sqd-main {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1.5rem;
}

.sqd-page-title {
font-size: 20px;
font-weight: 600;
margin-bottom: 0;
}

.sqd-page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
}

.sqd-actions {
display: flex;
gap: 0.5rem;
}

.sqd-flash {
padding: 0.75rem 1rem;
border-radius: 6px;
margin-bottom: 1rem;
font-size: 13px;
}
.sqd-flash--notice { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.sqd-flash--alert { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
49 changes: 49 additions & 0 deletions app/assets/stylesheets/solid_queue_web/_03_stats.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.sqd-stats {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}

.sqd-stat {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.25rem 1rem;
text-align: center;
}

.sqd-stat__value {
font-size: 28px;
font-weight: 700;
line-height: 1;
margin-bottom: 0.25rem;
}

.sqd-stat__label {
font-size: 12px;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}

.sqd-stat--ready .sqd-stat__value { color: var(--success); }
.sqd-stat--scheduled .sqd-stat__value { color: var(--info); }
.sqd-stat--claimed .sqd-stat__value { color: var(--primary); }
.sqd-stat--failed .sqd-stat__value { color: var(--danger); }
.sqd-stat--blocked .sqd-stat__value { color: var(--warning); }
.sqd-stat--queues .sqd-stat__value { color: var(--purple); }
.sqd-stat--processes .sqd-stat__value { color: var(--muted); }
.sqd-stat--recurring .sqd-stat__value { color: var(--info); }

.sqd-stat--link {
display: block;
text-decoration: none;
color: inherit;
transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sqd-stat--link:hover {
border-color: var(--primary);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
}
52 changes: 52 additions & 0 deletions app/assets/stylesheets/solid_queue_web/_04_table.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.sqd-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
}

.sqd-card__header {
padding: 0.875rem 1rem;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}

.sqd-card__title {
font-size: 14px;
font-weight: 600;
}

table {
width: 100%;
border-collapse: collapse;
}

th {
padding: 0.625rem 1rem;
text-align: left;
font-size: 12px;
font-weight: 600;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid var(--border);
white-space: nowrap;
}

td {
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

.sqd-empty {
text-align: center;
padding: 3rem 1rem;
color: var(--muted);
}
27 changes: 27 additions & 0 deletions app/assets/stylesheets/solid_queue_web/_05_badges.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.sqd-badge {
display: inline-block;
padding: 0.2em 0.55em;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
line-height: 1;
text-transform: uppercase;
letter-spacing: 0.04em;
}

.sqd-badge--ready { background: #d1e7dd; color: #0f5132; }
.sqd-badge--scheduled { background: #cff4fc; color: #055160; }
.sqd-badge--claimed { background: #cfe2ff; color: #084298; }
.sqd-badge--failed { background: #f8d7da; color: #842029; }
.sqd-badge--blocked { background: #fff3cd; color: #664d03; }
.sqd-badge--static { background: #d1e7dd; color: #0f5132; }
.sqd-badge--dynamic { background: #e0d7f5; color: #4a2c8a; }
.sqd-badge--paused { background: #e2e3e5; color: #41464b; }
.sqd-badge--running { background: #d1e7dd; color: #0f5132; }
.sqd-badge--supervisor { background: #e0d7f5; color: #4a2c8a; }
.sqd-badge--worker { background: #d1e7dd; color: #0f5132; }
.sqd-badge--dispatcher { background: #cff4fc; color: #055160; }

.sqd-process-meta { font-size: 12px; color: var(--muted); }
.sqd-process-meta span + span::before { content: " · "; }
.sqd-muted-text { color: var(--muted); font-size: 13px; }
38 changes: 38 additions & 0 deletions app/assets/stylesheets/solid_queue_web/_06_buttons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.sqd-btn {
display: inline-flex;
align-items: center;
padding: 0.35rem 0.75rem;
border-radius: 5px;
font-size: 12px;
font-weight: 500;
text-decoration: none;
border: 1px solid transparent;
cursor: pointer;
transition: opacity 0.15s;
}
.sqd-btn:hover { opacity: 0.85; }
.sqd-btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.sqd-btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.sqd-btn--muted { background: var(--surface); color: var(--text); border-color: var(--border); }
.sqd-btn--sm { padding: 0.2rem 0.55rem; font-size: 11px; }

.sqd-row-actions { white-space: nowrap; text-align: right; width: 1%; }
.sqd-row-actions form { display: inline; margin-left: 0.25rem; }

.sqd-selection-bar {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 1rem;
background: var(--bg);
border-bottom: 1px solid var(--border);
font-size: 13px;
}

table th input[type="checkbox"],
table td input[type="checkbox"] {
width: 15px;
height: 15px;
cursor: pointer;
accent-color: var(--primary);
}
Loading
Loading