Files
ArchiveBox/archivebox/templates/static/admin.css
Nick Sweeting b749b26c5d wip
2026-03-23 03:58:32 -07:00

939 lines
21 KiB
CSS
Executable File

/* * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
} */
#logo {
height: 30px;
vertical-align: -6px;
padding-right: 5px;
}
#site-name:hover a {
opacity: 0.9;
}
#site-name .loader {
height: 25px;
width: 25px;
display: inline-block;
border-width: 3px;
vertical-align: -3px;
margin-right: 5px;
margin-top: 2px;
}
#branding h1, #branding h1 a:link, #branding h1 a:visited {
color: mintcream;
}
#header {
background: #aa1e55;
padding: 6px 14px;
}
#content {
padding: 8px 8px;
}
#user-tools {
font-size: 13px;
}
div.breadcrumbs {
background: #772948;
color: #f5dd5d;
padding: 6px 15px;
}
#toolbar #searchbar {
height: 25px;
}
/* View Mode Switcher - Prominent Toggle */
#snapshot-view-mode {
float: right;
margin-bottom: -40px;
display: inline-flex;
align-items: center;
margin-top: 3px;
margin-right: 10px;
font-size: 13px;
background: #f1f5f9;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 2px;
gap: 2px;
}
#snapshot-view-mode a {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
padding: 6px 12px;
color: #64748b;
text-decoration: none;
border-radius: 6px;
font-weight: 500;
transition: all 0.15s ease;
white-space: nowrap;
}
#snapshot-view-mode a:hover {
color: #334155;
background: #e2e8f0;
}
#snapshot-view-mode a.active {
background: #fff;
color: #1e293b;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#snapshot-view-mode .view-icon {
font-size: 14px;
line-height: 1;
}
body.model-snapshot.change-list div.breadcrumbs,
body.model-snapshot.change-list #content .object-tools {
display: none;
}
.module h2, .module caption, .inline-group h2 {
background: #772948;
}
#content .adv-data textarea {
width: 82vw;
max-width: 100%;
min-height: 100px;
height: auto;
background-color: #145454;
color: #f1f1fd;
font-size: 12px;
font-family: monospace;
border-radius: 8px;
line-height: 1.2;
padding: 6px 9px;
}
#content .object-tools {
margin-top: -35px;
margin-right: -10px;
float: right;
}
body.change-list #content .object-tools {
margin-top: 0;
margin-right: 0;
float: none;
display: flex;
justify-content: flex-end;
clear: both;
}
#content .object-tools a:link, #content .object-tools a:visited {
border-radius: 0px;
background-color: #f5dd5d;
color: #333;
font-size: 12px;
font-weight: 800;
}
#content .object-tools a.addlink {
background-blend-mode: difference;
}
#content #changelist #toolbar {
padding: 0px;
background: none;
margin-bottom: 10px;
border-top: 0px;
border-bottom: 0px;
}
#content #changelist #toolbar form input[type="submit"] {
border-color: #aa1e55;
}
#content #changelist-filter li.selected a {
color: #aa1e55;
}
/*#content #changelist .actions {
position: fixed;
bottom: 0px;
z-index: 800;
}*/
#content #changelist .actions {
float: right;
margin-top: -34px;
padding: 0px;
background: none;
margin-right: 0px;
width: auto;
max-height: 40px;
display: block;
}
@media (max-width: 1000px) {
#content #changelist .actions {
max-height: 200px;
}
}
#content #changelist .actions .button {
border-radius: 2px;
background-color: #f5dd5d;
color: #333;
font-size: 12px;
font-weight: 800;
margin-right: 4px;
box-shadow: 4px 4px 4px rgba(0,0,0,0.02);
border: 1px solid rgba(0,0,0,0.08);
}
#content #changelist .actions .button:hover {
border: 1px solid rgba(0,0,0,0.2);
opacity: 0.9;
}
#content #changelist .actions .button[name=verify_snapshots], #content #changelist .actions .button[name=update_titles] {
background-color: #dedede;
color: #333;
}
#content #changelist .actions .button[name=update_snapshots] {
background-color: #9ee54b;
color: #333;
}
#content #changelist .actions .button[name=resnapshot_snapshot] {
background-color:lightseagreen;
color: #333;
}
#content #changelist .actions .button[name=overwrite_snapshots] {
background-color: #ffaa31;
color: #333;
margin-left: 10px;
}
#content #changelist .actions .button[name=delete_snapshots] {
background-color: #f91f74;
color: rgb(255 248 252 / 64%);
}
#content #changelist .actions .button[name=add_tags] {
}
#content #changelist .actions .button[name=remove_tags] {
margin-right: 25px;
}
#content #changelist .actions > label {
max-height: 25px;
}
#content #changelist .actions > label {
width: auto !important;
min-width: 90px;
}
#content #changelist .actions > label > select {
margin-top: 3px;
}
/* Filter Sidebar - Improved Layout */
#content #changelist-filter {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
overflow: hidden;
}
#content #changelist-filter h2 {
border-radius: 0;
background: #f8fafc;
color: #475569;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 10px 12px;
margin: 0;
border-bottom: 1px solid #e2e8f0;
}
#content #changelist-filter h3 {
font-size: 11px;
font-weight: 600;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 10px 12px 4px;
margin: 0;
background: transparent;
}
#content #changelist-filter ul {
padding: 0 6px 8px;
margin: 0;
list-style: none;
}
#content #changelist-filter li {
margin: 0;
}
#content #changelist-filter li a {
display: block;
padding: 6px 10px;
color: #475569;
text-decoration: none;
font-size: 12px;
border-radius: 5px;
transition: background 0.15s ease, color 0.15s ease;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#content #changelist-filter li a:hover {
background: #f1f5f9;
color: #1e293b;
}
#content #changelist-filter li.selected a {
background: #eff6ff;
color: #2563eb;
font-weight: 500;
}
#content #changelist-filter-clear {
padding: 8px 12px;
margin: 0;
border-bottom: 1px solid #e2e8f0;
background: #fef2f2;
}
#content #changelist-filter-clear a {
color: #dc2626;
font-size: 12px;
font-weight: 500;
text-decoration: none;
}
#content #changelist-filter-clear a:hover {
text-decoration: underline;
}
#changelist .paginator {
border-top: 0px;
border-bottom: 0px;
}
@media (min-width: 767px) {
#content #changelist-filter {
top: 35px;
width: 160px;
margin-bottom: 35px;
}
.change-list .filtered .results,
.change-list .filtered .paginator,
.filtered #toolbar,
.filtered div.xfull {
margin-right: 168px;
}
}
@media (max-width: 1127px) {
#content #changelist .actions {
position: fixed;
bottom: 6px;
left: 10px;
float: left;
z-index: 1000;
}
}
#content a img.favicon {
height: 20px;
max-width: 28px;
vertical-align: -5px;
padding-right: 6px;
}
#content img.snapshot-preview {
width: 30px;
height: 30px;
max-width: 30px;
max-height: 30px;
object-fit: contain;
border-radius: 4px;
display: block;
margin: 0 auto;
}
#content img.snapshot-preview.screenshot {
width: 100px;
height: 100px;
max-width: 100px;
max-height: 100px;
object-fit: cover;
}
#content th.field-preview_icon,
#content td.field-preview_icon {
width: 100px;
max-width: 100px;
}
#content td, #content th {
vertical-align: middle;
padding: 4px;
}
#content #changelist table input {
vertical-align: -2px;
}
#content thead th .text a {
padding: 8px 4px;
}
#content th.field-added, #content td.field-updated {
word-break: break-word;
min-width: 135px;
white-space: normal;
}
#content th.field-title_str {
min-width: 300px;
padding-left: 2px;
padding-right: 2px;
}
#content td.field-title_str {
padding-left: 2px;
padding-right: 2px;
}
#content th.field-preview_icon,
#content td.field-preview_icon {
padding-left: 2px;
padding-right: 2px;
}
#content th.column-created_at,
#content tbody th.field-created_at {
width: 1%;
white-space: nowrap;
}
#content th.column-action-checkbox,
#content th.action-checkbox-column,
#content td.action-checkbox {
padding-left: 2px;
padding-right: 2px;
}
#content th.field-preview_icon,
#content td.field-preview_icon {
padding-left: 2px;
padding-right: 2px;
}
#content th.column-created_at,
#content tbody th.field-created_at {
padding-left: 6px;
padding-right: 6px;
}
#content th.column-action-checkbox,
#content th.action-checkbox-column,
#content td.action-checkbox {
padding-left: 2px;
padding-right: 2px;
}
#content th.field-status_with_progress,
#content td.field-status_with_progress {
padding-left: 2px;
padding-right: 2px;
width: 90px;
max-width: 90px;
}
#content th.field-size_with_stats,
#content td.field-size_with_stats {
padding-left: 2px;
padding-right: 2px;
}
#content th.field-files,
#content td.field-files {
padding-left: 2px;
padding-right: 2px;
width: 212px;
max-width: 212px;
}
#content th.field-files,
#content td.field-files {
padding-left: 2px;
padding-right: 2px;
width: 212px;
max-width: 212px;
}
#content th.field-size_with_stats,
#content td.field-size_with_stats {
padding-left: 2px;
padding-right: 2px;
}
#content th.field-status_with_progress,
#content td.field-status_with_progress {
padding-left: 2px;
padding-right: 2px;
width: 90px;
max-width: 90px;
}
#content th.field-tags_inline,
#content td.field-tags_inline {
max-width: 400px;
width: 380px;
min-width: 340px;
padding-left: 2px;
padding-right: 2px;
}
#content td.field-tags_inline .tag-pills-inline {
flex-wrap: wrap;
}
#content td.field-tags_inline .tag-editor-inline {
max-width: 400px;
}
#content td.field-tags_inline .tag-editor-inline.readonly {
padding-right: 0;
}
#content th.field-tags_inline,
#content td.field-tags_inline {
max-width: 220px;
width: 220px;
padding-left: 2px;
padding-right: 2px;
}
#content td.field-tags_inline .tag-pills-inline {
flex-wrap: wrap;
}
#content td.field-tags_inline .tag-editor-inline {
max-width: 220px;
}
#content td.field-files {
white-space: nowrap;
width: 212px;
max-width: 212px;
overflow: hidden;
}
#content td.field-files .files-icons a {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
margin: 0;
line-height: 1;
width: 16px;
height: 16px;
min-width: 16px;
}
#content td.field-files .files-icons svg,
#content td.field-files .files-icons img {
display: block;
margin: 0;
width: 16px;
height: 16px;
}
#content td.field-files .exists-True {
opacity: 1;
}
#content td.field-files .exists-False {
opacity: 0.1;
filter: grayscale(100%);
}
#content td.field-size {
white-space: nowrap;
}
#content td.field-url_str {
word-break: break-all;
min-width: 200px;
}
#content tr b.status-pending {
font-weight: 200;
opacity: 0.6;
}
.loader {
border: 16px solid #f3f3f3; /* Light grey */
border-top: 16px solid #3498db; /* Blue */
border-radius: 50%;
width: 30px;
height: 30px;
box-sizing: border-box;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.tag {
float: right;
border-radius: 5px;
background-color: #bfdfff;
padding: 2px 5px;
margin-left: 4px;
margin-top: 1px;
}
.files-icons {
display: inline-flex;
flex-wrap: wrap;
gap: 2px;
vertical-align: middle;
}
.files-icons--compact {
display: inline-grid;
grid-auto-flow: column;
grid-auto-columns: auto;
grid-template-rows: repeat(4, auto);
gap: 2px 4px;
justify-content: start;
align-content: start;
max-width: 212px;
}
.files-icons a {
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
}
.files-icons .abx-output-icon {
width: 16px;
height: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 0;
color: #1f2937;
background: transparent;
box-shadow: none;
}
.files-icons .abx-output-icon svg {
width: 16px;
height: 16px;
display: block;
}
.exists-False {
opacity: 0.1;
filter: grayscale(100%);
}
#result_list tbody td.field-cmd_str pre,
#result_list tbody td.field-output_str pre {
max-width: 22vw;
word-wrap: anywhere;
white-space: break-spaces;
max-height: 40px;
overflow: hidden;
margin: 2px;
background-color: rgba(0,0,0,0.05);
padding: 1px 4px 16px 8px;
border-radius: 4px;
}
body.model-archiveresult.change-list #result_list td.field-cmd_str {
width: 180px !important;
max-width: 180px !important;
min-width: 0 !important;
}
body.model-archiveresult.change-list #result_list td.field-cmd_str > div,
body.model-archiveresult.change-list #result_list td.field-cmd_str code {
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
}
.archivebox-zip-button {
position: relative;
}
.archivebox-zip-spinner {
display: none;
width: 1em;
height: 1em;
border: 2px solid #2563eb;
border-right-color: transparent;
border-radius: 999px;
animation: archivebox-zip-spin 0.75s linear infinite;
flex: 0 0 auto;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
vertical-align: -0.125em;
}
.archivebox-zip-button.is-loading {
pointer-events: none !important;
opacity: 0.96;
}
.archivebox-zip-button.is-loading .archivebox-zip-spinner {
display: inline-block;
}
.archivebox-zip-button.is-loading .archivebox-zip-label {
opacity: 0.72;
}
.archivebox-zip-button[data-loading-mode="spinner-only"].is-loading {
gap: 0 !important;
justify-content: center !important;
}
.archivebox-zip-button[data-loading-mode="spinner-only"].is-loading .archivebox-zip-label {
flex: 0 0 0 !important;
width: 0 !important;
min-width: 0 !important;
margin: 0 !important;
padding: 0 !important;
overflow: hidden;
white-space: nowrap;
opacity: 0;
}
@keyframes archivebox-zip-spin {
to {
transform: rotate(360deg);
}
}
body.model-archiveresult.change-list #result_list {
table-layout: fixed;
width: 100%;
}
body.model-archiveresult.change-list #result_list th.column-cmd_str,
body.model-archiveresult.change-list #result_list td.field-cmd_str {
width: 180px !important;
max-width: 180px !important;
min-width: 0 !important;
overflow: hidden !important;
box-sizing: border-box;
}
body.model-archiveresult.change-list #result_list th.column-details_link,
body.model-archiveresult.change-list #result_list td.field-details_link {
width: 64px;
max-width: 64px;
}
body.model-archiveresult.change-list #result_list th.column-zip_link,
body.model-archiveresult.change-list #result_list td.field-zip_link {
width: 62px;
max-width: 62px;
white-space: nowrap;
}
body.model-archiveresult.change-list #result_list th.column-created_at,
body.model-archiveresult.change-list #result_list td.field-created_at {
width: 96px;
max-width: 96px;
}
body.model-archiveresult.change-list #result_list th.column-snapshot_info,
body.model-archiveresult.change-list #result_list td.field-snapshot_info {
width: 150px;
max-width: 150px;
}
body.model-archiveresult.change-list #result_list th.column-tags_inline,
body.model-archiveresult.change-list #result_list td.field-tags_inline {
width: 82px;
max-width: 82px;
}
body.model-archiveresult.change-list #result_list th.column-status_badge,
body.model-archiveresult.change-list #result_list td.field-status_badge {
width: 84px;
max-width: 84px;
}
body.model-archiveresult.change-list #result_list th.column-plugin_with_icon,
body.model-archiveresult.change-list #result_list td.field-plugin_with_icon {
width: 92px;
max-width: 92px;
}
body.model-archiveresult.change-list #result_list th.column-process_link,
body.model-archiveresult.change-list #result_list td.field-process_link {
width: 56px;
white-space: nowrap;
}
body.model-archiveresult.change-list #result_list th.column-machine_link,
body.model-archiveresult.change-list #result_list td.field-machine_link {
width: 108px;
max-width: 108px;
}
body.model-archiveresult.change-list #result_list th.column-output_str_display,
body.model-archiveresult.change-list #result_list td.field-output_str_display {
width: 110px;
max-width: 110px;
}
body.model-archiveresult.change-list #result_list td.field-snapshot_info a {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
body.model-archiveresult.change-list #result_list td.field-machine_link a,
body.model-archiveresult.change-list #result_list td.field-output_str_display a,
body.model-archiveresult.change-list #result_list td.field-output_str_display span,
body.model-archiveresult.change-list #result_list td.field-plugin_with_icon a:last-child {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
body.model-archiveresult.change-list #result_list td.field-cmd_str > div,
body.model-archiveresult.change-list #result_list td.field-cmd_str code {
width: 100% !important;
min-width: 0 !important;
max-width: 100% !important;
box-sizing: border-box;
}
body.filters-collapsed #content #changelist-filter {
display: none !important;
}
body.filters-collapsed .change-list .filtered .results,
body.filters-collapsed .change-list .filtered .paginator,
body.filters-collapsed .filtered #toolbar,
body.filters-collapsed .filtered div.xfull {
margin-right: 0 !important;
}
body.filters-collapsed #content #changelist-filter {
display: none !important;
}
body.filters-collapsed .change-list .filtered .results,
body.filters-collapsed .change-list .filtered .paginator,
body.filters-collapsed .filtered #toolbar,
body.filters-collapsed .filtered div.xfull {
margin-right: 0 !important;
}
#result_list tbody td.field-extractor {
font-weight: 800;
font-variant: small-caps;
}
#result_list tbody td.field-status,
#result_list tbody td.field-status_badge {
font-variant: small-caps;
}
body.model-archiveresult.change-list #result_list tbody tr {
transition: background-color 0.15s ease, opacity 0.15s ease;
}
body.model-archiveresult.change-list #result_list tbody tr:has(td.field-status_badge .status-badge.started),
body.model-archiveresult.change-list #result_list tbody tr:has(td.field-status_badge .status-badge.backoff) {
background: rgba(251, 191, 36, 0.14);
}
body.model-archiveresult.change-list #result_list tbody tr:has(td.field-status_badge .status-badge.failed) {
background: rgba(239, 68, 68, 0.12);
}
body.model-archiveresult.change-list #result_list tbody tr:has(td.field-status_badge .status-badge.succeeded) {
background: rgba(34, 197, 94, 0.11);
}
body.model-archiveresult.change-list #result_list tbody tr:has(td.field-status_badge .status-badge.skipped),
body.model-archiveresult.change-list #result_list tbody tr:has(td.field-status_badge .status-badge.noresults) {
background: rgba(148, 163, 184, 0.10);
opacity: 0.82;
}
.inline-group .tabular td.original p {
margin-top: -28px;
}
tbody .output-link {
float: right;
margin-bottom: -25px;
margin-right: -3px;
margin-top: -4px;
opacity: 0.4;
box-shadow: 4px 4px 4px rgba(0,0,0,0.1);
}
tbody .output-link:hover {opacity: 1;}
@keyframes fadeIn {
0% { opacity: 0; }
30% { opacity: 0.1;}
100% { opacity: 1; }
}
.fade-in-progress-url {
animation: fadeIn 14s;
}
/* Snapshot Progress Spinner */
.snapshot-progress-spinner {
display: inline-block;
width: 12px;
height: 12px;
border: 2px solid #e2e8f0;
border-top-color: #3b82f6;
border-radius: 50%;
animation: snapshot-spin 0.8s linear infinite;
}
@keyframes snapshot-spin {
to { transform: rotate(360deg); }
}
/* Status Badges */
.status-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 500;
}
.status-badge.queued { background: #fef3c7; color: #f59e0b; }
.status-badge.started { background: #dbeafe; color: #3b82f6; }
.status-badge.sealed { background: #d1fae5; color: #10b981; }
.status-badge.succeeded { background: #d1fae5; color: #10b981; }
.status-badge.failed { background: #fee2e2; color: #ef4444; }
.status-badge.backoff { background: #fef3c7; color: #f59e0b; }
.status-badge.skipped { background: #f3f4f6; color: #6b7280; }
.status-badge.noresults { background: #f1f5f9; color: #64748b; }
/* Progress Bar */
.snapshot-progress-bar {
background: #e2e8f0;
border-radius: 4px;
height: 6px;
overflow: hidden;
}
.snapshot-progress-bar-fill {
height: 100%;
transition: width 0.3s ease;
border-radius: 4px;
}