Skip to content

Commit 5c6a286

Browse files
committed
Added Justification text-format to website
1 parent c321a0f commit 5c6a286

1 file changed

Lines changed: 58 additions & 1 deletion

File tree

index.html

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,52 @@
326326
h1, h2, h3, h4, h5, h6 {
327327
color: var(--dark-gray); /* Use variable that changes */
328328
transition: color 0.3s ease;
329+
text-align: left; /* Ensure headings remain left-aligned */
329330
}
330331

331332
h1 { font-size: 2.5rem; margin-bottom: 20px; }
332333
h2 { font-size: 2rem; margin: 30px 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); transition: border-color 0.3s ease; }
333334
h3 { font-size: 1.5rem; margin: 25px 0 15px; }
334335
p { margin-bottom: 16px; }
335336

337+
/* *** ADDED/MODIFIED RULES FOR JUSTIFICATION *** */
338+
/* Justify main content paragraphs and list items within sections */
339+
main section p,
340+
main section li {
341+
text-align: justify;
342+
/* Optional but recommended: Enable hyphenation for better flow */
343+
hyphens: auto;
344+
-webkit-hyphens: auto; /* Safari/Chrome */
345+
-ms-hyphens: auto; /* IE/Edge */
346+
}
347+
348+
/* Ensure paragraphs inside specific boxes remain left-aligned */
349+
.info-box p,
350+
.warning-box p,
351+
.disclaimer-box p,
352+
.feature-card p, /* Also keep feature card text left-aligned */
353+
.step-content p, /* And step content */
354+
.hero p, /* And hero paragraph */
355+
footer p /* And footer paragraphs */
356+
{
357+
text-align: left;
358+
hyphens: none; /* Disable hyphens here */
359+
-webkit-hyphens: none;
360+
-ms-hyphens: none;
361+
}
362+
363+
/* Explicitly keep list items in requirement/post-install left-aligned if justification looks odd */
364+
/* You might need to adjust this based on visual preference */
365+
#requirements ul li,
366+
#next-steps ol li {
367+
text-align: left; /* Keep lists in these specific sections left-aligned */
368+
hyphens: none;
369+
-webkit-hyphens: none;
370+
-ms-hyphens: none;
371+
}
372+
/* *** END OF ADDED/MODIFIED RULES *** */
373+
374+
336375
/* Feature grid */
337376
.feature-grid {
338377
display: grid;
@@ -427,6 +466,10 @@
427466
font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
428467
font-size: 0.95rem;
429468
transition: background-color 0.3s ease, color 0.3s ease;
469+
text-align: left; /* Ensure preformatted text is left-aligned */
470+
hyphens: none;
471+
-webkit-hyphens: none;
472+
-ms-hyphens: none;
430473
}
431474

432475
/* Inline code */
@@ -438,6 +481,10 @@
438481
font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
439482
font-size: 0.9em;
440483
transition: background-color 0.3s ease, color 0.3s ease;
484+
text-align: left; /* Ensure inline code is left-aligned */
485+
hyphens: none;
486+
-webkit-hyphens: none;
487+
-ms-hyphens: none;
441488
}
442489
/* Ensure code inside pre doesn't get the inline style */
443490
pre code {
@@ -446,6 +493,7 @@
446493
padding: 0;
447494
border-radius: 0;
448495
font-size: inherit;
496+
text-align: left; /* Explicitly left-align */
449497
}
450498

451499

@@ -516,6 +564,15 @@
516564
width: 100%; /* Take full width if wrapping */
517565
margin-top: 10px; /* Add space if wraps below logo */
518566
}
567+
568+
/* Justification might look worse on very narrow screens, optionally revert */
569+
/* main section p,
570+
main section li {
571+
text-align: left;
572+
hyphens: none;
573+
-webkit-hyphens: none;
574+
-ms-hyphens: none;
575+
} */
519576
}
520577

521578
@media (max-width: 480px) {
@@ -534,7 +591,7 @@
534591
.theme-switcher button:last-child {
535592
/* Uncomment if stacking is desired */
536593
/* border-bottom: none; */
537-
}
594+
}
538595
.github-button {
539596
width: 100%; /* Make GitHub button full width */
540597
justify-content: center; /* Center content in button */

0 commit comments

Comments
 (0)