mirror of
https://github.com/soconnor0919/robot-plugins.git
synced 2025-12-15 08:24:45 -05:00
Enhance web interface with modular CSS and improved card structure
This commit is contained in:
262
assets/style.css
Normal file
262
assets/style.css
Normal file
@@ -0,0 +1,262 @@
|
||||
/* Base styles */
|
||||
:root {
|
||||
/* Light mode colors */
|
||||
--background: 200 30% 97%;
|
||||
--foreground: 200 50% 20%;
|
||||
--card: 0 0% 100%;
|
||||
--card-foreground: 200 50% 20%;
|
||||
--popover: 0 0% 100%;
|
||||
--popover-foreground: 200 50% 20%;
|
||||
--primary: 200 85% 45%;
|
||||
--primary-foreground: 0 0% 100%;
|
||||
--secondary: 200 30% 96%;
|
||||
--secondary-foreground: 200 50% 20%;
|
||||
--muted: 200 30% 96%;
|
||||
--muted-foreground: 200 30% 40%;
|
||||
--accent: 200 85% 45%;
|
||||
--accent-foreground: 0 0% 100%;
|
||||
--border: 200 30% 90%;
|
||||
--input: 200 30% 90%;
|
||||
--ring: 200 85% 45%;
|
||||
--radius: 0.5rem;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: 200 30% 8%;
|
||||
--foreground: 200 20% 96%;
|
||||
--card: 200 25% 15%;
|
||||
--card-foreground: 200 15% 85%;
|
||||
--popover: 200 50% 8%;
|
||||
--popover-foreground: 200 20% 96%;
|
||||
--primary: 200 70% 40%;
|
||||
--primary-foreground: 0 0% 100%;
|
||||
--secondary: 200 30% 20%;
|
||||
--secondary-foreground: 200 20% 96%;
|
||||
--muted: 200 30% 20%;
|
||||
--muted-foreground: 200 30% 65%;
|
||||
--accent: 200 70% 40%;
|
||||
--accent-foreground: 0 0% 100%;
|
||||
--border: 200 30% 20%;
|
||||
--input: 200 30% 20%;
|
||||
--ring: 200 70% 40%;
|
||||
}
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.grid-cols-2 {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.grid-cols-2 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Card Components */
|
||||
.card {
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid hsl(var(--border));
|
||||
background: hsl(var(--card) / 0.5);
|
||||
color: hsl(var(--card-foreground));
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.card-content {
|
||||
padding: 1.5rem;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.025em;
|
||||
color: hsl(var(--card-foreground));
|
||||
}
|
||||
|
||||
.card-description {
|
||||
font-size: 0.875rem;
|
||||
color: hsl(var(--muted-foreground));
|
||||
}
|
||||
|
||||
/* Header Card */
|
||||
.header-card {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.header-card .card-header {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.header-card img {
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
border-radius: var(--radius);
|
||||
object-fit: contain;
|
||||
background: hsl(var(--secondary));
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
/* Banner */
|
||||
.banner {
|
||||
width: 100%;
|
||||
height: 12rem;
|
||||
border-radius: calc(var(--radius) + 0.25rem);
|
||||
object-fit: cover;
|
||||
margin-bottom: 1.5rem;
|
||||
border: 1px solid hsl(var(--border));
|
||||
background: hsl(var(--secondary));
|
||||
}
|
||||
|
||||
/* Badges and Tags */
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 1.5rem;
|
||||
padding: 0 0.75rem;
|
||||
border-radius: 9999px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
background: hsl(var(--primary));
|
||||
color: hsl(var(--primary-foreground));
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.badge.secondary {
|
||||
background: hsl(var(--secondary));
|
||||
color: hsl(var(--secondary-foreground));
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 1.5rem;
|
||||
padding: 0 0.75rem;
|
||||
border-radius: 9999px;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1;
|
||||
background: hsl(var(--secondary));
|
||||
color: hsl(var(--secondary-foreground));
|
||||
margin: 0.25rem;
|
||||
}
|
||||
|
||||
/* Stats */
|
||||
.stat {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: hsl(var(--muted-foreground));
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* Content */
|
||||
.content {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.content h4 {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
color: hsl(var(--card-foreground));
|
||||
}
|
||||
|
||||
.content a {
|
||||
color: hsl(var(--primary));
|
||||
text-decoration: none;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.content a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
code {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
background: hsl(var(--secondary));
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: calc(var(--radius) - 0.25rem);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
.hidden { display: none; }
|
||||
|
||||
#loading {
|
||||
text-align: center;
|
||||
padding: 3rem;
|
||||
color: hsl(var(--muted-foreground));
|
||||
}
|
||||
Reference in New Issue
Block a user