Files
Claude-Code-Workflow/docs/.vitepress/theme/styles/demo.css
catlog22 57636040d2 Refactor workflow-lite-planex documentation to standardize phase naming and improve clarity
- Updated phase references in SKILL.md and 01-lite-plan.md to use "LP-Phase" prefix for consistency.
- Added critical context isolation note in 01-lite-plan.md to clarify phase invocation rules.
- Enhanced execution process descriptions to reflect updated phase naming conventions.

Improve error handling in frontend routing

- Introduced ChunkErrorBoundary component to handle lazy-loaded chunk load failures.
- Wrapped lazy-loaded routes with error boundary and suspense for better user experience.
- Created PageSkeleton component for loading states in lazy-loaded routes.

Sanitize header values in notification routes

- Added regex validation for header values to prevent XSS attacks by allowing only printable ASCII characters.

Enhance mobile responsiveness in documentation styles

- Updated CSS breakpoints to use custom properties for better maintainability.
- Improved layout styles across various components to ensure consistent behavior on mobile devices.
2026-03-02 16:36:40 +08:00

105 lines
2.0 KiB
CSS

/* Demo system styles for VitePress */
/* Demo container theme-aware styling */
.demo-container {
/* Theme-aware borders */
border: 1px solid var(--vp-c-border);
/* Rounded corners */
border-radius: 8px;
/* Subtle shadow */
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
/* Dark mode support */
background: var(--vp-c-bg);
}
.demo-preview {
/* Consistent padding */
padding: 24px;
/* Min height for visibility */
min-height: 100px;
/* Center content when small */
display: flex;
align-items: center;
justify-content: center;
}
/* Dark mode overrides */
.dark .demo-container {
background: var(--vp-c-bg-soft);
border-color: var(--vp-c-divider);
}
/* Responsive design */
@media (max-width: var(--bp-sm)) {
.demo-header {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.demo-preview {
padding: 16px;
}
.demo-actions {
width: 100%;
justify-content: space-between;
}
}
/* Demo code viewer styles */
.code-viewer {
background: var(--vp-code-bg);
border-radius: 6px;
overflow: hidden;
}
.code-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 16px;
background: var(--vp-code-block-bg);
border-bottom: 1px solid var(--vp-c-border);
}
/* Props table styles */
.props-table-container {
margin: 16px 0;
overflow-x: auto;
border: 1px solid var(--vp-c-border);
border-radius: 8px;
}
.props-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.props-table thead {
background: var(--vp-c-bg-soft);
border-bottom: 1px solid var(--vp-c-border);
}
/* Interactive demo feedback */
.demo-container:has(.demo-preview:hover) {
border-color: var(--vp-c-brand);
transition: border-color 0.2s;
}
/* Code syntax highlighting in demos */
.demo-preview code {
font-family: var(--vp-font-family-mono);
font-size: 13px;
padding: 2px 6px;
background: var(--vp-code-bg);
border-radius: 4px;
color: var(--vp-code-color);
}