Shared Components: - Add CompanySelector.vue and PeriodSelector.vue components - Add AppHeader.vue and SlideMenu.vue layout components - Add shared stores factories (companies.js, accountingPeriod.js) - Add shared routes factories (companies.py, calendar.py) - Add shared models (company.py, calendar.py) - Add shared layout styles (header.css, navigation.css) Data Entry App: - Update CLAUDE.md with prod/test server documentation - Improve nomenclature sync service with better error handling - Update receipts router and CRUD operations - Add company/period stores using shared factories - Update App.vue layout with shared components - Fix OCRUploadZone file handling Reports App: - Refactor stores to use shared factories - Update App.vue to use shared layout components Infrastructure: - Replace start-data-entry.sh with separate dev/test scripts - Add .claude/rules for authentication, backend patterns, etc. - Add implementation plan for OCR receipt improvements - Clean up old documentation files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
168 lines
3.1 KiB
CSS
168 lines
3.1 KiB
CSS
/* Shared Header Styles - ROA2WEB */
|
|
|
|
/* Header Container */
|
|
.header-container {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: var(--z-header, 100);
|
|
background: var(--color-bg, #fff);
|
|
border-bottom: 1px solid var(--color-border, #e5e7eb);
|
|
height: var(--header-height, 60px);
|
|
padding: 0 var(--space-lg, 24px);
|
|
}
|
|
|
|
/* Gradient Header Variant */
|
|
.header-container--gradient {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.header-container--gradient .header-brand {
|
|
color: white;
|
|
}
|
|
|
|
.header-container--gradient .hamburger-line {
|
|
background-color: white;
|
|
}
|
|
|
|
/* Header Navigation */
|
|
.header-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
height: 100%;
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Header Left Section */
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md, 16px);
|
|
}
|
|
|
|
/* Brand/Logo */
|
|
.header-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm, 8px);
|
|
font-size: var(--text-lg, 18px);
|
|
font-weight: var(--font-semibold, 600);
|
|
color: var(--color-primary, #2563eb);
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-brand:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Header Actions (right side) */
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md, 16px);
|
|
}
|
|
|
|
/* Hamburger Button */
|
|
.hamburger-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
z-index: 10;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.hamburger-btn:hover {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.hamburger-line {
|
|
width: 100%;
|
|
height: 3px;
|
|
background-color: var(--color-primary, #2563eb);
|
|
border-radius: 2px;
|
|
transition: all 0.3s ease;
|
|
transform-origin: center;
|
|
}
|
|
|
|
/* Hamburger Animation - X state */
|
|
.hamburger-btn.active .hamburger-line:nth-child(1) {
|
|
transform: translateY(9px) rotate(45deg);
|
|
}
|
|
|
|
.hamburger-btn.active .hamburger-line:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
|
|
.hamburger-btn.active .hamburger-line:nth-child(3) {
|
|
transform: translateY(-9px) rotate(-45deg);
|
|
}
|
|
|
|
/* Header User Menu */
|
|
.header-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm, 8px);
|
|
padding: var(--space-sm, 8px);
|
|
border-radius: var(--radius-md, 6px);
|
|
cursor: pointer;
|
|
transition: background-color 0.15s ease;
|
|
color: var(--color-text, #111827);
|
|
}
|
|
|
|
.header-user:hover {
|
|
background-color: var(--color-bg-secondary, #f9fafb);
|
|
}
|
|
|
|
/* Gradient header user menu */
|
|
.header-container--gradient .header-user {
|
|
color: white;
|
|
}
|
|
|
|
.header-container--gradient .header-user:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Mobile Responsive */
|
|
@media (max-width: 768px) {
|
|
.header-container {
|
|
padding: 0 var(--space-md, 12px);
|
|
}
|
|
|
|
.header-left {
|
|
gap: var(--space-sm, 8px);
|
|
}
|
|
|
|
.header-actions {
|
|
gap: var(--space-sm, 8px);
|
|
}
|
|
|
|
.header-brand {
|
|
font-size: var(--text-base, 16px);
|
|
}
|
|
|
|
/* Hide text-only elements on mobile */
|
|
.desktop-only {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.header-brand span {
|
|
display: none;
|
|
}
|
|
|
|
.header-brand i {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|