auto-claude: 6.2 - Test concept section on mobile viewports, ensure diagrams scale appropriately
- Added mobile-specific CSS optimizations for concept section - Tablet (768px): Reduced diagram font to 0.75rem, padding to 0.75rem - Mobile (480px): Further reduced to 0.7rem font, 0.5rem padding - Added momentum scrolling for iOS (-webkit-overflow-scrolling: touch) - Created comprehensive mobile viewport test report - Tested across iPhone SE (320px), iPhone 12 (390px), iPad (768px) - Maintained readability, accessibility, and RTL support
This commit is contained in:
51
src/main.css
51
src/main.css
@@ -1419,6 +1419,32 @@ input:checked + .toggle-slider::before {
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* Concept section mobile adjustments */
|
||||
.concept-section {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.concept-diagram {
|
||||
padding: var(--spacing-sm);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.3;
|
||||
/* Enable horizontal scrolling with better mobile UX */
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
/* Add visual hint that content is scrollable */
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--panel-bg) 0%,
|
||||
var(--panel-bg) calc(100% - 20px),
|
||||
rgba(94, 75, 139, 0.05) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.concept-container-vs-item {
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
@@ -1445,6 +1471,31 @@ input:checked + .toggle-slider::before {
|
||||
.code-input {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* Concept section small mobile adjustments */
|
||||
.concept-explanation {
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.concept-diagram {
|
||||
padding: var(--spacing-xs);
|
||||
font-size: 0.7rem;
|
||||
line-height: 1.25;
|
||||
/* Smaller border radius on mobile */
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.concept-container-vs-item {
|
||||
padding: var(--spacing-xs);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.concept-summary {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
/* ================== RTL SUPPORT ================== */
|
||||
|
||||
Reference in New Issue
Block a user