443 lines
7.8 KiB
CSS
443 lines
7.8 KiB
CSS
/* Upload Section */
|
|
.upload-section {
|
|
margin-bottom: 32px;
|
|
background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
|
|
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
}
|
|
|
|
.upload-section h3 {
|
|
margin-bottom: 20px;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.upload-section h3::before {
|
|
content: '';
|
|
display: block;
|
|
width: 4px;
|
|
height: 20px;
|
|
background: var(--accent-gradient);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.upload-form {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.upload-form .form-group {
|
|
margin-bottom: 0;
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.upload-form .form-group input[type="file"] {
|
|
padding: 10px 16px;
|
|
background: var(--bg-tertiary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.upload-form .form-group input[type="file"]::file-selector-button {
|
|
background: var(--accent-gradient);
|
|
color: white;
|
|
border: none;
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius-sm);
|
|
margin-right: 12px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
/* Section Headers */
|
|
h2 {
|
|
margin-bottom: 16px;
|
|
color: var(--text-primary);
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Tags Table */
|
|
.tags-table {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.tags-table table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.tags-table th,
|
|
.tags-table td {
|
|
padding: 14px 20px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.tags-table th {
|
|
background: var(--bg-tertiary);
|
|
font-weight: 600;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.tags-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.tags-table tbody tr {
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.tags-table tbody tr:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.tags-table td strong {
|
|
color: var(--accent-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.artifact-id {
|
|
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
|
|
font-size: 0.8125rem;
|
|
color: var(--text-tertiary);
|
|
background: var(--bg-tertiary);
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 6px 12px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Download by Artifact ID Section */
|
|
.download-by-id-section {
|
|
margin-top: 32px;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.download-by-id-section h3 {
|
|
margin-bottom: 12px;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.download-by-id-form {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.artifact-id-input {
|
|
flex: 1;
|
|
padding: 10px 16px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
|
|
font-size: 0.8125rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.artifact-id-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.artifact-id-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.btn-disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.validation-hint {
|
|
margin-top: 8px;
|
|
margin-bottom: 0;
|
|
font-size: 0.75rem;
|
|
color: var(--warning-color, #f59e0b);
|
|
}
|
|
|
|
/* Usage Section */
|
|
.usage-section {
|
|
margin-top: 32px;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.usage-section h3 {
|
|
margin-bottom: 12px;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.usage-section p {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 12px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.usage-section pre {
|
|
background: #0d0d0f;
|
|
border: 1px solid var(--border-primary);
|
|
padding: 16px 20px;
|
|
border-radius: var(--radius-md);
|
|
overflow-x: auto;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.usage-section code {
|
|
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
|
|
font-size: 0.8125rem;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
/* Syntax highlighting for code blocks */
|
|
.usage-section pre {
|
|
position: relative;
|
|
}
|
|
|
|
.usage-section pre::before {
|
|
content: 'bash';
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 12px;
|
|
font-size: 0.6875rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* Copy button for code blocks (optional enhancement) */
|
|
.code-block {
|
|
position: relative;
|
|
}
|
|
|
|
.code-block .copy-btn {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
color: var(--text-secondary);
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.6875rem;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.code-block:hover .copy-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.code-block .copy-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Section header */
|
|
.section-header {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-header h2 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Package header stats */
|
|
.package-header-stats {
|
|
display: flex;
|
|
gap: 20px;
|
|
margin-top: 12px;
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.stat-item strong {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.stat-item strong.accent {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
/* Artifact ID cell */
|
|
.artifact-id-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Copy button */
|
|
.copy-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.artifact-id-cell:hover .copy-btn,
|
|
tr:hover .copy-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
/* Content type */
|
|
.content-type {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Version badge */
|
|
.version-badge {
|
|
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
|
|
font-size: 0.8125rem;
|
|
color: var(--accent-primary);
|
|
background: rgba(16, 185, 129, 0.1);
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
/* Create Tag Section */
|
|
.create-tag-section {
|
|
margin-top: 32px;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.create-tag-section h3 {
|
|
margin-bottom: 4px;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.section-description {
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.create-tag-form .form-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.create-tag-form .form-group {
|
|
flex: 1;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.create-tag-form .form-group--wide {
|
|
flex: 2;
|
|
min-width: 300px;
|
|
}
|
|
|
|
.create-tag-form .form-group label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.create-tag-form .form-group input {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.create-tag-form .form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.create-tag-form .form-group input:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.create-tag-form button {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Created cell */
|
|
.created-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.created-by {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Cell truncate */
|
|
.cell-truncate {
|
|
max-width: 150px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.upload-form {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.upload-form .form-group {
|
|
min-width: 100%;
|
|
}
|
|
|
|
.package-header-stats {
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
}
|