mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Use <picture> for theme-specific images on site
This commit is contained in:
@@ -309,12 +309,6 @@ body {
|
||||
background-color: var(--grey-10-a10);
|
||||
}
|
||||
|
||||
:root.theme-light .img-dark,
|
||||
:root.theme-dark .img-light {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.footer {
|
||||
align-items: center;
|
||||
|
||||
@@ -67,8 +67,10 @@
|
||||
<details class="faq card" open>
|
||||
<summary class="faq__summary">How do I cast something?</summary>
|
||||
<div class="faq__content">
|
||||
<img src="images/menu_light.png" alt="Media context menu" class="img-light" style="float: right">
|
||||
<img src="images/menu_dark.png" alt="Media context menu" class="img-dark" style="float: right">
|
||||
<picture style="float: right">
|
||||
<source srcset="images/menu_light.png" alt="Media context menu" media="(prefers-color-scheme: light)">
|
||||
<img src="images/menu_dark.png" alt="Media context menu">
|
||||
</picture>
|
||||
<p>
|
||||
Ignore the toolbar button for now, it's just a placeholder for development.
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user