|
326 | 326 | h1, h2, h3, h4, h5, h6 { |
327 | 327 | color: var(--dark-gray); /* Use variable that changes */ |
328 | 328 | transition: color 0.3s ease; |
| 329 | + text-align: left; /* Ensure headings remain left-aligned */ |
329 | 330 | } |
330 | 331 |
|
331 | 332 | h1 { font-size: 2.5rem; margin-bottom: 20px; } |
332 | 333 | h2 { font-size: 2rem; margin: 30px 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); transition: border-color 0.3s ease; } |
333 | 334 | h3 { font-size: 1.5rem; margin: 25px 0 15px; } |
334 | 335 | p { margin-bottom: 16px; } |
335 | 336 |
|
| 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 | + |
336 | 375 | /* Feature grid */ |
337 | 376 | .feature-grid { |
338 | 377 | display: grid; |
|
427 | 466 | font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace; |
428 | 467 | font-size: 0.95rem; |
429 | 468 | 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; |
430 | 473 | } |
431 | 474 |
|
432 | 475 | /* Inline code */ |
|
438 | 481 | font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace; |
439 | 482 | font-size: 0.9em; |
440 | 483 | 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; |
441 | 488 | } |
442 | 489 | /* Ensure code inside pre doesn't get the inline style */ |
443 | 490 | pre code { |
|
446 | 493 | padding: 0; |
447 | 494 | border-radius: 0; |
448 | 495 | font-size: inherit; |
| 496 | + text-align: left; /* Explicitly left-align */ |
449 | 497 | } |
450 | 498 |
|
451 | 499 |
|
|
516 | 564 | width: 100%; /* Take full width if wrapping */ |
517 | 565 | margin-top: 10px; /* Add space if wraps below logo */ |
518 | 566 | } |
| 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 | + } */ |
519 | 576 | } |
520 | 577 |
|
521 | 578 | @media (max-width: 480px) { |
|
534 | 591 | .theme-switcher button:last-child { |
535 | 592 | /* Uncomment if stacking is desired */ |
536 | 593 | /* border-bottom: none; */ |
537 | | - } |
| 594 | + } |
538 | 595 | .github-button { |
539 | 596 | width: 100%; /* Make GitHub button full width */ |
540 | 597 | justify-content: center; /* Center content in button */ |
|
0 commit comments