Commit 74b1187
authored
Add help text to Archive.org borrowable links (#634)
* Add help text to Archive.org borrowable links
Add a collapsible help tip (similar to the existing WorldCat tip) for
Archive.org links that are borrowables (identified by /mode/ in URL).
The tip explains that the book can be borrowed for free and links to
Archive.org's official borrowing guide.
Fixes #613
Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>
* Simplify Archive.org help text per review feedback
- Remove redundant book-reader icon and arrow from help text
- Simplify wording to: "Reading this book on Archive.org may require a free account. Learn more"
- Remove target="_blank" from learn more link for consistency
Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>
* Fix link styling: add underline to Learn more link
Ensure the link is visually distinguishable on both dark and white
backgrounds by adding text-decoration: underline.
Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>
* Fix link styling via SCSS instead of inline style
Move link underline styling from inline style to the existing
.content_links .copyright div rule in content-perma.scss.
Use color: inherit so the link matches surrounding text on
both dark and white backgrounds.
Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>
* Fix font-family: inherit serif font for help text link
The .content_links a rule sets sans-serif font-family globally.
Override with font-family: inherit so the Learn more link matches
the surrounding serif body text.
Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>
* Move link styling to nimitta.scss for global coverage
The previous fix in content-perma.scss only applied to content pages,
not tag pages. Move the .copyright div a override into nimitta.scss
(inside .content_links) so it applies everywhere. Revert
content-perma.scss to its original state.
Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>
* Add target=_blank back to Learn more link
Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>
---------
Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>1 parent 66e4bc4 commit 74b1187
3 files changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
6 | 14 | | |
7 | 15 | | |
8 | 16 | | |
| |||
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
47 | | - | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
543 | 548 | | |
544 | 549 | | |
545 | 550 | | |
| |||
636 | 641 | | |
637 | 642 | | |
638 | 643 | | |
639 | | - | |
| 644 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 165 | + | |
0 commit comments