Skip to content

Commit

Permalink
acknowledgements edit and ToC dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
basiabaldwin committed Sep 10, 2024
1 parent e39b09f commit a9a5c77
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/body/acknowledgements.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<li><a href="https://github.com/alisonhall">Alison Hall</a> for cleaning up and streamlining the unit testing and automated testing NPM tasks (and also doing the difficult task of updating the NPM packages within the project in 2024).
</li>
<li>Sahil Singh for unit tests for the <a href="input-mask.php">input mask component</a>.</li>
<li><a href="https://github.com/basiabaldwin">Basia Baldwin</a> for implementing dark mode across the project.
<li><a href="https://www.useragentman.com/">Zoltan Hawryluk</a> for starting the Enable project to begin with.</li>
</ul>
Expand Down
28 changes: 28 additions & 0 deletions css/enable-toc.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,31 @@
.enable-toc .enable-drawer__button:hover img {
background: #ddd;
}
@media (prefers-color-scheme: dark) {
.enable-toc {
background-color: #222;
}
.enable-toc__move-tosidebar-button {
background-color: #333;
color: white;
}
.enable-toc__move-tosidebar-button:hover {
background-color: #111;
}
.enable-toc__hide-sidebar-button {
background-color: #333;
color: white;
}
.enable-toc__hide-sidebar-button:hover {
background-color: #111;
}
.enable-toc__link {
color: #4593f8;
}
.enable-toc__link:visited {
color: #4593f8;
}
.enable-toc .enable-drawer__button {
background-color: #222;
}
}
6 changes: 6 additions & 0 deletions css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions less/enable-toc.less
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,39 @@
}
}
}

@media (prefers-color-scheme: dark) {
.enable-toc {
background-color: #222;

&__move-tosidebar-button {
background-color: #333;
color: white;

&:hover {
background-color: #111;
}
}

&__hide-sidebar-button {
background-color: #333;
color: white;

&:hover {
background-color: #111;
}
}

&__link {
color: #4593f8;

&:visited {
color: #4593f8;
}
}

.enable-drawer__button {
background-color: #222;
}
}
}
8 changes: 8 additions & 0 deletions less/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -250,5 +250,13 @@ strong {
/*Want to donate code section*/
.homepage__bottom-copy:nth-child(2n) {
background: #444;

a {
color: #7db4fa;

&:visited {
color: #c589f9;
}
}
}
}

0 comments on commit a9a5c77

Please sign in to comment.