Custom subtitle styling by OliverSpeak · Pull Request #78 · animebook/animebook.github.io · GitHub
Skip to content

Custom subtitle styling - #78

Open
OliverSpeak wants to merge 1 commit into
animebook:masterfrom
OliverSpeak:custom-style
Open

OliverSpeak wants to merge 1 commit into
animebook:masterfrom
OliverSpeak:custom-style

Conversation

@OliverSpeak

Copy link
Copy Markdown

Simple code that adds a setting in the Appearance tab to apply custom CSS to subtitles.
Changes are saved and applied instantly.
Doesn't seem to be any conflict with pre-existing styles.

The only caveat I've found is the Animebook Anki Export extension will trigger if I press the E key while focusing in the text box. This issue doesn't seem to happen with the other shortcuts.
A very simple workaround for this has been applied in frontend.js

Example:
example

@OliverSpeak

Copy link
Copy Markdown
Author

@soamsy

soamsy commented Mar 9, 2023

Copy link
Copy Markdown
Member

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants