Files
at-container-registry/pkg/appview/static/css/style.css
2025-10-08 20:50:27 -05:00

1229 lines
21 KiB
CSS

:root {
--primary: #0066cc;
--secondary: #6c757d;
--success: #28a745;
--danger: #dc3545;
--bg: #ffffff;
--fg: #1a1a1a;
--border-dark: #666;
--border: #e0e0e0;
--code-bg: #f5f5f5;
--hover-bg: #f9f9f9;
--star: #fbbf24;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: var(--bg);
color: var(--fg);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Navigation */
.navbar {
background: var(--fg);
color:var(--bg);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-brand a {
color:var(--bg);
text-decoration: none;
font-size: 1.5rem;
font-weight: bold;
}
.nav-brand .at-protocol {
color: var(--primary);
}
.nav-search {
flex: 1;
max-width: 400px;
margin: 0 2rem;
}
.nav-search input {
width: 100%;
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
font-size: 0.95rem;
}
.nav-links {
display: flex;
gap: 1rem;
align-items: center;
}
.nav-links a {
color:var(--fg);
text-decoration: none;
padding: 0.5rem 1rem;
}
.nav-links a:hover {
background:var(--secondary);
border-radius: 4px;
}
/* User dropdown */
.user-dropdown {
position: relative;
}
.user-menu-btn {
display: flex;
align-items: center;
gap: 0.5rem;
background: transparent;
color:var(--bg);
border: none;
padding: 0.5rem;
cursor: pointer;
border-radius: 4px;
transition: background 0.2s;
}
.user-menu-btn:hover {
background:var(--secondary);
}
.user-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
}
.user-avatar-placeholder {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
text-transform: uppercase;
}
/* Profile page avatars */
.profile-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
}
.profile-avatar-placeholder {
width: 80px;
height: 80px;
border-radius: 50%;
background: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 2rem;
text-transform: uppercase;
color: var(--bg);
}
.user-profile {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 2rem;
}
.user-profile h1 {
font-size: 1.8rem;
margin: 0;
}
.user-handle {
color: var(--bg);
font-size: 0.95rem;
}
.dropdown-arrow {
transition: transform 0.2s;
}
.user-menu-btn[aria-expanded="true"] .dropdown-arrow {
transform: rotate(180deg);
}
.dropdown-menu {
position: absolute;
top: calc(100% + 0.5rem);
right: 0;
background:var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
min-width: 200px;
overflow: hidden;
z-index: 1000;
}
.dropdown-menu[hidden] {
display: none;
}
.dropdown-item {
display: block;
width: 100%;
padding: 0.75rem 1rem;
text-align: left;
color: var(--fg);
text-decoration: none;
border: none;
background:var(--bg);
cursor: pointer;
transition: background 0.2s;
font-size: 0.95rem;
}
.dropdown-item:hover {
background: var(--hover-bg);
}
.dropdown-divider {
margin: 0;
border: none;
border-top: 1px solid var(--border);
}
.logout-btn {
color: var(--danger);
font-weight: 500;
}
/* Buttons */
button, .btn, .btn-primary, .btn-secondary {
padding: 0.5rem 1rem;
background: var(--primary);
color:var(--bg);
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
display: inline-block;
font-size: 0.95rem;
transition: opacity 0.2s;
}
button:hover, .btn:hover, .btn-primary:hover, .btn-secondary:hover {
opacity: 0.9;
}
/* Override nav-links color for primary button */
.nav-links .btn-primary {
color: var(--bg);
}
.btn-secondary {
background: var(--secondary);
}
.btn-link {
background: transparent;
color:var(--bg);
text-decoration: underline;
}
.delete-btn {
background: var(--danger);
padding: 0.25rem 0.5rem;
font-size: 0.85rem;
}
.copy-btn {
padding: 0.25rem 0.75rem;
background: var(--primary);
font-size: 0.85rem;
}
/* Cards */
.push-card, .repository-card {
border: 1px solid var(--border);
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
background:var(--bg);
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.push-header {
display: flex;
gap: 1rem;
align-items: flex-start;
margin-bottom: 0.75rem;
}
.push-user {
color: var(--primary);
text-decoration: none;
font-weight: 500;
}
.push-user:hover {
text-decoration: underline;
}
.push-separator {
color: var(--border-dark);
margin: 0 0.25rem;
}
.push-repo {
font-weight: 500;
color: var(--primary);
text-decoration: none;
}
.push-repo:hover {
color: var(--primary);
text-decoration: underline;
}
.push-tag {
color: var(--secondary);
}
.push-details {
color: var(--border-dark);
font-size: 0.9rem;
margin-bottom: 0.75rem;
}
.digest {
font-family: 'Monaco', 'Courier New', monospace;
font-size: 0.85rem;
background: var(--code-bg);
padding: 0.1rem 0.3rem;
border-radius: 3px;
}
.separator {
color: var(--border);
}
/* Push card icon and layout */
.push-icon {
width: 48px;
height: 48px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
}
.push-icon-placeholder {
width: 48px;
height: 48px;
border-radius: 8px;
background: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.5rem;
text-transform: uppercase;
color: var(--bg);
flex-shrink: 0;
}
.push-info {
flex: 1;
min-width: 0;
}
.push-title-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-bottom: 0.25rem;
}
.push-title {
font-size: 1.1rem;
flex: 1;
}
.push-description {
color: var(--border-dark);
font-size: 0.9rem;
line-height: 1.4;
margin: 0.25rem 0 0 0;
}
/* Push stats */
.push-stats {
display: flex;
gap: 1rem;
align-items: center;
flex-shrink: 0;
}
.push-stat {
display: flex;
align-items: center;
gap: 0.35rem;
color: var(--border-dark);
font-size: 0.9rem;
}
.push-stat .star-icon {
color: var(--star);
font-size: 1rem;
}
.push-stat .pull-icon {
color: var(--primary);
font-size: 1rem;
}
.push-stat .stat-count {
font-weight: 600;
color: var(--fg);
}
/* Repository Cards */
.repo-header {
padding: 1rem;
cursor: pointer;
display: flex;
gap: 1rem;
align-items: flex-start;
background: var(--hover-bg);
border-radius: 8px 8px 0 0;
margin: -1rem -1rem 0 -1rem;
}
.repo-header:hover {
background: var(--hover-bg);
}
.repo-icon {
width: 48px;
height: 48px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
}
.repo-info {
flex: 1;
min-width: 0;
}
.repo-title-row {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.25rem;
}
.repo-header h2 {
font-size: 1.3rem;
margin: 0;
}
.repo-title-link {
color: var(--fg);
text-decoration: none;
}
.repo-title-link:hover {
color: var(--primary);
text-decoration: underline;
}
.repo-badge {
display: inline-flex;
align-items: center;
padding: 0.2rem 0.6rem;
font-size: 0.75rem;
font-weight: 500;
border-radius: 12px;
white-space: nowrap;
}
.license-badge {
background: var(--code-bg);
color: var(--primary);
border: 1px solid #90caf9;
}
.repo-description {
color: var(--border-dark);
font-size: 0.95rem;
margin: 0.25rem 0 0.5rem 0;
line-height: 1.4;
}
.repo-stats {
color:var(--border-dark);
font-size: 0.9rem;
display: flex;
gap: 0.5rem;
align-items: center;
flex-wrap: wrap;
}
.repo-link {
color: var(--primary);
text-decoration: none;
font-weight: 500;
}
.repo-link:hover {
text-decoration: underline;
}
.expand-btn {
background: transparent;
color: var(--fg);
padding: 0.25rem 0.5rem;
font-size: 1.2rem;
}
.repo-details {
padding-top: 1rem;
}
.tags-section, .manifests-section {
margin-bottom: 1.5rem;
}
.tags-section h3, .manifests-section h3 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
color: var(--secondary);
}
.tag-row, .manifest-row {
display: flex;
gap: 1rem;
align-items: center;
padding: 0.5rem;
border-bottom: 1px solid var(--border);
}
.tag-row:last-child, .manifest-row:last-child {
border-bottom: none;
}
.tag-name {
font-weight: 500;
min-width: 100px;
}
.tag-arrow {
color: var(--border-dark);
}
.tag-digest, .manifest-digest {
font-family: 'Monaco', 'Courier New', monospace;
font-size: 0.85rem;
background: var(--code-bg);
padding: 0.1rem 0.3rem;
border-radius: 3px;
}
/* Settings Page */
.settings-page {
max-width: 800px;
margin: 0 auto;
}
.settings-section {
background:var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.settings-section h2 {
font-size: 1.3rem;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--border);
}
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--secondary);
}
.form-group input,
.form-group select {
width: 100%;
padding: 0.5rem;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 1rem;
}
.form-group small {
display: block;
margin-top: 0.25rem;
color: var(--border-dark);
font-size: 0.85rem;
}
.info-row {
margin-bottom: 0.75rem;
}
.info-row strong {
display: inline-block;
min-width: 150px;
color: var(--secondary);
}
/* Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-content {
background: var(--bg);
padding: 2rem;
border-radius: 8px;
max-width: 800px;
max-height: 80vh;
overflow-y: auto;
position: relative;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.modal-close {
position: absolute;
top: 1rem;
right: 1rem;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--secondary);
}
.modal-close:hover {
color: var(--fg);
}
.manifest-json {
background: var(--code-bg);
padding: 1rem;
border-radius: 4px;
overflow-x: auto;
font-family: 'Monaco', 'Courier New', monospace;
font-size: 0.85rem;
border: 1px solid var(--border);
}
/* Loading and Empty States */
.loading {
text-align: center;
padding: 2rem;
color: var(--border-dark);
}
.empty-state {
text-align: center;
padding: 3rem 2rem;
background: var(--hover-bg);
border-radius: 8px;
border: 1px solid var(--border);
}
.empty-state p {
margin-bottom: 1rem;
font-size: 1.1rem;
color: var(--secondary);
}
.empty-state pre {
background: var(--code-bg);
padding: 1rem;
border-radius: 4px;
display: inline-block;
}
.empty-message {
color: var(--border-dark);
font-style: italic;
padding: 1rem;
}
/* Status Messages */
.success {
color: var(--success);
padding: 0.5rem;
background: #d4edda;
border: 1px solid #c3e6cb;
border-radius: 4px;
margin-top: 1rem;
}
.error {
color: var(--danger);
padding: 0.5rem;
background: #f8d7da;
border: 1px solid #f5c6cb;
border-radius: 4px;
margin-top: 1rem;
}
/* Load More Button */
.load-more {
width: 100%;
margin-top: 1rem;
background: var(--secondary);
}
/* Login Page */
.login-page {
max-width: 450px;
margin: 4rem auto;
padding: 2rem;
}
.login-page h1 {
font-size: 2rem;
margin-bottom: 0.5rem;
text-align: center;
}
.login-page > p {
text-align: center;
color: var(--secondary);
margin-bottom: 2rem;
}
.login-form {
background:var(--bg);
padding: 2rem;
border-radius: 8px;
border: 1px solid var(--border);
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.login-form .form-group {
margin-bottom: 1.5rem;
}
.login-form label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
.login-form input[type="text"] {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 1rem;
}
.login-form input[type="text"]:focus {
outline: none;
border-color: var(--primary);
}
.btn-large {
width: 100%;
padding: 0.75rem 1.5rem;
font-size: 1rem;
font-weight: 500;
}
.login-help {
text-align: center;
margin-top: 2rem;
color: var(--secondary);
}
.login-help a {
color: var(--primary);
text-decoration: none;
}
.login-help a:hover {
text-decoration: underline;
}
/* Repository Page */
.repository-page {
max-width: 1000px;
margin: 0 auto;
}
.repository-header {
background:var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.repo-hero {
display: flex;
gap: 1.5rem;
align-items: flex-start;
margin-bottom: 1.5rem;
}
.repo-hero-icon {
width: 80px;
height: 80px;
border-radius: 12px;
object-fit: cover;
flex-shrink: 0;
}
.repo-hero-icon-placeholder {
width: 80px;
height: 80px;
border-radius: 12px;
background: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 2.5rem;
text-transform: uppercase;
color: var(--bg);
flex-shrink: 0;
}
.repo-hero-info {
flex: 1;
}
.repo-hero-info h1 {
font-size: 2rem;
margin: 0 0 0.5rem 0;
}
.owner-link {
color: var(--primary);
text-decoration: none;
}
.owner-link:hover {
text-decoration: underline;
}
.repo-separator {
color: var(--border-dark);
margin: 0 0.25rem;
}
.repo-name {
color: var(--fg);
}
.repo-hero-description {
color: var(--border-dark);
font-size: 1.1rem;
line-height: 1.5;
margin: 0.5rem 0 0 0;
}
.repo-actions {
margin-top: 1.5rem;
}
.star-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: var(--bg);
border: 2px solid var(--border);
border-radius: 6px;
font-size: 1rem;
cursor: pointer;
transition: all 0.2s ease;
color: var(--fg);
}
.star-btn:hover:not(:disabled) {
border-color: var(--primary);
background: var(--hover-bg);
}
.star-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.star-btn.starred {
border-color:var(--star);
background: var(--code-bg);
}
.star-btn.starred:hover:not(:disabled) {
background: var(--hover-bg);
}
.star-icon {
font-size: 1.25rem;
line-height: 1;
transition: transform 0.2s ease;
color:var(--star);
}
.star-btn:hover:not(:disabled) .star-icon {
transform: scale(1.1);
}
.star-count {
font-weight: 600;
color: var(--fg);
}
.repo-metadata {
display: flex;
gap: 1rem;
align-items: center;
flex-wrap: wrap;
margin-bottom: 1.5rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.metadata-badge {
display: inline-flex;
align-items: center;
padding: 0.3rem 0.75rem;
font-size: 0.85rem;
font-weight: 500;
border-radius: 16px;
white-space: nowrap;
}
.metadata-link {
color: var(--primary);
text-decoration: none;
font-weight: 500;
}
.metadata-link:hover {
text-decoration: underline;
}
.pull-command-section {
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.pull-command-section h3 {
font-size: 1rem;
margin-bottom: 0.75rem;
color: var(--secondary);
}
.repo-section {
background:var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.repo-section h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--border);
}
.tags-list, .manifests-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.tag-item, .manifest-item {
border: 1px solid var(--border);
border-radius: 6px;
padding: 1rem;
background: var(--hover-bg);
}
.tag-item-header, .manifest-item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.tag-name-large {
font-size: 1.2rem;
font-weight: 600;
color: var(--primary);
}
.tag-timestamp {
color: var(--border-dark);
font-size: 0.9rem;
}
.tag-item-details {
margin-bottom: 0.75rem;
}
.manifest-item-details {
display: flex;
gap: 0.5rem;
align-items: center;
color: var(--border-dark);
font-size: 0.9rem;
margin-top: 0.5rem;
}
.manifest-detail-label {
font-weight: 500;
color: var(--secondary);
}
/* Featured Repositories Section */
.featured-section {
margin-bottom: 3rem;
}
.featured-section h1 {
font-size: 1.8rem;
margin-bottom: 1.5rem;
}
.featured-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
margin-bottom: 2rem;
}
.featured-card {
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
background: var(--bg);
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
transition: all 0.2s ease;
text-decoration: none;
color: var(--fg);
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 180px;
}
.featured-card:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
border-color: var(--primary);
transform: translateY(-2px);
}
.featured-header {
display: flex;
gap: 1rem;
align-items: flex-start;
margin-bottom: 1rem;
}
.featured-icon {
width: 48px;
height: 48px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
}
.featured-icon-placeholder {
width: 48px;
height: 48px;
border-radius: 8px;
background: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.5rem;
text-transform: uppercase;
color:var(--bg);
flex-shrink: 0;
}
.featured-info {
flex: 1;
min-width: 0;
}
.featured-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.5rem;
line-height: 1.3;
}
.featured-owner {
color: var(--primary);
}
.featured-separator {
color: var(--border-dark);
margin: 0 0.25rem;
}
.featured-name {
color: var(--fg);
}
.featured-description {
color: var(--border-dark);
font-size: 0.9rem;
line-height: 1.4;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
line-clamp: 2;
}
.featured-stats {
display: flex;
gap: 1.5rem;
align-items: center;
padding-top: 0.75rem;
border-top: 1px solid var(--border);
}
.featured-stat {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--border-dark);
font-size: 0.95rem;
}
.featured-stat .star-icon {
color: var(--star);
font-size: 1.1rem;
}
.featured-stat .pull-icon {
color: var(--primary);
font-size: 1.1rem;
}
.featured-stat .stat-count {
font-weight: 600;
color: var(--fg);
}
/* Responsive */
@media (max-width: 768px) {
.navbar {
flex-direction: column;
gap: 1rem;
}
.nav-search {
max-width: 100%;
margin: 0;
}
.push-details {
flex-wrap: wrap;
}
.tag-row, .manifest-row {
flex-wrap: wrap;
}
.login-page {
margin: 2rem auto;
padding: 1rem;
}
.repo-hero {
flex-direction: column;
}
.repo-hero-info h1 {
font-size: 1.5rem;
}
.tag-item-header {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.manifest-item-details {
flex-direction: column;
align-items: flex-start;
}
.featured-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.featured-card {
min-height: auto;
}
}
@media (max-width: 1024px) and (min-width: 769px) {
.featured-grid {
grid-template-columns: repeat(2, 1fr);
}
}