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

Add dark mode toggle button #2230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions www/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ insert_anchor_links = "left"
<sub class="no-mobile"><i>high power tools for HTML</i></sub>
</div>

<div style="border: 1px solid lightgrey; margin:24px;padding:12px;border-radius: 8px; background-color: whitesmoke; filter: drop-shadow(3px 3px darkgray)">
<div class="note" >
<b>NEWS:</b> htmx finished 2nd in the <a href="https://risingstars.js.org/2023/en#section-framework">2023
JavaScript Rising Stars</a> "Front-end Frameworks" category, just behind React (htmx is a library, btw) and <a href="https://risingstars.js.org/2023/en#section-all">#10 overall</a>!
Thank you to everyone who <a href="https://github.com/bigskysoftware/htmx">starred</a> us!
Expand Down Expand Up @@ -62,7 +62,7 @@ We are happy to announce the release of [Hypermedia Systems](https://hypermedia.
<a href="https://www.amazon.com/dp/B0C9S88QV6/ref=sr_1_1?crid=1P0I3GXQK32TN"><img src="/img/hypermedia-systems.png" alt="hypermedia systems"></a>
</div>

<h2>sponsors <iframe src="https://github.com/sponsors/bigskysoftware/button" title="Sponsor htmx" height="32" width="114" style="border: 1px solid gray; border-radius: 12px; float:right"></iframe></h2>
<h2>sponsors <iframe src="https://github.com/sponsors/bigskysoftware/button" title="Sponsor htmx" height="32" width="114" style="border: 1px solid rgba(var(--fg-color),0.7); border-radius: 12px; float:right"></iframe></h2>


htmx development can be supported via [GitHub Sponsors](https://github.com/sponsors/bigskysoftware?o=esb)
Expand Down Expand Up @@ -128,7 +128,7 @@ Thank you to all our generous <a href="https://github.com/sponsors/bigskysoftwar
</a>
</td>
<td>
<a href="https://twitter.com/sekunho_/"><img src="/img/sekun-doggo.jpg" alt="Hiro The Doggo" style="border: 2px solid lightgray; border-radius:20px; width:100%;max-width:150px"></a>
<a href="https://twitter.com/sekunho_/"><img src="/img/sekun-doggo.jpg" alt="Hiro The Doggo" style="border: 2px solid rgba(var(--bg-color), 0.25); border-radius:20px; width:100%;max-width:150px"></a>
</td>
<td>
<a href="https://www.dasfilter.shop/">
Expand Down
2 changes: 1 addition & 1 deletion www/content/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ htmx has experimental support for declarative use of both
[WebSockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications)
and [Server Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events).

<div style="border: 1px solid whitesmoke; background-color: #e4f0ff; padding: 8px; border-radius: 8px">
<div class="note">

**Note:** In htmx 2.0, these features will be migrated to extensions. These new extensions are already available in
htmx 1.7+ and, if you are writing new code, you are encouraged to use the extensions instead. All new feature work for
Expand Down
2 changes: 1 addition & 1 deletion www/content/essays/hateoas.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ necessity for building RESTful systems.
display: block;
margin-bottom: 32px;
text-align: center;
color: #aaa;
color: rgba(var(--bg-color),0.33);
font-weight: bold;
letter-spacing: .5em;
}
Expand Down
4 changes: 2 additions & 2 deletions www/content/examples/tabs-hateoas.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ Subsequent tab pages display all tabs and highlight the selected one accordingly
}

#tabs > .tab-list button:hover {
color: var(--midBlue);
color: rgb(var(--accent-color));
}

#tabs > .tab-list button.selected {
background-color: #eee;
background-color: rgba(var(--bg-color),0.05);
}

#tabs > .tab-content {
Expand Down
4 changes: 2 additions & 2 deletions www/content/examples/tabs-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ when the content is swapped into the DOM.
}

#tabs > button:hover {
color: var(--midBlue);
color: rgb(var(--accent-color));
}

#tabs > button.selected {
background-color: #eee;
background-color: rgba(var(--bg-color),0.05);
}

#tab-contents {
Expand Down
10 changes: 5 additions & 5 deletions www/content/webring.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ title = "htmx webring"

<div id="webring-div">

<table id="nav-table" style="border: black 4px double; text-align: center">
<table id="nav-table" style="border: rgb(var(--bg-alt)) 4px double; text-align: center">
<tr>
<td class="built-with-tds" style="border: 1px black solid">
<td class="built-with-tds" style="border: 1px rgb(var(--bg-alt)) solid">
<img width="200px" src="/img/createdwith.jpeg">
</td>
<td width="70%" style="text-align: center; font-size: 20px; border: 1px black solid">
<td width="70%" style="text-align: center; font-size: 20px; border: 1px rgb(var(--bg-alt)) solid">
This Great <a href="https://htmx.org">htmx</a> Webring site is owned by <a href="https://bigsky.software">Your Name Here</a>.
</td>
<td class="built-with-tds" style="; border: 1px black solid"">
<td class="built-with-tds" style="; border: 1px rgb(var(--bg-alt)) solid"">
<img width="200px" src="/img/createdwith.jpeg">
</td>
</tr>
<tr>
<td colspan="3" style="text-align: center; ; border: 1px black solid; position: relative">
<td colspan="3" style="text-align: center; ; border: 1px rgb(var(--bg-alt)) solid; position: relative">
[<a
class="nav-link"
href="#"
Expand Down