- Introduce `create_outlook_html` function for generating Outlook-compatible newsletter HTML. - Update dashboard to include `outlook_html` in the response. - Modify newsletter generation logic to support separate handling of Outlook HTML. - Improve CSS styles for newsletter preview and layout adjustments. - Add new button for downloading HTML directly from the dashboard.
27 lines
1.9 KiB
CSS
27 lines
1.9 KiB
CSS
* { box-sizing: border-box; }
|
|
body { margin: 0; font-family: Arial, sans-serif; background: #f5f7fb; color: #1f2430; }
|
|
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: #0c2c5a; color: #fff; }
|
|
.container { max-width: 1100px; margin: 1rem auto; padding: 0 1rem; }
|
|
.card { background: #fff; border: 1px solid #dde3ef; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
|
|
.narrow { max-width: 420px; margin: 2rem auto; }
|
|
.form-grid { display: grid; gap: 0.75rem; }
|
|
label { display: grid; gap: 0.3rem; font-weight: 600; }
|
|
input, button, textarea { font: inherit; padding: 0.55rem; }
|
|
textarea { width: 100%; resize: vertical; }
|
|
button { width: fit-content; background: #1b5dbf; color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
|
|
.btn-secondary { background: #334155; }
|
|
.copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
|
|
.copy-status { font-size: 0.92rem; color: #64748b; }
|
|
.copy-status.success { color: #027a48; }
|
|
.copy-status.error { color: #b42318; }
|
|
.newsletter-preview-frame { width: 100%; min-height: 720px; border: 1px solid #D7DEE8; border-radius: 6px; background: #EEF2F7; box-shadow: 0 2px 8px rgba(0, 51, 102, 0.08); }
|
|
.card h3 { color: #003366; margin-top: 0; }
|
|
.hidden-source { display: none; }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { border-bottom: 1px solid #e6ebf4; text-align: left; padding: 0.55rem; vertical-align: top; }
|
|
.checkbox { display: flex; align-items: center; gap: 0.45rem; font-weight: 500; }
|
|
.display-options { border: 1px solid #dde3ef; border-radius: 6px; padding: 0.75rem; display: grid; gap: 0.45rem; }
|
|
.display-options legend { font-weight: 600; padding: 0 0.25rem; }
|
|
.error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: 0.6rem; border-radius: 4px; margin: 0 0 0.75rem; }
|
|
.hint { color: #64748b; font-size: 0.92rem; margin: 0 0 0.6rem; }
|