Skip to content

Commit

Permalink
feat: add support for aside HTML element in entry content
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Jul 26, 2024
1 parent 29387f2 commit af7c48a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/reader/sanitizer/sanitizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var (
"a": {"href", "title", "id"},
"abbr": {"title"},
"acronym": {"title"},
"aside": {},
"audio": {"src"},
"blockquote": {},
"br": {},
Expand Down
9 changes: 9 additions & 0 deletions internal/ui/static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,15 @@ article.category-has-unread {
border-bottom: 1px dashed var(--entry-content-abbr-border-color);
}

.entry-content aside {
width: 30%;
padding: 1ch;
margin-left: 15px;
float: right;
font-style: italic;
border: dotted var(--entry-content-aside-border-color) 2px;
}

details.entry-enclosures {
margin-top: 25px;
}
Expand Down
1 change: 1 addition & 0 deletions internal/ui/static/css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
--entry-content-code-border-color: #888;
--entry-content-quote-color: #777;
--entry-content-abbr-border-color: #777;
--entry-content-aside-border-color: #777;
--entry-enclosure-border-color: #333;

--parsing-error-color: #eee;
Expand Down
1 change: 1 addition & 0 deletions internal/ui/static/css/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
--entry-content-code-border-color: #ddd;
--entry-content-quote-color: #666;
--entry-content-abbr-border-color: #999;
--entry-content-aside-border-color: #D3D3D3;
--entry-enclosure-border-color: #333;

--parsing-error-color: #333;
Expand Down

0 comments on commit af7c48a

Please sign in to comment.