update layout, pdf export for headeranalyzer needs fixing layout

This commit is contained in:
nahakubuilde
2025-07-17 08:33:04 +01:00
parent 518cc2e275
commit 4e4e4f735e
13 changed files with 2377 additions and 1512 deletions

View File

@@ -243,6 +243,11 @@ nav a {
nav a:hover {
text-decoration: underline;
}
nav a.active {
color: #00ff88;
border-bottom: 2px solid #00ff88;
padding-bottom: 2px;
}
.container, .section, .grid {
word-break: break-word;
@@ -262,27 +267,149 @@ nav a:hover {
line-height: 1.4;
}
/* Text wrapping improvements for better PDF export and display */
pre {
white-space: pre-wrap !important;
word-wrap: break-word !important;
word-break: break-word !important;
overflow-wrap: break-word !important;
max-width: 100% !important;
overflow: hidden !important;
}
table {
table-layout: fixed;
width: 100%;
}
td, th {
word-wrap: break-word;
word-break: break-word;
overflow-wrap: break-word;
max-width: 0;
overflow: hidden;
}
/* Specific improvements for the report container */
#report {
word-wrap: break-word;
overflow-wrap: break-word;
}
#report * {
max-width: 100%;
box-sizing: border-box;
}
/* PDF-specific print styles */
@media print {
body {
background-color: white;
color: black;
font-size: 12px;
line-height: 1.4;
background: white !important;
color: black !important;
}
/* Override all colors for print */
* {
background: white !important;
color: black !important;
border-color: #000 !important;
}
/* Make sure containers use full width */
.container {
max-width: 100% !important;
padding: 10px !important;
margin: 0 !important;
}
#report {
max-width: 100% !important;
padding: 0 !important;
margin: 0 !important;
background: white !important;
}
#report * {
word-wrap: break-word !important;
word-break: break-word !important;
overflow-wrap: break-word !important;
max-width: 100% !important;
background: white !important;
color: black !important;
}
#report pre {
font-size: 10px !important;
white-space: pre-wrap !important;
word-break: break-all !important;
background: #f5f5f5 !important;
border: 1px solid #ccc !important;
padding: 5px !important;
}
#report table {
table-layout: fixed !important;
width: 100% !important;
border-collapse: collapse !important;
}
#report td, #report th {
word-wrap: break-word !important;
word-break: break-word !important;
overflow-wrap: break-word !important;
padding: 4px !important;
font-size: 10px !important;
border: 1px solid #000 !important;
background: white !important;
color: black !important;
}
.section {
background-color: white;
color: black;
box-shadow: none;
border: 1px solid #ccc;
page-break-inside: avoid;
margin-bottom: 15px !important;
padding: 10px !important;
border: 1px solid #ccc !important;
background: white !important;
}
.score-circle, .score-inner {
background: white;
color: black;
.status {
background: #f0f0f0 !important;
color: black !important;
border: 1px solid #999 !important;
padding: 2px 5px !important;
}
pre, code {
background: #f5f5f5;
color: black;
border: 1px solid #ccc;
white-space: pre-wrap;
word-break: break-word;
.status.good {
background: #e8f5e8 !important;
color: black !important;
}
.status.warning {
background: #fff3cd !important;
color: black !important;
}
.status.error {
background: #f8d7da !important;
color: black !important;
}
/* Hide buttons in print */
button {
display: none !important;
}
/* Navigation should be hidden */
nav {
display: none !important;
}
h1, h2, h3 {
color: black !important;
border-bottom: 2px solid black !important;
background: white !important;
}
}
@@ -305,3 +432,202 @@ nav a:hover {
grid-template-columns: 1fr;
}
}
.password-generator {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.password-output {
background: #1a1a1a;
border: 2px solid #333;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
font-family: 'Courier New', monospace;
font-size: 18px;
word-break: break-all;
position: relative;
}
.password-text {
color: #00ff88;
font-weight: bold;
margin-bottom: 10px;
}
.copy-btn {
background: #007acc;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.copy-btn:hover {
background: #005999;
}
.copy-btn.copied {
background: #00aa44;
}
.controls {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin: 20px 0;
}
.control-group {
background: #1a1a1a;
border: 1px solid #333;
border-radius: 8px;
padding: 20px;
}
.control-group h3 {
margin-top: 0;
color: #00ff88;
border-bottom: 1px solid #333;
padding-bottom: 10px;
}
.form-row {
margin: 15px 0;
display: flex;
align-items: center;
gap: 10px;
}
.form-row label {
flex: 1;
color: #ccc;
}
.form-row input[type="number"],
.form-row input[type="text"],
.form-row select {
background: #2a2a2a;
border: 1px solid #444;
color: #fff;
padding: 8px;
border-radius: 4px;
width: 120px;
}
.form-row input[type="text"] {
width: 200px;
}
.form-row input[type="checkbox"] {
width: auto;
}
.generate-btn {
background: #00aa44;
color: white;
border: none;
padding: 15px 30px;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
width: 100%;
margin: 20px 0;
}
.generate-btn:hover {
background: #008833;
}
.tab-buttons {
display: flex;
margin-bottom: 20px;
border-radius: 8px;
overflow: hidden;
border: 1px solid #333;
}
.tab-btn {
flex: 1;
background: #2a2a2a;
color: #ccc;
border: none;
padding: 15px;
cursor: pointer;
font-size: 16px;
}
.tab-btn.active {
background: #007acc;
color: white;
}
.tab-btn:hover:not(.active) {
background: #333;
}
.passphrase-controls {
display: none;
}
.passphrase-controls.active {
display: block;
}
/* Notification styles */
.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 12px 20px;
border-radius: 6px;
color: white;
font-weight: bold;
font-size: 14px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 1000;
transform: translateX(100%);
transition: transform 0.3s ease-in-out;
}
.notification.show {
transform: translateX(0);
}
.notification.success {
background: #28a745;
}
.notification.info {
background: #17a2b8;
}
.notification.warning {
background: #ffc107;
color: #212529;
}
.notification.error {
background: #dc3545;
}
@media (max-width: 768px) {
.controls {
grid-template-columns: 1fr;
}
.notification {
top: 10px;
right: 10px;
left: 10px;
transform: translateY(-100%);
}
.notification.show {
transform: translateY(0);
}
}