style: enhance CSS for improved layout and responsiveness, integrate Ubuntu font, and streamline export options across templates

This commit is contained in:
Jennie Robinson Faber 2025-08-17 08:17:28 +01:00
parent 3b33ff3819
commit eede87a273
6 changed files with 1130 additions and 1745 deletions

View file

@ -4,13 +4,12 @@
<WizardSubnav />
<!-- Export Options - Top -->
<div class="flex justify-center py-6">
<ExportOptions
:export-data="exportData"
filename="conflict-resolution-framework"
title="Conflict Resolution Framework"
/>
</div>
<ExportOptions
:export-data="exportData"
filename="conflict-resolution-framework"
title="Conflict Resolution Framework"
/>
<div
class="template-wrapper bg-white dark:bg-neutral-950 text-neutral-900 dark:text-neutral-100"
@ -822,13 +821,11 @@
</div>
<!-- Export Options - Bottom -->
<div class="flex justify-center py-6">
<ExportOptions
:export-data="exportData"
filename="conflict-resolution-framework"
title="Conflict Resolution Framework"
/>
</div>
</div>
</template>
@ -1392,57 +1389,9 @@ const exportData = computed(() => ({
</script>
<style scoped>
/* Ubuntu font import */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Ubuntu+Mono:wght@400;700&display=swap");
@reference "tailwindcss";
/* Template wrapper and document styling */
/* rely on Tailwind bg utilities applied on wrapper */
.template-wrapper {
min-height: 100vh;
padding: 2rem;
font-family: "Ubuntu", monospace;
position: relative;
}
.template-wrapper::before {
content: "";
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: radial-gradient(circle at 25% 25%, black 1px, transparent 1px),
radial-gradient(circle at 75% 75%, black 1px, transparent 1px);
background-size: 8px 8px, 8px 8px;
background-position: 0 0, 4px 4px;
opacity: 0.1;
pointer-events: none;
z-index: -1;
}
.document-page::before {
content: "";
position: absolute;
top: 4px;
left: 4px;
right: -4px;
bottom: -4px;
background: black;
background-image: radial-gradient(white 1px, transparent 1px);
background-size: 2px 2px;
z-index: -1;
}
.document-page::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 1px solid black;
z-index: 1;
pointer-events: none;
}
/* Template-specific styles that aren't in main.css */
/* Progress bar */
.progress-bar {
@ -1461,30 +1410,6 @@ const exportData = computed(() => ({
transition: width 0.3s ease;
}
/* Document header */
.document-header {
text-align: center;
margin-bottom: 2rem;
}
.document-title {
font-size: 2.25rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
margin: 0 0 0.5rem;
padding: 1rem 0;
border-top: 2px solid #111827;
border-bottom: 2px solid #111827;
}
.subtitle {
color: #666;
font-size: 1.1rem;
margin: 0;
}
/* Quick start section */
.quick-start {
background: #f0f7ff;
@ -1528,11 +1453,6 @@ const exportData = computed(() => ({
color: white;
}
/* Section styling */
.section-card {
@apply border border-neutral-200 dark:border-neutral-800 rounded-lg p-5 mb-8;
}
/* Styling for sections when toggled off */
.section-card:has(.space-y-6[style*="display: none"]) {
opacity: 0.7;
@ -1542,17 +1462,6 @@ const exportData = computed(() => ({
color: #666;
}
.section-header {
/* presentational container only */
}
.section-title {
font-size: 1.75rem;
font-weight: 800;
color: inherit;
margin: 0 0 1rem 0;
}
/* Toggle styling */
.toggle-section {
display: flex;
@ -1589,84 +1498,6 @@ const exportData = computed(() => ({
transform: translateX(24px);
}
/* Form styling */
.form-group-large {
margin-bottom: 1.5rem;
}
/* Ensure form field containers are also full-width */
.form-group-large {
width: 100%;
}
.form-group-large > * {
width: 100%;
}
/* Ensure consistent alignment for all form fields */
.form-group-large :deep(textarea),
.form-group-large :deep(input),
.form-group-large :deep(select),
.form-group-large :deep(.ui-select),
.form-group-large :deep(.ui-input),
.form-group-large :deep(.ui-textarea) {
margin-left: 0 !important;
padding-left: 0.75rem !important;
}
/* Additional targeting for UInput, USelect, UTextarea components */
.form-group-large :deep(.u-input),
.form-group-large :deep(.u-select),
.form-group-large :deep(.u-textarea),
.form-group-large :deep([data-headlessui-state]),
.form-group-large :deep(.relative) {
margin-left: 0 !important;
}
.form-group-large :deep(.u-input input),
.form-group-large :deep(.u-select select),
.form-group-large :deep(.u-textarea textarea) {
margin-left: 0 !important;
padding-left: 0.75rem !important;
}
.help-text {
/* moved to inline classes */
}
.checkbox-group {
@apply flex flex-col space-y-3;
}
.checkbox-item {
@apply flex;
}
/* Approach radio styling removed - using pure Tailwind classes */
.values-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 0.75rem;
margin-top: 10px;
}
.inline-field {
display: inline-block;
margin: 0 0.25rem;
min-width: 120px;
border: none;
background: #f9fafb;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
}
.content-paragraph {
margin-bottom: 0.75rem;
line-height: 1.6;
text-align: left;
}
/* Validation error styling */
.validation-error {
color: #ef4444;
@ -1702,21 +1533,6 @@ const exportData = computed(() => ({
background: #5856eb;
}
/* Bottom export controls */
.export-buttons-bottom {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
justify-content: center;
}
.export-btn.large svg {
width: 20px;
height: 20px;
}
.close-preview-btn {
background: #ef4444;
color: white;
@ -1857,169 +1673,4 @@ html.dark .policy-preview code {
.policy-preview em {
font-style: italic;
}
/* Export controls */
.export-btn {
/* retained for bitmap overrides below; core layout now via Tailwind */
}
/* Hide elements from print */
.no-print,
.no-pdf {
display: block;
}
/* Print styles */
@media print {
.no-print,
.no-pdf {
display: none !important;
}
.template-wrapper {
background: white !important;
padding: 0 !important;
}
.document-page {
max-width: none !important;
box-shadow: none !important;
border-radius: 0 !important;
padding: 0 !important;
}
.document-title {
font-size: 18pt;
background: none;
padding: 0.5rem 0;
border-width: 1px;
}
.section-title {
font-size: 14pt;
page-break-after: avoid;
}
.section-card {
break-inside: avoid;
margin-bottom: 1rem;
padding: 0.5rem;
border: 1px solid #ccc;
}
.checkbox-item {
font-size: 10pt;
margin: 2pt 0;
}
.inline-field {
background: none !important;
border: none !important;
border-bottom: 1pt solid #000 !important;
padding: 2pt !important;
}
}
/* Bitmap aesthetic overrides - remove all rounded corners */
* {
border-radius: 0 !important;
font-family: "Ubuntu", monospace !important;
}
/* Form fields with bitmap styling */
input,
textarea,
select {
border: 1px solid black !important;
background: white !important;
color: black !important;
font-family: "Ubuntu Mono", monospace !important;
}
input:focus,
textarea:focus,
select:focus {
outline: 2px solid black !important;
outline-offset: -2px !important;
background: white !important;
}
/* Dark mode form fields */
html.dark input,
html.dark textarea,
html.dark select {
border: 1px solid white !important;
background: #0a0a0a !important;
color: white !important;
}
html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
outline: 2px solid white !important;
background: #0a0a0a !important;
}
.export-btn {
@apply bg-white border border-black text-black font-mono uppercase font-normal tracking-wide;
}
.export-btn:hover {
@apply bg-black text-white -translate-x-px -translate-y-px;
}
.export-btn.primary {
@apply bg-black text-white;
}
.export-btn.primary:hover {
@apply bg-black -translate-x-px -translate-y-px;
}
/* Remove any card styling roundness */
.section-card,
.form-group-large {
border-radius: 0 !important;
}
/* Document titles */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Ubuntu", monospace !important;
color: inherit !important;
}
/* All text */
p,
span,
div {
color: inherit !important;
font-family: "Ubuntu", monospace !important;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.template-wrapper {
padding: 1rem;
}
.preset-buttons {
flex-direction: column;
}
.values-grid {
grid-template-columns: 1fr;
}
.export-content {
flex-direction: column;
align-items: stretch;
gap: 1rem;
}
}
</style>