Commit graph

4994 commits

Author SHA1 Message Date
Mouse Reeve
a00ee8a706 Adds link to set instance-wide theme 2022-02-28 09:43:31 -08:00
Mouse Reeve
2d516812b4 Fixes icons by moving import to theme 2022-02-28 09:34:54 -08:00
Mouse Reeve
4d3e709b2a
Update layout.html 2022-02-28 09:23:03 -08:00
Mouse Reeve
3283302093
Merge branch 'themes' into dark-theme 2022-02-27 20:21:17 -08:00
Mouse Reeve
8259d16ee9 Check available themes in form 2022-02-27 11:20:11 -08:00
Mouse Reeve
005b69177c
Merge branch 'themes' into dark-theme 2022-02-27 10:54:15 -08:00
Mouse Reeve
c8d3222c33
Rename dark.scss to bookwyrm-dark.scss 2022-02-27 10:52:07 -08:00
Mouse Reeve
fd0f739418
Rename light.scss to bookwyrm-light.scss 2022-02-27 10:51:49 -08:00
Mouse Reeve
8850b68b52 Show theme options 2022-02-27 10:48:33 -08:00
Mouse Reeve
cc015536fa Adds theme instructions 2022-02-27 10:12:47 -08:00
Mouse Reeve
3dfbb3272e Theme selector 2022-02-27 10:00:50 -08:00
Mouse Reeve
6e96c1eee7 Avoid linter error 2022-02-27 08:09:17 -08:00
Vivianne Langdon
e4d7dd7ee4 Fix progress bar 2022-02-27 05:29:33 -08:00
Vivianne Langdon
40319302b7 Initial theme 2022-02-27 05:20:29 -08:00
Mouse Reeve
43269429ac Use selected theme 2022-02-26 13:40:06 -08:00
Mouse Reeve
e15193e100 Adds themes 2022-02-26 12:44:20 -08:00
Mouse Reeve
02808f88e6 eslint fixes 2022-02-25 13:00:23 -08:00
Mouse Reeve
65bd3945e7 Prettify tabs file 2022-02-25 12:52:35 -08:00
Mouse Reeve
cec7625e1e Moves tabs script to main scripts directory
It's our own custom script at this point
2022-02-25 12:47:46 -08:00
Mouse Reeve
5d4efd457a Removes scrollIntoView script behavior for tabs 2022-02-25 12:39:44 -08:00
Mouse Reeve
8ca2b55e7e Sort author books by rating 2022-02-25 12:04:21 -08:00
Mouse Reeve
689be8c94b Only scan local data 2022-02-24 17:42:28 -08:00
Mouse Reeve
84ef214ca1 Valid template markup 2022-02-24 17:36:49 -08:00
Mouse Reeve
eb8b9fdaed Fixes bugs in model task 2022-02-24 17:33:22 -08:00
Mouse Reeve
1aa6b99d1f Adds tests 2022-02-24 17:33:05 -08:00
Mouse Reeve
f446828175 Fixes template typo 2022-02-24 14:39:09 -08:00
Mouse Reeve
84b9a19339 Expands scanned fields 2022-02-24 13:29:17 -08:00
Mouse Reeve
93f82fbf18 Adds notifications 2022-02-24 13:20:18 -08:00
Mouse Reeve
ad41f19dc5 Updates report model 2022-02-24 13:00:41 -08:00
Mouse Reeve
3ce8b3390e Adds task 2022-02-24 12:16:18 -08:00
Mouse Reeve
e837da37db Adds task 2022-02-24 12:15:08 -08:00
Mouse Reeve
12f67dc0ce Adds automod view 2022-02-24 11:18:43 -08:00
Mouse Reeve
c8b4d5ecf1 Adds model for creating automated moderation flags 2022-02-24 09:58:37 -08:00
Mouse Reeve
2457315ed8 Adds missing tag 2022-02-21 08:44:04 -08:00
Mouse Reeve
70601612f8
Removes unused dependency (#1965) 2022-02-20 18:42:14 -08:00
Mouse Reeve
4672294d7c
Cache fix (#1961) 2022-02-19 16:34:48 -08:00
Mouse Reeve
c77e5a1a90
Split css (#1959)
Divides the css into sub-files and normalizes how colors are defined.

Co-authored-by: Joachim <joachim.robert@protonmail.com>
2022-02-19 16:34:17 -08:00
Mouse Reeve
6daaffeaa7
Compiles css framework from sass (#1956)
* Compiles css framework from sass

* Adds watch commands

* Copies existing css to sass file

* Moves sass out of static path

* Removes global linter

I wasn't sure how to customize this, and it's not providing a lot of
additional value on top of the domain-specific linters

* Reverts invalid change to dockerfile

* Changes stylelint path

* Remove unused bulma files

* Properly minifies generated css

* Fixes regression in thread display

* rgba function only works with percents for whatever reason

* Hush stylelint

* Removes trailing zeros

* Compile sass in Django

Co-authored-by: Joachim <joachim.robert@protonmail.com>

* Python formatting

* Updates linter

* Updates commands

* Adds css-config file

Co-authored-by: Joachim <joachim.robert@protonmail.com>

* Stylelint fix

* Removes unused compiled bulma files

Co-authored-by: Joachim <joachim.robert@protonmail.com>
2022-02-19 15:29:47 -08:00
Mouse Reeve
57fd675857 Ticks javscript cache buster 2022-02-19 07:52:05 -08:00
Mouse Reeve
98736925f7 Fixes cache translation 2022-02-17 18:59:35 -08:00
Mouse Reeve
edf3b61602 Show error or success states 2022-02-17 18:00:19 -08:00
Mouse Reeve
1aac665094 Fixes settings form 2022-02-17 17:50:57 -08:00
Mouse Reeve
1b63c19a9c Fixes error in previous PR 2022-02-17 17:10:12 -08:00
Mouse Reeve
5d098b3c10 Removes duplicate selector 2022-02-17 17:01:21 -08:00
Mouse Reeve
31a61713d9 Runs stylelint fix 2022-02-17 16:53:53 -08:00
Mouse Reeve
d510299ae4 Reverts change to shelve button dropdown 2022-02-17 16:51:54 -08:00
Mouse Reeve
561eaeaf54
Merge pull request #1935 from joachimesque/accessibility/fixes
[Accessibility] Fixes
2022-02-17 16:50:32 -08:00
Mouse Reeve
98cad7c51a
Merge pull request #1950 from bookwyrm-social/release-notice
Adds notice to admin about available updates
2022-02-17 16:37:22 -08:00
Mouse Reeve
3869f0cc1a Python formatting 2022-02-17 16:28:55 -08:00
Mouse Reeve
9132c054f2 Adds notice to admin about available updates 2022-02-17 16:23:15 -08:00
Mouse Reeve
92f3357977 Anchor link to dev chat 2022-02-17 15:53:58 -08:00
Mouse Reeve
31d362d715 Adds setup views tests 2022-02-17 14:55:48 -08:00
Mouse Reeve
3b0fc9785e Removes unused file 2022-02-17 13:31:38 -08:00
Mouse Reeve
08e378a539 Fixes register tests 2022-02-17 13:27:44 -08:00
Mouse Reeve
be479fe4cb Adds warnings about misconfigurations 2022-02-17 13:22:33 -08:00
Mouse Reeve
f6e2ec02aa Adds overview page to setup 2022-02-17 13:02:07 -08:00
Mouse Reeve
bf75dff338 Contextualize admin code command output 2022-02-17 11:53:29 -08:00
Mouse Reeve
637f7c9cb9 Initialize site settings in install mode 2022-02-17 11:51:48 -08:00
Mouse Reeve
63558bb75e Python formatting 2022-02-17 11:31:52 -08:00
Mouse Reeve
2883c42534 Disable registration by default 2022-02-17 11:27:05 -08:00
Mouse Reeve
23d0d3e2b7 Register admin user 2022-02-17 11:25:11 -08:00
Mouse Reeve
ed536e6b41 Adds command to get admin code 2022-02-17 10:59:28 -08:00
Mouse Reeve
b4e0749f73 Disallow registration in install mode and adds redirects 2022-02-17 10:52:12 -08:00
Mouse Reeve
8e3c39d319 Adds admin key field to admin user setup form 2022-02-17 10:39:08 -08:00
Mouse Reeve
4eb4efee9d Create admin account markup 2022-02-17 10:22:44 -08:00
Mouse Reeve
c31ec7dbd5 Adds setup view 2022-02-17 10:03:02 -08:00
Mouse Reeve
e9397eaedd Adds setup templates 2022-02-17 10:02:27 -08:00
Mouse Reeve
1a8f4a916e
Merge pull request #1891 from bookwyrm-social/openlibrary-author-fields
Openlibrary author fields
2022-02-17 09:00:04 -08:00
Mouse Reeve
c04d2d285b Python formatting 2022-02-17 08:42:12 -08:00
Mouse Reeve
a2c4dd4f9f Updates migration and database fields 2022-02-17 08:25:01 -08:00
Mouse Reeve
39691bed3a Merge branch 'main' into openlibrary-author-fields 2022-02-16 18:06:04 -08:00
Mouse Reeve
d593a3a503 Sets default USE_HTTPS value based on debug 2022-02-15 13:15:04 -08:00
Mouse Reeve
a07239c6a9
Merge pull request #1933 from bookwyrm-social/announcements
Cleans up code for announcements
2022-02-15 10:40:56 -08:00
Mouse Reeve
6fa29a6293 Fixes tests 2022-02-15 10:32:04 -08:00
Mouse Reeve
1a2c85a327
Merge pull request #1938 from willhoh/main
Change cover class
2022-02-12 11:03:32 -08:00
Mouse Reeve
5df8bf03e6 Fixes black versioning error 2022-02-12 11:00:24 -08:00
Mouse Reeve
7fdf07c6ec Updates tests 2022-02-12 10:56:55 -08:00
Willi Hohenstein
164e0686b9 add class for correct display 2022-02-12 19:35:44 +01:00
Mouse Reeve
9827cef9a9 Python formatting 2022-02-12 10:34:16 -08:00
Mouse Reeve
1761db5444
Merge pull request #1920 from bookwyrm-social/branch-convergence
Moves towards single branch setup
2022-02-12 10:31:55 -08:00
Mouse Reeve
a2d9bf50c5 Fixes display name of list contributor comments 2022-02-12 10:18:14 -08:00
Mouse Reeve
d49e9b4dcd Updates packages 2022-02-12 09:41:18 -08:00
Willi Hohenstein
67ea18c840 Changed cover class for proper image size in mobile 2022-02-12 17:58:36 +01:00
Joachim
c33cf60624 aria-hidden elements do not contain focusable elements
https://dequeuniversity.com/rules/axe/4.3/aria-hidden-focus
2022-02-12 16:33:16 +01:00
Joachim
7877524116 ARIA button, link, and menuitem must have an accessible name
https://dequeuniversity.com/rules/axe/4.3/aria-command-name

In this case, the menuitem wasn't displayed (because the div was hidden). I prefer not to include the menuitem in that situation.
2022-02-12 16:25:40 +01:00
Joachim
f742cc023b ARIA attributes must conform to valid values
https://dequeuniversity.com/rules/axe/4.3/aria-valid-attr-value
2022-02-12 16:18:56 +01:00
Joachim
b27b6a5980 Certain ARIA roles must contain particular children
https://dequeuniversity.com/rules/axe/4.3/aria-required-children

In order to make this work, I had to translate Bulma's style so it doesn't use `ul` and `li` anymore.

The JS code had to be adapted, I also changed `button` to `tab` (seemed like a more relevant name) and added a `scrollIntoView()` on load the active tab is always visible.
2022-02-12 16:14:35 +01:00
Joachim
bbb89605a5 Page must have one main landmark
https://dequeuniversity.com/rules/axe/4.3/landmark-one-main
2022-02-12 16:10:40 +01:00
Mouse Reeve
89de03bffe Adds breadcrumbs 2022-02-11 14:58:40 -05:00
Mouse Reeve
b95f0ed287 Use color in announcement 2022-02-11 14:43:37 -05:00
Mouse Reeve
01b52f023a Adds edit announcement view 2022-02-11 14:42:47 -05:00
Mouse Reeve
cfa91e2570 Adds color options to announcements 2022-02-11 14:00:01 -05:00
Mouse Reeve
ee23aba994 Use details and summary for announcement panel 2022-02-11 13:50:55 -05:00
Mouse Reeve
62741a5d2e Allow html in announcement header 2022-02-11 13:36:08 -05:00
Mouse Reeve
059fd84d06 Adds delete button to announcements list view
It's handy to have it there
2022-02-11 13:33:42 -05:00
Mouse Reeve
c06817e9ff Python formatting 2022-02-09 12:23:01 -05:00
Mouse Reeve
6323b0e700 Use correct model type for federated links 2022-02-09 12:20:11 -05:00
Mouse Reeve
73b611d68d Tick version number 2022-02-04 20:12:26 -08:00
Mouse Reeve
a73960a0da Python formatting 2022-02-04 19:44:03 -08:00
Mouse Reeve
49ceb2a978 Fixes warning in author view tests 2022-02-04 19:41:21 -08:00