Fix print preview paper dimensions and cleanup redundant CSS files

- Change print preview to landscape orientation (11" x 8.5")
- Fix paper div to render at exact 1056x816 pixels
- Add 48px padding (0.5 inches) directly to paper div
- Remove CSS file redundancy: deleted styles.css.backup, styles/base.css, styles/default.css
- Improve modal sizing to accommodate paper dimensions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Connor Johnstone
2025-09-11 18:53:40 -04:00
parent 73d191c5ca
commit 78db2cc00f
4 changed files with 9 additions and 7070 deletions

View File

@@ -6,8 +6,8 @@
.print-preview-modal { .print-preview-modal {
width: 90vw; width: 90vw;
max-width: 1200px; max-width: 1200px;
height: 80vh; height: auto; /* Let modal size itself based on content */
max-height: none; max-height: 90vh; /* But don't exceed viewport */
margin: 5vh auto; margin: 5vh auto;
} }
@@ -131,7 +131,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: flex-start; align-items: flex-start;
overflow: hidden; overflow: auto; /* Allow scrolling if paper is larger than container */
background: #f5f5f5; background: #f5f5f5;
border-radius: 8px; border-radius: 8px;
padding: 2rem; padding: 2rem;
@@ -147,15 +147,17 @@
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
border-radius: 2px; border-radius: 2px;
/* transform: scale() is now applied dynamically via inline style */ /* transform: scale() is now applied dynamically via inline style */
width: 11in; /* Actual letter width */ width: 1056px; /* 11in at 96 DPI - LANDSCAPE width */
min-height: 8.5in; /* Letter height */ height: 816px; /* 8.5in at 96 DPI - LANDSCAPE height */
padding: 48px; /* 0.5 inches at 96 DPI */
box-sizing: border-box; /* Include padding in dimensions */
overflow: hidden; overflow: hidden;
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
flex-shrink: 0; /* Don't shrink in flex container */
} }
.print-preview-content { .print-preview-content {
padding: 1rem;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
} }
@@ -1171,4 +1173,4 @@
.print-preview-paper[data-start-hour="8"][data-end-hour="20"]:has(.time-slot.quarter-mode) .time-labels, .print-preview-paper[data-start-hour="8"][data-end-hour="20"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="8"][data-end-hour="20"]:has(.time-slot.quarter-mode) .week-days-grid, .print-preview-paper[data-start-hour="8"][data-end-hour="20"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="7"][data-end-hour="19"]:has(.time-slot.quarter-mode) .time-labels, .print-preview-paper[data-start-hour="7"][data-end-hour="19"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="7"][data-end-hour="19"]:has(.time-slot.quarter-mode) .week-days-grid { min-height: 1530px !important; } .print-preview-paper[data-start-hour="7"][data-end-hour="19"]:has(.time-slot.quarter-mode) .week-days-grid { min-height: 1530px !important; }

File diff suppressed because it is too large Load Diff

View File

@@ -1,51 +0,0 @@
/* Base Styles - Always Loaded */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
color: #333;
line-height: 1.6;
}
.app {
min-height: 100vh;
display: flex;
flex-direction: row;
}
.login-layout {
min-height: 100vh;
display: flex;
flex-direction: column;
width: 100%;
}
/* Base Layout */
.main-content {
flex: 1;
margin-left: 280px;
overflow-x: hidden;
}
/* Basic Form Elements */
input, select, textarea, button {
font-family: inherit;
}
/* Utility Classes */
.loading {
opacity: 0.7;
}
.error {
color: #dc3545;
}
.success {
color: #28a745;
}

File diff suppressed because it is too large Load Diff