feat(unified-mobile-material-design): Complete US-115 - Actualizare CSS_PATTERNS.md cu Mobile Material Design
Implemented by Ralph autonomous loop. Iteration: 4 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,8 @@
|
|||||||
6. [Interactive Patterns](#interactive-patterns)
|
6. [Interactive Patterns](#interactive-patterns)
|
||||||
7. [Layout Patterns](#layout-patterns)
|
7. [Layout Patterns](#layout-patterns)
|
||||||
8. [Utility Classes](#utility-classes)
|
8. [Utility Classes](#utility-classes)
|
||||||
9. [Quick Reference](#quick-reference)
|
9. [Mobile Material Design](#mobile-material-design)
|
||||||
|
10. [Quick Reference](#quick-reference)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -956,6 +957,76 @@ Responsive column layout.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Mobile Material Design
|
||||||
|
|
||||||
|
> **Full Documentation:** [docs/MOBILE_PATTERNS.md](./MOBILE_PATTERNS.md)
|
||||||
|
|
||||||
|
ROA2WEB includes a complete mobile component library following Material Design 3 principles. All mobile components are designed for touch interactions and support both light and dark themes.
|
||||||
|
|
||||||
|
### Available Components
|
||||||
|
|
||||||
|
| Component | Location | Description |
|
||||||
|
|-----------|----------|-------------|
|
||||||
|
| `MobileTopBar` | `@shared/components/mobile/` | Fixed top bar with title, back/menu buttons, and actions |
|
||||||
|
| `MobileBottomNav` | `@shared/components/mobile/` | Fixed bottom navigation with router integration |
|
||||||
|
| `MobileSelectionFooter` | `@shared/components/mobile/` | Slide-up action bar for batch operations |
|
||||||
|
| `BottomSheet` | `@shared/components/mobile/` | Modal sheet for filters and forms |
|
||||||
|
| `SwipeableCards` | `@shared/components/mobile/` | Touch carousel for KPI cards |
|
||||||
|
|
||||||
|
### Mobile Breakpoints
|
||||||
|
|
||||||
|
```css
|
||||||
|
/* Mobile-first breakpoints */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
/* Mobile styles - this is where mobile components activate */
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 769px) {
|
||||||
|
/* Tablet and desktop styles */
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1024px) {
|
||||||
|
/* Desktop-only styles */
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Key Mobile Layout Tokens
|
||||||
|
|
||||||
|
| Token | Value | Use |
|
||||||
|
|-------|-------|-----|
|
||||||
|
| `--header-height` | 56px | TopBar and BottomNav height |
|
||||||
|
| Touch target | 48×48px | Minimum button/tap area |
|
||||||
|
| `--z-fixed` | 1030 | Fixed navigation elements |
|
||||||
|
| `--z-modal` | 1050 | BottomSheet and overlays |
|
||||||
|
|
||||||
|
### Quick Example
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<template>
|
||||||
|
<div class="mobile-view">
|
||||||
|
<MobileTopBar title="My View" :showMenu="true" />
|
||||||
|
|
||||||
|
<main class="mobile-content">
|
||||||
|
<!-- Content with padding for fixed bars -->
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<MobileBottomNav />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.mobile-content {
|
||||||
|
padding-top: 56px; /* MobileTopBar */
|
||||||
|
padding-bottom: 56px; /* MobileBottomNav */
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
```
|
||||||
|
|
||||||
|
**For complete documentation including all props, events, and usage patterns, see [MOBILE_PATTERNS.md](./MOBILE_PATTERNS.md).**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Quick Reference
|
## Quick Reference
|
||||||
|
|
||||||
### Most Common Patterns
|
### Most Common Patterns
|
||||||
@@ -1059,6 +1130,6 @@ All patterns support:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Last Updated:** 2025-11-19
|
**Last Updated:** 2026-01-12
|
||||||
**Version:** 2.0.0 (Post CSS Refactoring Phase 6)
|
**Version:** 2.1.0 (Added Mobile Material Design section)
|
||||||
**Maintained By:** Frontend Team
|
**Maintained By:** Frontend Team
|
||||||
|
|||||||
@@ -288,8 +288,8 @@
|
|||||||
"Rezumat scurt al componentelor disponibile",
|
"Rezumat scurt al componentelor disponibile",
|
||||||
"Breakpoint-uri mobile documentate"
|
"Breakpoint-uri mobile documentate"
|
||||||
],
|
],
|
||||||
"passes": false,
|
"passes": true,
|
||||||
"notes": ""
|
"notes": "Completed in iteration 4"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "US-116",
|
"id": "US-116",
|
||||||
|
|||||||
@@ -544,3 +544,9 @@ Mon Jan 12 09:44:54 AM UTC 2026
|
|||||||
[2026-01-12 11:12:53] Working on story: US-118
|
[2026-01-12 11:12:53] Working on story: US-118
|
||||||
[2026-01-12 11:12:53] Running Claude... (log: /workspace/roa2web/scripts/ralph/logs/iteration_3_US-118.log)
|
[2026-01-12 11:12:53] Running Claude... (log: /workspace/roa2web/scripts/ralph/logs/iteration_3_US-118.log)
|
||||||
[2026-01-12 11:16:15] SUCCESS: Story US-118 passed!
|
[2026-01-12 11:16:15] SUCCESS: Story US-118 passed!
|
||||||
|
[2026-01-12 11:16:16] Changes committed
|
||||||
|
[2026-01-12 11:16:16] Progress: 16/20 stories completed
|
||||||
|
[2026-01-12 11:16:18] === Iteration 4/50 ===
|
||||||
|
[2026-01-12 11:16:18] Working on story: US-115
|
||||||
|
[2026-01-12 11:16:18] Running Claude... (log: /workspace/roa2web/scripts/ralph/logs/iteration_4_US-115.log)
|
||||||
|
[2026-01-12 11:17:28] SUCCESS: Story US-115 passed!
|
||||||
|
|||||||
Reference in New Issue
Block a user