Skip to content

Commit

Permalink
Enhancement: added more CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Batorian committed Jun 18, 2024
1 parent 9a60eb2 commit 721ae34
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions android/app/src/main/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,24 @@ td {
text-align: center;
}

/**
* Novel Updates -> Raei Translations
* https://www.novelupdates.com/group/raei-translations/
* Necessary to display chapterContent correctly
*/
.status {
--color-special: #ff751a;
--color-special-light: #ffa970;
border-left: ridge 4px var(--color-special);
padding: 1em;
color: var(--color-special-light);
box-shadow: -5px 0 4px -5px var(--color-special);
margin-top: 2em;
margin-bottom: 2em;
white-space: pre-wrap;
word-wrap: break-word;
}

/**
* Novel Updates -> Sky Demon Order
* https://www.novelupdates.com/group/sky-demon-order/
Expand Down
1 change: 1 addition & 0 deletions src/screens/reader/utils/sanitizeChapterText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const sanitizeChapterText = (
'game-prompt-warning-content': ['font-family', 'text-align'],
'novel-system-box': ['font-family', 'text-align'],
'letter-style': ['font-family', 'text-align'],
'status': ['font-family', 'text-align'],
'system': ['font-family', 'text-align'],
};
let text = sanitizeHtml(html, {
Expand Down

0 comments on commit 721ae34

Please sign in to comment.