Files
robot-plugins/assets/style.css

342 lines
6.0 KiB
CSS

/* Base styles */
:root {
/* Light mode colors */
--background: 200 30% 97%;
--foreground: 200 50% 20%;
--card: 0 0% 100%;
--card-foreground: 200 50% 20%;
--primary: 200 85% 45%;
--primary-foreground: 0 0% 100%;
--muted: 200 30% 96%;
--muted-foreground: 200 30% 40%;
--border: 200 30% 90%;
--radius: 0.75rem;
}
@media (prefers-color-scheme: dark) {
:root {
--background: 200 30% 8%;
--foreground: 200 20% 96%;
--card: 200 25% 15%;
--card-foreground: 200 15% 85%;
--primary: 200 70% 40%;
--primary-foreground: 0 0% 100%;
--muted: 200 30% 20%;
--muted-foreground: 200 30% 65%;
--border: 200 30% 20%;
}
}
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Global styles */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif;
line-height: 1.5;
color: hsl(var(--foreground));
background: hsl(var(--background));
min-height: 100vh;
position: relative;
isolation: isolate;
}
/* Background Elements */
body::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: linear-gradient(to bottom,
hsl(var(--background)),
hsl(var(--primary) / 0.1),
hsl(var(--background))
);
}
body::after {
content: '';
position: absolute;
inset: 0;
z-index: -1;
opacity: 0.35;
background-image: radial-gradient(
circle at 1px 1px,
hsl(var(--primary) / 0.5) 1px,
transparent 0
);
background-size: 32px 32px;
mask-image: linear-gradient(
to bottom,
transparent,
black 10%,
black 90%,
transparent
);
}
/* Layout */
.container {
max-width: 64rem;
margin: 0 auto;
padding: 2rem 1.5rem;
}
.content {
display: flex;
flex-direction: column;
gap: 2rem;
}
.main {
display: flex;
flex-direction: column;
gap: 2rem;
}
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}
@media (max-width: 768px) {
.grid {
grid-template-columns: 1fr;
}
}
/* Header */
.header {
text-align: center;
margin-bottom: 1rem;
}
.header-content {
display: inline-flex;
align-items: center;
gap: 1.5rem;
padding: 1.5rem 2rem;
background: hsl(var(--card) / 0.5);
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
backdrop-filter: blur(8px);
}
.header-icon {
width: 4rem;
height: 4rem;
border-radius: var(--radius);
object-fit: contain;
background: hsl(var(--muted));
padding: 0.5rem;
}
.header-text {
text-align: left;
}
.header-title {
font-size: 1.875rem;
font-weight: 600;
line-height: 1.2;
letter-spacing: -0.025em;
margin-bottom: 0.5rem;
}
.header-description {
color: hsl(var(--muted-foreground));
font-size: 1.125rem;
}
/* Banner */
.banner {
width: 100%;
height: 16rem;
border-radius: var(--radius);
object-fit: cover;
border: 1px solid hsl(var(--border));
background: hsl(var(--muted));
}
/* Stats */
.stats {
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.stat {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.5rem;
background: hsl(var(--card) / 0.5);
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
backdrop-filter: blur(8px);
}
.stat-icon {
width: 2rem;
height: 2rem;
color: hsl(var(--primary));
}
.stat-content {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.stat-label {
font-size: 0.875rem;
color: hsl(var(--muted-foreground));
}
.stat-value {
font-size: 1.5rem;
font-weight: 600;
line-height: 1;
}
/* Cards */
.card {
background: hsl(var(--card) / 0.5);
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
backdrop-filter: blur(8px);
}
.card-title {
padding: 1.5rem;
font-size: 1.25rem;
font-weight: 600;
border-bottom: 1px solid hsl(var(--border));
}
.card-content {
padding: 1.5rem;
}
/* Info Lists */
.info-list {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.info-group {
display: flex;
flex-direction: column;
gap: 1rem;
}
.info-group:not(:last-child) {
padding-bottom: 1.5rem;
border-bottom: 1px solid hsl(var(--border));
}
.info-group-header {
display: flex;
align-items: center;
gap: 0.75rem;
}
.info-group-title {
font-size: 1rem;
font-weight: 600;
}
.info {
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.info-icon {
width: 1.25rem;
height: 1.25rem;
color: hsl(var(--muted-foreground));
flex-shrink: 0;
margin-top: 0.125rem;
}
.info-content {
flex: 1;
min-width: 0;
}
.info-label {
font-size: 0.875rem;
color: hsl(var(--muted-foreground));
margin-bottom: 0.25rem;
}
.info-value {
font-size: 0.875rem;
}
.info-link {
color: hsl(var(--primary));
text-decoration: none;
font-size: 0.875rem;
}
.info-link:hover {
text-decoration: underline;
}
/* Badges and Tags */
.badge-list,
.tag-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.badge,
.tag {
display: inline-flex;
align-items: center;
height: 1.5rem;
padding: 0 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 500;
background: hsl(var(--muted));
color: hsl(var(--muted-foreground));
white-space: nowrap;
}
.badge {
background: hsl(var(--primary));
color: hsl(var(--primary-foreground));
}
/* Code */
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.875rem;
background: hsl(var(--muted));
padding: 0.25rem 0.5rem;
border-radius: calc(var(--radius) - 0.25rem);
}
/* Loading State */
.loading {
text-align: center;
padding: 3rem;
color: hsl(var(--muted-foreground));
font-size: 1.125rem;
}
/* Utilities */
.hidden {
display: none;
}