Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dark mode support & code highlighting #982

Draft
wants to merge 26 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
042e3b9
add ability to specify alternative images for dark mode
Simon-Laux Nov 3, 2024
effe17e
add dark mode via css vars
Simon-Laux Nov 3, 2024
1f415c8
format scss files
Simon-Laux Nov 3, 2024
c04fae6
remove twitter icon
Simon-Laux Nov 3, 2024
a7f19b4
darkmode for menu
Simon-Laux Nov 3, 2024
1287b39
rm unused style
Simon-Laux Nov 3, 2024
917ede4
dark variant for call to action buttons
Simon-Laux Nov 3, 2024
080ea87
dark theme for comments
Simon-Laux Nov 3, 2024
93a61cb
remove inactive/invalid css from comments.css
Simon-Laux Nov 3, 2024
91bc229
format comments.css
Simon-Laux Nov 3, 2024
c4c4c6a
add style for figure and improve the invert function for monchrome im…
Simon-Laux Nov 3, 2024
38927cc
style cta-button-border
Simon-Laux Nov 3, 2024
719fe94
remove unused style
Simon-Laux Nov 3, 2024
ce6e4c6
give download boxes a tiny border radius to make them feel less pointy
Simon-Laux Nov 4, 2024
9071cae
dark mode support for dl page
Simon-Laux Nov 4, 2024
72003cd
style the dowload buttons to look more like the store badges
Simon-Laux Nov 4, 2024
a334b9e
document since when some of the css features work
Simon-Laux Nov 4, 2024
ab3d6c9
invert intro image in faq in darkmode (note that this will do nothing…
Simon-Laux Nov 4, 2024
6b16c8e
use better readable alternative logo for nlnet in webxdc post in dark…
Simon-Laux Nov 4, 2024
1d6a4a0
improve monochrome images in chatmail blog post
Simon-Laux Nov 4, 2024
4f18087
make more nlnet logos visible in dark mode
Simon-Laux Nov 4, 2024
235be1c
darkmode for footer border
Simon-Laux Nov 4, 2024
7da16f4
add code highlighting
Simon-Laux Nov 4, 2024
fec7468
add max width for images in figure
Simon-Laux Nov 4, 2024
385de15
subtle border for codeblocks/pre and blockqoutes
Simon-Laux Nov 4, 2024
3d41216
fix conflict between our styles and the code highlighting styles in d…
Simon-Laux Nov 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ How to create a new blog post
- That's all, the result goes to https://delta.chat/en/blog , and the
[RSS-Feed](https://delta.chat/feed.xml).

- If you have images of text with transparency (for example a mermaid diagram/flowchart), then consider proving an alternative image for darkmode like this `<img src="diagram-light.svg" data-dark-src="diagram-dark.svg" />`
- or if your image is simple and only black on white you can also try out `class="binary-image-invert-in-darkmode"` which uses css to invert the colors and blend it with the pge background.

Testing changes
--------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ <h1>{{page.header}}</h1>
</p>
</div>

<script src="../assets/js/dark-theme-image-replacement.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion _posts/2023-06-28-webxdc-import-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ who are following our WebXDC work with interest.

## Stepping stones for an E2E "Next-Generation-Internet"

<img src="../assets/logos/logo_nlnet.svg" width="230" style="clear: both; float:right; margin-left:1em;" />
<img src="../assets/logos/logo_nlnet.svg" data-dark-src="../assets/logos/logo_nlnet_white.svg" width="230" style="clear: both; float:right; margin-left:1em;" />

Our work on introducing new I/O APIs for WebXDC apps was funded
through [NLNET Zero Entrust](https://nlnet.nl/entrust/),
Expand Down
2 changes: 1 addition & 1 deletion _posts/2023-08-11-xstore.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ We're also experimenting with a [web version](https://webxdc.org/apps) populated

## Thanks to NLNET and NGI for their support and vision!

<img alt="NLNet Logo" src="../assets/logos/logo_nlnet.svg" width="140" style="float:right; margin-left:1em;" />
<img alt="NLNet Logo" src="../assets/logos/logo_nlnet.svg" data-dark-src="../assets/logos/logo_nlnet_white.svg" width="140" style="float:right; margin-left:1em;" />
Most of our efforts described above became possible
through the support
of the [NGI0 Entrust Fund](https://nlnet.nl/entrust),
Expand Down
4 changes: 2 additions & 2 deletions _posts/2023-12-13-chatmail.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ com_id: 111574517097362272
Today, we are unveiling **chatmail services**,
making onboarding with Delta Chat a breeze, with peace of mind:

<img alt="Chatmail logo" src="../assets/logos/chatmail.svg" width="160" style="float:right;" />
<img alt="Chatmail logo" src="../assets/logos/chatmail.svg" width="160" style="float:right;" class="binary-image-invert-in-darkmode" />

- **Convenience**: Get a chatmail address in a few seconds

Expand Down Expand Up @@ -40,7 +40,7 @@ which we aim to keep running as a community service.

## How to make e-mail spammers sad, and users safe

<img src="../assets/blog/two-faces.jpg" width="140" style="float:right; margin-left:1em;" />
<img src="../assets/blog/two-faces.jpg" width="140" style="float:right; margin-left:1em;" class="binary-image-invert-in-darkmode" />

`nine.testrun.org` currently allows to send 60 messages per minute for any user
and you can register multiple e-mail addresses.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2024-02-15-webxdc-m3.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ that allows to create and run your first web app within minutes.

## Psst, interested to move P2P web apps forward with us?

<img src="../assets/logos/logo_nlnet.svg" width="230" style="clear: both; float:right; margin-left:1em;" />
<img src="../assets/logos/logo_nlnet.svg" data-dark-src="../assets/logos/logo_nlnet_white.svg" width="230" style="clear: both; float:right; margin-left:1em;" />
There are many interesting webxdc developments evolving for 2024,
not the least because of crucial funding support from NLNET
who administers much of the EU's Next-Generation-Internet (NGI) funds,
Expand Down
4 changes: 2 additions & 2 deletions _posts/2024-05-31-instant-onboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Chat profiles use servers only for end-to-end encrypted message transport.

## Are we turning our back on classic e-mail?

<img src="../assets/logos/chatmail.png" style="width:200px; float:right; clear:both; margin-left:.5em; margin-bottom:.2em;" />
<img src="../assets/logos/chatmail.png" style="width:200px; float:right; clear:both; margin-left:.5em; margin-bottom:.2em;" class="binary-image-invert-in-darkmode" />

No.

Expand Down Expand Up @@ -208,5 +208,5 @@ to provide a fast and secure basis for decentralized instant messaging.
In other words,
Delta Chat is a messenger that fundamentally heeds the warning of XKCD 927 :)

<figure> <a href="https://xkcd.com/927/"><img src="https://imgs.xkcd.com/comics/standards_2x.png" width="500px" style="float:center; clear:both; margin-left:.5em; margin-bottom:.2em;" alt="XKCD 927 comic" /><figcaption>XKCD 927</figcaption> </a></figure>
<figure> <a href="https://xkcd.com/927/"><img src="https://imgs.xkcd.com/comics/standards_2x.png" width="500px" style="float:center; clear:both; margin-left:.5em; margin-bottom:.2em;border: 14px white solid;" alt="XKCD 927 comic" class="binary-image-invert-in-darkmode" /><figcaption>XKCD 927</figcaption> </a></figure>

Loading
Loading