* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: #f8f9fa;
color: #212529;
line-height: 1.5;
}
#app {
max-width: 960px;
margin: 0 auto;
padding: 24px;
}
.page-header {
margin-bottom: 24px;
}
.page-header h1 {
font-size: 1.5rem;
font-weight: 600;
color: #212529;
margin-bottom: 12px;
}
.toolbar {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
}
.search-input {
flex: 1;
min-width: 200px;
padding: 8px 12px;
border: 1px solid #dee2e6;
border-radius: 4px;
font-size: 14px;
}
.search-input:focus {
outline: none;
border-color: #5c6bc0;
}
.search-box {
flex: 1;
display: flex;
gap: 10px;
min-width: 300px;
}
.search-box input {
flex: 1;
padding: 10px 15px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 16px;
}
.search-box input:focus {
outline: none;
border-color: #667eea;
}
.search-box button {
padding: 10px 20px;
background: #667eea;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
}
.search-box button:hover {
background: #5568d3;
}
.filters {
display: flex;
gap: 10px;
}
.filters select {
padding: 10px 15px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
}
.btn-refresh {
padding: 10px 20px;
background: #ff9800;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
font-size: 14px;
transition: all 0.2s;
}
.btn-refresh:hover {
background: #f57c00;
}
.btn-refresh:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.content {
display: grid;
grid-template-columns: 250px 1fr;
gap: 20px;
}
.sidebar {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
height: fit-content;
position: sticky;
top: 20px;
}
.sidebar h2 {
margin-bottom: 15px;
color: #333;
}
.sidebar ul {
list-style: none;
}
.sidebar li {
padding: 10px;
margin: 5px 0;
border-radius: 6px;
cursor: pointer;
transition: background 0.2s;
}
.sidebar li:hover {
background: #f0f0f0;
}
.sidebar li.active {
background: #667eea;
color: white;
}
.main-content {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
min-height: 400px;
}
.loading,
.error {
text-align: center;
padding: 40px;
color: #666;
}
.no-skills, .no-results {
text-align: center;
padding: 40px;
color: #666;
background: white;
border-radius: 8px;
margin: 20px 0;
font-size: 1.1em;
line-height: 1.8;
}
.error {
color: #d32f2f;
background: #ffebee;
border-radius: 6px;
}
.skills-container {
display: none;
}
.skills-list {
display: grid;
gap: 15px;
}
.skill-card {
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 18px;
transition: all 0.2s;
background: #fff;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.skill-card:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border-color: #c5cae9;
}
.skill-card.installed {
border-left: 4px solid #28a745;
}
.skill-card.available {
border-left: 4px solid #667eea;
}
.skill-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: 10px;
}
.skill-name {
font-size: 1.3em;
font-weight: 600;
color: #333;
}
.skill-badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 0.85em;
font-weight: 500;
}
.skill-badge.installed {
background: #28a745;
color: white;
}
.skill-badge.available {
background: #667eea;
color: white;
}
.skill-status-badges {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
}
.status-badge {
padding: 4px 10px;
border-radius: 12px;
font-size: 0.8em;
font-weight: 500;
white-space: nowrap;
}
.status-badge.in-manifest {
background: #2196f3;
color: white;
}
.status-badge.installed {
background: #28a745;
color: white;
}
.status-badge.available {
background: #9e9e9e;
color: white;
}
.skill-description {
color: #666;
margin-bottom: 15px;
line-height: 1.5;
}
.skill-meta {
display: flex;
gap: 15px;
flex-wrap: wrap;
margin-bottom: 15px;
font-size: 0.9em;
color: #888;
}
.skill-tags {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 15px;
}
.tag {
padding: 4px 10px;
background: #f0f0f0;
border-radius: 12px;
font-size: 0.85em;
color: #666;
}
.skill-actions {
display: flex;
gap: 10px;
}
.skill-actions button {
padding: 8px 16px;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s;
}
.btn-install {
background: #667eea;
color: white;
}
.btn-install:hover {
background: #5568d3;
}
.btn-uninstall {
background: #dc3545;
color: white;
}
.btn-uninstall:hover {
background: #c82333;
}
.btn-install:disabled,
.btn-uninstall:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-upgrade-all {
padding: 10px 20px;
background: #5c6bc0;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
}
.btn-upgrade-all:hover:not(:disabled) {
background: #3f51b5;
}
.btn-upgrade-all:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn-upgrade {
background: #5c6bc0;
color: white;
}
.btn-upgrade:hover {
background: #3f51b5;
}
.source-link {
color: #5c6bc0;
text-decoration: none;
}
.source-link:hover {
text-decoration: underline;
}
.source-none {
color: #9e9e9e;
}
.content-panel {
background: #fff;
border: 1px solid #dee2e6;
border-radius: 6px;
overflow: hidden;
}
.section {
padding: 16px 20px;
border-bottom: 1px solid #e9ecef;
}
.section:last-child {
border-bottom: none;
}
.section-title {
font-size: 0.875rem;
font-weight: 600;
color: #495057;
margin-bottom: 12px;
}
.meta-table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
.meta-table td {
padding: 6px 0;
vertical-align: top;
}
.meta-table .k {
width: 140px;
color: #6c757d;
font-weight: 500;
}
.meta-table code {
font-size: 0.8125rem;
background: #f1f3f5;
padding: 2px 6px;
border-radius: 3px;
}
.skills-table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
.skills-table th,
.skills-table td {
padding: 10px 12px;
text-align: left;
border-bottom: 1px solid #e9ecef;
}
.skills-table th {
font-weight: 600;
color: #495057;
background: #f8f9fa;
}
.skills-table .th-actions {
width: 160px;
text-align: right;
}
.skills-table tbody tr:hover {
background: #f8f9fa;
}
.skills-table .name {
font-weight: 500;
}
.skills-table .id code {
font-size: 0.8125rem;
background: #f1f3f5;
padding: 2px 6px;
border-radius: 3px;
}
.skills-table .version {
color: #6c757d;
font-size: 0.8125rem;
}
.skills-table .type {
color: #6c757d;
}
.skills-table .description {
max-width: 240px;
font-size: 0.8125rem;
color: #6c757d;
}
.skills-table .location {
word-break: break-all;
}
.skills-table .location a {
color: #5c6bc0;
text-decoration: none;
}
.skills-table .location a:hover {
text-decoration: underline;
}
.skills-table .actions {
text-align: right;
}
.skills-table .actions button {
margin-left: 6px;
padding: 6px 12px;
font-size: 0.8125rem;
border: none;
border-radius: 4px;
cursor: pointer;
}
.skills-table .empty {
color: #6c757d;
text-align: center;
padding: 24px;
}
.muted {
color: #6c757d;
font-size: 0.875rem;
}
.loading,
.error {
text-align: center;
padding: 24px;
font-size: 0.875rem;
}
.error {
color: #dc3545;
background: #f8d7da;
border: 1px solid #f5c2c7;
border-radius: 6px;
margin-bottom: 16px;
}
.skills-container {
display: block;
}
@media (max-width: 768px) {
.content {
grid-template-columns: 1fr;
}
.sidebar {
position: static;
}
.toolbar {
flex-direction: column;
align-items: stretch;
}
.search-box {
min-width: auto;
}
}