Commit graph

382 commits

Author SHA1 Message Date
Vivianne Langdon
8e9bacc527 Fix red for <code> being too harsh 2022-02-28 23:31:57 -08:00
Mouse Reeve
2c8fa5cd9b
Merge branch 'themes' into dark-theme 2022-02-28 13:32:37 -08:00
Mouse Reeve
2d516812b4 Fixes icons by moving import to theme 2022-02-28 09:34:54 -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
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
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
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
561eaeaf54
Merge pull request #1935 from joachimesque/accessibility/fixes
[Accessibility] Fixes
2022-02-17 16:50:32 -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
d49e9b4dcd Updates packages 2022-02-12 09:41:18 -08: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
Mouse Reeve
ee23aba994 Use details and summary for announcement panel 2022-02-11 13:50:55 -05:00
Mouse Reeve
a370602903
Merge pull request #1860 from cincodenada/image-generation-add-cjk
Use Source Han Sans for preview images generation (bis)
2022-02-03 11:11:38 -08:00
Mouse Reeve
59b5369654 Updates tests 2022-01-27 18:23:31 -08:00
Joel Bradshaw
284eb620dd Add Source Han font for preview generation to Docker image
Include the license and a README explaining things in the repo itself.

Depending on an external source for this is intended to be temporary,
the goal is to have a Bookywrm-managed source for these, but this should
be stable enough for now.

We build it into the Dockerfile to make it available without adding it
to the git repo itself, because git history is forever and we don't want
to bake large files into the history.

Theoretically it would make sense to gate this download on the
ENABLE_PREVIEW_IMAGES environment variable, but ENV variables aren't
available at Docker image build time (for sensible reasons), so we just
unconditonally download it.

This does mean users will ultimately download it anyway, but the benefit
to doing this over adding it to the git history is that if we switch
fonts, or update this one, or change strategies altogether, this version
of the font will no longer have to be downloaded.

Additionally, the font won't be downloaded until the application is
actually built, which involves a bunch of other downloading (of Docker
images and the like), so it's a reasonable time to do it.
2022-01-24 23:16:14 -08:00
Mouse Reeve
3fc690e763 Calculate and translate unread status counts in view 2022-01-22 17:03:48 -08:00
Mouse Reeve
8a0ea674ea
Merge pull request #1834 from bookwyrm-social/links-display
Improve link filetype and add availability field
2022-01-17 11:08:40 -08:00
Mouse Reeve
4c356cbeb4 Case insensitive suggestions 2022-01-17 10:52:16 -08:00
Mouse Reeve
7b1693a435 Larger file type field 2022-01-17 09:03:53 -08:00
Mouse Reeve
da6e43a7eb Avoid two character wide urls on mobile 2022-01-17 08:22:55 -08:00
Mouse Reeve
2fbbdbc06a Runs prettier 2022-01-12 17:19:34 -08:00
Mouse Reeve
fc06f0cdd1 Avoid console error 2022-01-12 17:08:10 -08:00
Mouse Reeve
34635b0c3f Select trie based on data attr 2022-01-12 17:02:30 -08:00
Mouse Reeve
99ec87c67c Merge branch 'book-file-links' into autocomplete 2022-01-12 16:51:59 -08:00
Mouse Reeve
e6d9895854
Merge branch 'main' into book-file-links 2022-01-12 06:39:22 -08:00
Mouse Reeve
0d7801f6f4 Show unread notifications color 2022-01-11 11:04:56 -08:00
Mouse Reeve
60761b19ba Run prettier 2022-01-10 16:55:30 -08:00
Mouse Reeve
4202498442 Fixes one option trie case 2022-01-10 16:53:30 -08:00
Mouse Reeve
f6d6285009 Updates trie function 2022-01-10 16:44:43 -08:00
Mouse Reeve
2746318152 Uses datalist for autocomplete suggestions 2022-01-10 15:47:40 -08:00
Mouse Reeve
380087da90 Merge branch 'book-file-links' into autocomplete 2022-01-10 15:32:20 -08:00
Mouse Reeve
78dd5caf9f Allow users to report spam links 2022-01-10 14:55:10 -08:00
Mouse Reeve
8ba3a4ab00 Adds link confirmation modal 2022-01-10 11:48:07 -08:00
Mouse Reeve
02feb0d594 Stylelint updates 2022-01-07 14:08:36 -08:00
Mouse Reeve
e5c5dd8f98
Merge pull request #1736 from bookwyrm-social/new-modals-bright-futures
Switch old modals to new modals
2022-01-04 13:31:56 -08:00
Mouse Reeve
cccd28cb74
Merge pull request #1726 from joachimesque/options-panels
Front-end: New look and behavior for Filters and Result panels
2022-01-03 09:23:12 -08:00
Mouse Reeve
49ecd86afe Runs prettier 2022-01-02 07:01:11 -08:00
Joachim
b7eb285f7b Handle modal when it is active on page load 2022-01-01 18:18:23 +01:00