Commit graph

122 commits

Author SHA1 Message Date
Mouse Reeve d1b788b61f Adds inventaire link to book page 2021-04-29 11:14:20 -07:00
Fabien Basmaison 8ddc292ee6 cover: Change the logic again:
- Work on feeds.
- Add `.is-cover` to modify the behaviours of columns.
- Only apply logic for dimensions on the cover container; too many contextual side effects otherwise.
- Add classes to dimension and align, including auto margins for flex.
- Rename classes in templates accordingly.
2021-04-27 16:24:20 +02:00
Fabien Basmaison 26cacf502c Rationalise behaviours of context, container and cover:
- Set minimum dimensions to avoid having to pass classes all over the place.
- Outline the container to show white on white covers properly.
- Remove extraneous code.
- Better size caption when no cover is available.
- Create Alignments, Positions and Spacings sections and move some existing dimensions.
- Update previous templates.
2021-04-26 13:39:17 +02:00
Fabien Basmaison 30bed6c963 Merge branch 'main' into frontend-book-cover 2021-04-26 11:35:10 +02: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
Mouse Reeve 126594ec49 Cleans up queryset declarations 2021-04-23 13:47:13 -07:00
Mouse Reeve 888930f891 User request path for pagination 2021-04-23 13:35:12 -07:00
Mouse Reeve d2b2065db8 Show user's book content 2021-04-23 13:32:58 -07:00
Fabien Basmaison 66c72c8b41 Add book identifiers to list of Editions:
- Add template for identifiers.
- Remove `space-between` that adds too much space on narrow views.
- Apply the `content` class only on publisher infos to avoid applying automatic styles to the description list.
2021-04-18 15:59:02 +02:00
Fabien Basmaison ec2b4e533e Merge branch 'main' into frontend 2021-04-10 19:57:23 +02:00
Fabien Basmaison 4c4801e2da Add structured data to Book (#84). 2021-04-09 23:57:49 +02:00
Fabien Basmaison f77088b964 [assets] Remove redundant class already provided by bulma:
Replace all classes `hidden` with `is-hidden` in templates, CSS and JS.
2021-04-07 17:31:00 +02:00
Fabien Basmaison cbed5e331b [assets] Move some frontend assets to _vendor_ directories:
This simplifies linting of files we have no grasp on, and clarifies responsibilities.

- Add .eslintignore.
- Restrict linting to bookwyrm/static.
2021-04-05 16:17:11 +02:00
Mouse Reeve f2f700c7b8 Adds error messaging for invalid cover urls 2021-03-31 15:39:28 -07:00
Mouse Reeve 1a787fd218 Soft removal of tags feature 2021-03-31 11:11:15 -07:00
Mouse Reeve 7c9518afa6 Adds info to editions page 2021-03-29 10:21:48 -07:00
Mouse Reeve 63b319e286 Space between shelve button and isbn on book page 2021-03-28 11:27:09 -07:00
Mouse Reeve 323c72002b Fixes shelve menu display on book page 2021-03-28 11:18:01 -07:00
Mouse Reeve e513ea8b9c Adds javascript for tabs on book page 2021-03-22 12:37:01 -07:00
Mouse Reeve ae6d8529af Moves add cover into modal 2021-03-18 09:44:59 -07:00
Mouse Reeve 4e55018e41 Moves book templates into dir 2021-03-18 09:37:16 -07:00
Renamed from bookwyrm/templates/book.html (Browse further)