diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2021-05-08 14:34:58 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-05-19 14:58:29 +0200 |
commit | 79e469fd335133671185cf8539f77ef38ac3b4e6 (patch) | |
tree | 4e2b7075e85225c9ac93cf78c7ef1e95b78e5ac4 /docs/features/customCSS.md | |
parent | 271b6ee3c993264bd44a966b82f1a5daa85f53ab (diff) |
Refactor News documentation with mkdocs and mkdocs-material
- move all pages to new structure
- use gh-pages to host html version
- use github actions for automatic build
Co-authored-by: anoy <anoymouserver+github@mailbox.org>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'docs/features/customCSS.md')
-rw-r--r-- | docs/features/customCSS.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/features/customCSS.md b/docs/features/customCSS.md new file mode 100644 index 000000000..74f652eaf --- /dev/null +++ b/docs/features/customCSS.md @@ -0,0 +1,16 @@ +# Custom CSS +Sometimes you want to add additional CSS for a feed to improve the rendering. This can very easily be done by adding a CSS class to **css/custom.css** following the following naming convention: + +* Take the URL from the \<link> attribute (e.g.: \<link>https://www.google.de/path?my=query \</link>) +* Extract the Domain from the URL (e.g.: www.google.de) +* Strip the leading **www.** (e.g.: google.de) +* Replace all . with - (e.g.: google-de) +* Prepend **custom-** (e.g.: custom-google-de) + +Each class rule should be prefixed with **#app-content** and should only affect the article body. An example rule would be: + +```css +#app-content .custom-google-de .body { + /* Custom CSS rules here */ +} +```
\ No newline at end of file |