mirror of
https://github.com/soconnor0919/robot-plugins.git
synced 2025-12-12 23:24:43 -05:00
1211 lines
23 KiB
CSS
Executable File
1211 lines
23 KiB
CSS
Executable File
/* HRIStudio Design System */
|
|
: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%;
|
|
--ring: 200 85% 45%;
|
|
--radius: 0.5rem;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--background: 200 30% 8%;
|
|
--foreground: 200 20% 85%;
|
|
--card: 200 25% 15%;
|
|
--card-foreground: 200 15% 75%;
|
|
--popover: 200 50% 8%;
|
|
--popover-foreground: 200 20% 85%;
|
|
--primary: 200 70% 40%;
|
|
--primary-foreground: 0 0% 95%;
|
|
--secondary: 200 30% 20%;
|
|
--secondary-foreground: 200 20% 85%;
|
|
--muted: 200 30% 20%;
|
|
--muted-foreground: 200 30% 60%;
|
|
--accent: 200 70% 40%;
|
|
--accent-foreground: 0 0% 95%;
|
|
--border: 200 30% 20%;
|
|
--ring: 200 70% 40%;
|
|
}
|
|
}
|
|
|
|
/* Base styles */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
line-height: 1.5;
|
|
color: hsl(var(--foreground));
|
|
background: hsl(var(--background));
|
|
transition: background-color 0.3s ease;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Background Elements */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -2;
|
|
background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--primary) / 0.1), hsl(var(--background)));
|
|
}
|
|
|
|
/* Gradient Orb */
|
|
body::after {
|
|
content: '';
|
|
position: fixed;
|
|
width: 1200px;
|
|
height: 1200px;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: -1;
|
|
background: radial-gradient(circle at center,
|
|
hsl(var(--primary) / 0.3),
|
|
hsl(var(--secondary) / 0.3),
|
|
hsl(var(--background)) 70%
|
|
);
|
|
opacity: 0.6;
|
|
filter: blur(40px);
|
|
animation: gradient-move 30s ease-in-out infinite;
|
|
}
|
|
|
|
/* Dotted Pattern */
|
|
.container::before {
|
|
content: '';
|
|
position: fixed;
|
|
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);
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes gradient-move {
|
|
0% {
|
|
transform: translate(-50%, -50%) scale(1) rotate(0deg);
|
|
}
|
|
25% {
|
|
transform: translate(-50%, -50%) scale(1.05) rotate(90deg);
|
|
}
|
|
50% {
|
|
transform: translate(-50%, -50%) scale(0.95) rotate(180deg);
|
|
}
|
|
75% {
|
|
transform: translate(-50%, -50%) scale(1.05) rotate(270deg);
|
|
}
|
|
100% {
|
|
transform: translate(-50%, -50%) scale(1) rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Layout */
|
|
.container {
|
|
max-width: 80rem;
|
|
margin: 0 auto;
|
|
padding: 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.grid-cols-2 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
/* Components */
|
|
.card {
|
|
background: hsl(var(--card));
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Add glass effect only to root card */
|
|
.card:not(.card .card) {
|
|
background: hsl(var(--card) / 0.5);
|
|
backdrop-filter: blur(16px);
|
|
border: 1px solid hsl(var(--border) / 0.5);
|
|
}
|
|
|
|
/* Ensure nested cards remain solid */
|
|
.card .card {
|
|
background: hsl(var(--card));
|
|
backdrop-filter: none;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.375rem; /* space-y-1.5 */
|
|
padding: 1.5rem; /* p-6 */
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.card-header h2 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
letter-spacing: -0.025em;
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.card-content {
|
|
padding: 1.5rem; /* p-6 */
|
|
flex: 1;
|
|
}
|
|
|
|
.card-content h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: hsl(var(--foreground));
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-content h3 svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.card-section {
|
|
padding: 1rem;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
background: hsl(var(--secondary) / 0.7);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.card-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.card-row + .card-row {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* Remove the extra margin from the license row */
|
|
.card-row[style*="margin-top"] {
|
|
margin-top: 0.5rem !important;
|
|
}
|
|
|
|
.card-row svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.card-row span {
|
|
font-size: 0.875rem;
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.card-row .label {
|
|
color: hsl(var(--muted-foreground));
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
/* Update link styling */
|
|
.card-row a {
|
|
color: hsl(var(--primary));
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.card-row a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Maintainers section styling */
|
|
.maintainers-section {
|
|
width: 100%;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.maintainers-section h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: hsl(var(--foreground));
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.maintainers-section h3 svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.maintainers-table {
|
|
width: 100%;
|
|
border-spacing: 0;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.maintainers-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.maintainers-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.maintainer-name {
|
|
color: hsl(var(--foreground));
|
|
font-weight: 500;
|
|
}
|
|
|
|
.maintainer-links {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.maintainer-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
color: hsl(var(--primary));
|
|
text-decoration: none;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.maintainer-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.maintainer-link svg {
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
/* Remove old maintainers styling */
|
|
#maintainersList {
|
|
display: inline;
|
|
color: hsl(var(--foreground));
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
#maintainersList span + span::before {
|
|
content: ', ';
|
|
}
|
|
|
|
#maintainersContainer {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
#maintainersContainer .card-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
#maintainersContainer .label {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
/* Update badge styling */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 1.5rem;
|
|
padding: 0 0.75rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
background: hsl(var(--primary) / 0.1);
|
|
color: hsl(var(--primary));
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge-secondary {
|
|
background: hsl(var(--secondary));
|
|
color: hsl(var(--secondary-foreground));
|
|
}
|
|
|
|
/* Fix ROS2 distributions badges */
|
|
#ros2Distributions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin: 0;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
#ros2Distributions .badge {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Fix tags badges */
|
|
#tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin: 0;
|
|
}
|
|
|
|
#tags .badge {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Header */
|
|
.header-banner {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 20rem;
|
|
background: hsl(var(--secondary));
|
|
margin-bottom: 2rem;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
border: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.header-banner img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
/* Update header icon */
|
|
.header-icon {
|
|
width: 6rem;
|
|
height: 6rem;
|
|
min-width: 6rem;
|
|
border-radius: var(--radius);
|
|
object-fit: contain;
|
|
background: hsl(var(--secondary));
|
|
}
|
|
|
|
.title {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: hsl(var(--foreground));
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.description {
|
|
color: hsl(var(--muted-foreground));
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.tabs-list {
|
|
display: inline-flex;
|
|
height: 2.25rem; /* h-9 */
|
|
items-center: center;
|
|
justify-content: center;
|
|
background: hsl(var(--muted));
|
|
padding: 0.25rem; /* p-1 */
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.tab {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
white-space: nowrap;
|
|
border-radius: calc(var(--radius) - 0.25rem); /* rounded-md */
|
|
padding: 0 0.75rem;
|
|
height: 100%;
|
|
font-family: inherit;
|
|
font-size: 0.875rem; /* text-sm */
|
|
font-weight: 500; /* font-medium */
|
|
line-height: inherit;
|
|
color: hsl(var(--muted-foreground));
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
user-select: none;
|
|
transition: all 0.15s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.tab:focus-visible {
|
|
outline: none;
|
|
ring: 2px solid hsl(var(--ring));
|
|
ring-offset: 2px;
|
|
}
|
|
|
|
.tab[data-state="active"] {
|
|
background: hsl(var(--background));
|
|
color: hsl(var(--foreground));
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.tab[data-state="active"]::after {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.tab-content[data-state="active"] {
|
|
display: block;
|
|
}
|
|
|
|
/* Plugin Grid */
|
|
.plugin-grid {
|
|
display: grid;
|
|
gap: 1rem;
|
|
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
|
|
}
|
|
|
|
.plugin-card {
|
|
background: hsl(var(--card));
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.plugin-card:hover {
|
|
background: hsl(var(--accent) / 0.05);
|
|
border-color: hsl(var(--accent) / 0.2);
|
|
}
|
|
|
|
.plugin-header {
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.plugin-icon-wrapper {
|
|
position: relative;
|
|
width: 4rem;
|
|
height: 4rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.plugin-icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
object-fit: contain;
|
|
background: hsl(var(--secondary));
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.plugin-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.plugin-title {
|
|
font-weight: 600;
|
|
color: hsl(var(--foreground));
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.plugin-description {
|
|
color: hsl(var(--muted-foreground));
|
|
font-size: 0.875rem;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.plugin-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.plugin-stats {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.plugin-stat {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
color: hsl(var(--muted-foreground));
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.plugin-stat svg {
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.install-button {
|
|
height: 1.75rem;
|
|
padding: 0 0.75rem;
|
|
font-size: 0.75rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.install-button svg {
|
|
width: 0.875rem;
|
|
height: 0.875rem;
|
|
}
|
|
|
|
/* Images */
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
/* Loading state */
|
|
#loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 20rem;
|
|
color: hsl(var(--muted-foreground));
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.grid-cols-2 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.header-banner {
|
|
height: 12rem;
|
|
}
|
|
|
|
.header-content {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.plugin-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Button */
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
padding: 0.5rem 0.75rem;
|
|
transition: all 0.15s ease;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.button-outline {
|
|
background: transparent;
|
|
border: 1px solid hsl(var(--border));
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.button-outline:hover {
|
|
background: hsl(var(--accent) / 0.1);
|
|
color: hsl(var(--accent));
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Header content styling */
|
|
.header-content {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.flex-1 {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.items-center {
|
|
align-items: center;
|
|
}
|
|
|
|
.justify-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* Plugin Layout */
|
|
.plugin-layout {
|
|
display: grid;
|
|
grid-template-columns: 350px 1fr;
|
|
gap: 1.5rem;
|
|
height: calc(100vh - 24rem);
|
|
min-height: 400px;
|
|
}
|
|
|
|
/* Plugin List */
|
|
.plugin-list {
|
|
border-right: 1px solid hsl(var(--border));
|
|
overflow-y: auto;
|
|
padding-right: 1rem;
|
|
}
|
|
|
|
.plugin-list-item {
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.plugin-list-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.plugin-list-item:hover {
|
|
background: hsl(var(--accent) / 0.05);
|
|
border-color: hsl(var(--accent) / 0.2);
|
|
}
|
|
|
|
.plugin-list-item.selected {
|
|
background: hsl(var(--card));
|
|
border-color: hsl(var(--primary));
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.plugin-list-icon {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.plugin-list-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.plugin-list-title {
|
|
font-weight: 600;
|
|
color: hsl(var(--foreground));
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.plugin-list-description {
|
|
color: hsl(var(--muted-foreground));
|
|
font-size: 0.75rem;
|
|
line-height: 1.4;
|
|
margin-top: 0.25rem;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Plugin Details */
|
|
.plugin-details {
|
|
overflow-y: auto;
|
|
position: relative;
|
|
height: 100%;
|
|
background: hsl(var(--card));
|
|
}
|
|
|
|
.plugin-details-header {
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.plugin-details-header-content {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
grid-template-columns: auto 1fr;
|
|
}
|
|
|
|
.plugin-details-icon {
|
|
width: 5rem;
|
|
height: 5rem;
|
|
flex-shrink: 0;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
overflow: hidden;
|
|
border: 1px solid hsl(var(--border));
|
|
background: hsl(var(--secondary));
|
|
}
|
|
|
|
.plugin-details-icon .plugin-icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.plugin-details-header-content {
|
|
grid-template-columns: 1fr;
|
|
text-align: center;
|
|
}
|
|
|
|
.plugin-details-icon {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.plugin-details-header .flex-wrap {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* Plugin Images */
|
|
.image-grid {
|
|
display: flex;
|
|
gap: 1rem;
|
|
overflow-x: auto;
|
|
padding-bottom: 1rem;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.image-item {
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
border: 1px solid hsl(var(--border));
|
|
background: hsl(var(--muted));
|
|
}
|
|
|
|
.image-item.main {
|
|
width: 500px;
|
|
height: 300px;
|
|
}
|
|
|
|
.image-item.angle {
|
|
width: 300px;
|
|
height: 300px;
|
|
}
|
|
|
|
.image-item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.image-label {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 0.5rem 1rem;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
|
|
color: white;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Plugin Details Tabs */
|
|
.plugin-details-tabs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.plugin-details-tabs-list {
|
|
display: inline-flex;
|
|
height: 2.25rem;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: hsl(var(--muted));
|
|
padding: 0.25rem;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.plugin-details-tab {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
white-space: nowrap;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
padding: 0 0.75rem;
|
|
height: 100%;
|
|
font-family: inherit;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
line-height: inherit;
|
|
color: hsl(var(--muted-foreground));
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
user-select: none;
|
|
transition: all 0.15s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.plugin-details-tab:hover {
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.plugin-details-tab:focus-visible {
|
|
outline: none;
|
|
ring: 2px solid hsl(var(--ring));
|
|
ring-offset: 2px;
|
|
}
|
|
|
|
.plugin-details-tab[data-state="active"] {
|
|
background: hsl(var(--background));
|
|
color: hsl(var(--foreground));
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.plugin-details-tab-content {
|
|
display: none;
|
|
padding: 1.5rem;
|
|
border-radius: var(--radius);
|
|
background: hsl(var(--secondary) / 0.7);
|
|
border: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.plugin-details-tab-content[data-state="active"] {
|
|
display: block;
|
|
}
|
|
|
|
/* ROS2 Configuration */
|
|
#detailsTopics {
|
|
display: grid;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Capabilities */
|
|
#detailsCapabilities {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Actions tab styling */
|
|
#detailsActions {
|
|
margin: -1.5rem;
|
|
display: grid;
|
|
gap: 1px;
|
|
background: hsl(var(--border));
|
|
}
|
|
|
|
#detailsActions .card {
|
|
margin: 0;
|
|
border-radius: 0;
|
|
border: none;
|
|
background: hsl(var(--card));
|
|
}
|
|
|
|
#detailsActions .card .card-content {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Secondary Card Style */
|
|
.card-secondary {
|
|
padding: 1rem;
|
|
border-radius: var(--radius);
|
|
background: hsl(var(--secondary) / 0.7);
|
|
border: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.card-secondary + .card-secondary {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.card-secondary h4 {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
/* Update image grid container to match new styling */
|
|
#detailsImages {
|
|
margin: -1.5rem -1.5rem 1.5rem -1.5rem;
|
|
padding: 1.5rem;
|
|
background: hsl(var(--card));
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
/* Nested cards in tab content */
|
|
.plugin-details-tab-content .card {
|
|
background: hsl(var(--card));
|
|
border: 1px solid hsl(var(--border));
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.plugin-details-tab-content .card:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Documentation section */
|
|
.plugin-details-tab-content .card .card-header {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.plugin-details-tab-content .card .card-content {
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Empty State */
|
|
#emptyState {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1.5rem;
|
|
text-align: center;
|
|
background: hsl(var(--card));
|
|
}
|
|
|
|
/* Card Sections */
|
|
.card-section {
|
|
padding: 1rem;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
background: hsl(var(--secondary) / 0.7);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.card-section h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: hsl(var(--foreground));
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-section h3 svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
/* Code Blocks */
|
|
code {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.plugin-layout {
|
|
grid-template-columns: 1fr;
|
|
height: auto;
|
|
}
|
|
|
|
.plugin-list {
|
|
border-right: none;
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
padding-right: 0;
|
|
padding-bottom: 1rem;
|
|
max-height: 400px;
|
|
}
|
|
|
|
.image-grid {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.image-item.main,
|
|
.image-item.angle {
|
|
width: 100%;
|
|
height: 200px;
|
|
}
|
|
}
|
|
|
|
/* Image Zoom Modal */
|
|
.zoom-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 50;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1.5rem;
|
|
background: hsl(var(--background) / 0.8);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.zoom-modal[data-state="open"] {
|
|
display: flex;
|
|
animation: modal-in 0.3s ease-out;
|
|
}
|
|
|
|
.zoom-modal-content {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 90vw;
|
|
max-height: 90vh;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
background: hsl(var(--card));
|
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.zoom-modal-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.zoom-modal-close {
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
border-radius: 9999px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: hsl(var(--card));
|
|
border: 1px solid hsl(var(--border));
|
|
color: hsl(var(--foreground));
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.zoom-modal-close:hover {
|
|
background: hsl(var(--accent) / 0.1);
|
|
color: hsl(var(--accent));
|
|
}
|
|
|
|
/* Update image gallery styles */
|
|
.image-gallery {
|
|
display: grid;
|
|
gap: 1rem;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
}
|
|
|
|
.image-gallery-item {
|
|
position: relative;
|
|
aspect-ratio: 1;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
border: 1px solid hsl(var(--border));
|
|
background: hsl(var(--muted));
|
|
cursor: zoom-in;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.image-gallery-item:hover {
|
|
border-color: hsl(var(--primary));
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.image-gallery-item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.image-gallery-label {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 0.5rem 1rem;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
|
|
color: white;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
@keyframes modal-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
} |