Commit 15a7ee2
fix: rework text document justification (#79)
* fix: rework text document justification
- All text aligned to left by default
- Add `text-justify` CSS class to apply to the `body` element
- (doc) Justify the main doc file `index.html`.
- (doc) Reformat the code snippet for the first point of "Getting Started"
section: code-inline -> code-block
- Sidenotes behavior changes:
- Right sidenotes explicitly aligned to left by default for `@media (width >= 1050px)`
- Left sidenotes explicitly aligned to right by default for `@media (width >= 1050px)`
- All sidenotes aligned to left by default for `@media (width <= 1050px)`
- All sidenotes justified for `body.text-justify`
- Add `break-all` class to allow line breaks between any two characters
- Justify the footnotes text (previously left-aligned by default while
the main text was justified), when `body.text-justify` is used
- (doc) Add `break-all` class to footnotes links to improve word spacing
* Add some soft hyphens to improve the justification
* docs: tweak wording and fix typo
* fix: decrease `text-justify` class specificity
---------
Co-authored-by: Vincent Dörig <[email protected]>1 parent 5297bc9 commit 15a7ee2
3 files changed
Lines changed: 68 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
213 | 232 | | |
214 | 233 | | |
215 | 234 | | |
| |||
644 | 663 | | |
645 | 664 | | |
646 | 665 | | |
647 | | - | |
| 666 | + | |
648 | 667 | | |
649 | 668 | | |
650 | 669 | | |
651 | 670 | | |
652 | 671 | | |
653 | | - | |
| 672 | + | |
654 | 673 | | |
655 | 674 | | |
656 | 675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
207 | | - | |
208 | 211 | | |
209 | | - | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
250 | 261 | | |
251 | 262 | | |
252 | 263 | | |
| |||
557 | 568 | | |
558 | 569 | | |
559 | 570 | | |
| 571 | + | |
| 572 | + | |
560 | 573 | | |
561 | 574 | | |
562 | 575 | | |
563 | 576 | | |
564 | 577 | | |
565 | 578 | | |
566 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
567 | 588 | | |
568 | 589 | | |
569 | 590 | | |
| |||
634 | 655 | | |
635 | 656 | | |
636 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
637 | 669 | | |
638 | 670 | | |
639 | 671 | | |
640 | 672 | | |
641 | 673 | | |
642 | 674 | | |
643 | 675 | | |
644 | | - | |
| 676 | + | |
645 | 677 | | |
646 | | - | |
647 | 678 | | |
648 | 679 | | |
649 | 680 | | |
| |||
0 commit comments