Commit graph

21 commits

Author SHA1 Message Date
Joachim
b448d40514 Use the right snippets on Templates 2021-06-07 18:13:24 +02:00
Mouse Reeve
65f78b45da Merge branch 'main' into templatetags 2021-05-11 15:41:07 -07:00
Mouse Reeve
87bf863ac6
Revert "Preserve width when cover images fail to load" 2021-05-11 15:29:18 -07:00
Mouse Reeve
ac2b63d0cd More templatetag files 2021-05-11 15:14:42 -07:00
Mouse Reeve
680f300e7c Preserve width when cover images fail to load 2021-05-11 08:15:02 -07:00
Mouse Reeve
c47f672238 Removes aria-hidden from covers 2021-05-02 06:59:47 -07:00
Fabien Basmaison
953dff90bb cover: tweak styles:
- `optimizeQuality` > `smooth` (CSS language evolution)
- Use `auto` instead of a fixed width.
- Add exceptions for heights and apply them to some previously modified templates.
- Remove `is-large` exception.
- Widen the content column on list curation.
2021-04-25 15:37:46 +02:00
Fabien Basmaison
eea8b4e750 cover: Handle covers with specific heights:
- Have an explicit contextual class on `cover-container`.
- Use more flexible, consistent and searchable variable name for passing classes to covers.
- Consistently use `'…'` with django variables.
- Give the option to not hide covers to screen readers.
- consitently give a title to the cover container if `alt_text` exists.
- [lists] Remove `.content` which is applying too extensive default styles.
2021-04-24 21:27:05 +02:00
Fabien Basmaison
783cc6edf0 cover: List curation:
- Reduce Padding around covers.
- Remove `content` which is applying too extensive default styles.
- Style headings.
- Replace table with definition list.
- Clip cover container to avoid caption overflowing.
2021-04-24 15:49:30 +02:00
Fabien Basmaison
7f0b3184a1 cover: Use book-cover as component:
- Avoid specifying context-dependent values in CSS for components. Those values can be defined by the context calling the component.
- Use `<figure>` with optional caption.
- Reduce redundant markup.
- Allow more variables to be passed to the book-cover (image path and class for the container).
- Hide the book cover to screen readers.
2021-04-24 12:48:55 +02:00
Fabien Basmaison
4c4801e2da Add structured data to Book (#84). 2021-04-09 23:57:49 +02:00
Mouse Reeve
e78982b4c7 Simplifies reading goal progress covers view 2021-03-31 11:42:57 -07:00
Mouse Reeve
b895059f03 Uses same alt text generation for books with no cover 2021-03-07 07:42:02 -08:00
Ned Zimmerman
263b13f157 Adapt tab handler to vanilla JS, fix focus jump, improve accessible naming of tabs/panels 2021-02-28 14:04:04 -04:00
Mouse Reeve
fd2f452b46 Adds title along with alt attributes on images 2020-12-22 08:26:02 -08:00
Mouse Reeve
39dc0501a5 Make alt text a model property 2020-12-17 12:30:49 -08:00
Mouse Reeve
1e08eeb4c2 Renames custom template tags file 2020-12-12 18:25:57 -08:00
Mouse Reeve
0bea615b82 Tags and tables 2020-09-29 14:11:55 -07:00
Mouse Reeve
3dc43aa81c Book and editions page styles 2020-09-29 13:11:52 -07:00
Mouse Reeve
24c28876af Cleans up status display 2020-09-28 21:08:42 -07:00
Mouse Reeve
f77c156733 rename main code directory 2020-09-17 13:30:54 -07:00
Renamed from fedireads/templates/snippets/book_cover.html (Browse further)