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

WIP: adding necessary changes to view as dark mode #127

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
c636922
added to index css file necessary changes to view as dark mode
Jun 6, 2024
a5a8092
removed light mode as that is default
Jun 11, 2024
9791635
changing media query
Jun 11, 2024
451d96f
adding media queries to less
Jun 11, 2024
db49b84
reverting css/only keeping .less changes for now
Jun 11, 2024
07ea1ad
moving to one @media query rather than separate for each component
Jun 11, 2024
d2236b0
fixing strong (bold) text so it adjusts for dark mode
Jun 12, 2024
f57e239
changing defaults so majority of site is in dark mode -- still need t…
Jun 12, 2024
4244101
continuing dark mode changes
Jun 12, 2024
e6a280d
fixes for bookmarklets page/dropdown
Jun 12, 2024
df5c79d
rm comment code
Jun 26, 2024
231f93f
found missed section -- adding code for dropdown menus to be dark mode
Jul 10, 2024
16160fc
final flyout fixes for darkmode
Jul 10, 2024
6f3a106
fixing note, other small components for dark mode
Jul 16, 2024
715cca6
heading page to dark mode
Jul 16, 2024
7b696c6
adding .css files to PR
Jul 16, 2024
08faf3d
adding code to adjust link color for dm
Aug 6, 2024
eca0bd2
changes for visited link color
Aug 6, 2024
bbe45f1
adding code so heading links don't change color when clicked in DM
Aug 6, 2024
7918c50
dark mode link changes
Aug 6, 2024
2fbabe0
fixing based off of WAVE report
Aug 6, 2024
98dffb6
2 - fixes based off of WAVE report
Aug 6, 2024
54d093a
3 - fixes based off of WAVE report
Aug 6, 2024
115e273
4 - fixes based off of WAVE report
Aug 8, 2024
9dad20a
5 - fixes based off of WAVE report
Aug 8, 2024
eb883a0
6 - fixes based off of WAVE report
Aug 8, 2024
556e854
7 - fixes based off of WAVE report
Aug 8, 2024
fbae4a1
8 - fixes based off of WAVE report
Aug 8, 2024
c910ed5
fixing listbox accessibility errors
Aug 8, 2024
613c584
9 - fixes based off of WAVE report
Aug 8, 2024
f723f44
10 - fixes based off of WAVE report
Aug 8, 2024
3b8623d
11 - fixes based off of WAVE report
Aug 13, 2024
456614a
slider hidden WAVE report fix and git error fix for form-error
Aug 13, 2024
326334d
typo fix caught when going through webpages
Aug 15, 2024
28ec41c
dark mode changes for the stats comments (icons weren't dark mode)
Aug 15, 2024
e0ef53f
dark mode write up file and images -- still need a way to access on w…
Aug 20, 2024
cb338c2
fixing errors
Aug 20, 2024
76ec7b2
adding png files
Aug 20, 2024
ed3c159
adding png files
Aug 20, 2024
a08040f
dark mode write up errors
Aug 20, 2024
b74dbe6
fixing ul/li formatting
Aug 20, 2024
2762d8c
dark mode site navigation
Aug 27, 2024
570995d
Merge branch 'main' into dark-mode
basiabaldwin Aug 29, 2024
8c33554
Merge branch 'main' of ssh://ssh.github.com:443/PublicisSapient/enabl…
zoltan-dulac Sep 9, 2024
18dc7b5
Merge branch 'dark-mode' of ssh://ssh.github.com:443/PublicisSapient/…
zoltan-dulac Sep 9, 2024
e39b09f
Recompiled less files.
zoltan-dulac Sep 9, 2024
a9a5c77
acknowledgements edit and ToC dark mode
basiabaldwin Sep 10, 2024
ec6e7ec
axe test contrast fixes
basiabaldwin Sep 12, 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
13 changes: 13 additions & 0 deletions css/dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
padding-left: 1.5625rem;
background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) {
.enable-drawer > .enable-drawer__button {
color: #fff;
background-color: #222;
background-image: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2292px%22%20height%3D%2292px%22%20viewBox%3D%220%200%2092%2092%22%20xml%3Aspace%3D%22preserve%22%20fill%20%3D%20%22white%22%3E%3Cpath%20id%3D%22XMLID_933_%22%20d%3D%22M72.5%2046.5c0%202.5-2%204.5-4.5%204.5H50v17c0%202.5-2%204.5-4.5%204.5S41%2070.5%2041%2068V51H24c-2.5%200-4.5-2-4.5-4.5s2-4.5%204.5-4.5h17V24c0-2.5%202-4.5%204.5-4.5s4.5%202%204.5%204.5v18h18c2.5%200%204.5%202%204.5%204.5z%22%2F%3E%3Cmetadata%3E%3Crdf%3ARDF%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Ardfs%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%22%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%3E%3Crdf%3ADescription%20about%3D%22https%3A%2F%2Ficonscout.com%2Flegal%23licenses%22%20dc%3Atitle%3D%22plus%22%20dc%3Adescription%3D%22plus%22%20dc%3Apublisher%3D%22Iconscout%22%20dc%3Adate%3D%222017-09-24%22%20dc%3Aformat%3D%22image%2Fsvg%2Bxml%22%20dc%3Alanguage%3D%22en%22%3E%3Cdc%3Acreator%3E%3Crdf%3ABag%3E%3Crdf%3Ali%3EAmit%20Jakhu%3C%2Frdf%3Ali%3E%3C%2Frdf%3ABag%3E%3C%2Fdc%3Acreator%3E%3C%2Frdf%3ADescription%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3C%2Fsvg%3E");
}
}
.enable-drawer > .enable-drawer__button::-webkit-details-marker {
display: none;
}
Expand All @@ -41,6 +48,12 @@
.enable-drawer .enable-drawer__button[aria-expanded="true"] {
background-image: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2292px%22%20height%3D%2292px%22%20viewBox%3D%220%200%2092%2092%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20id%3D%22XMLID_38_%22%20d%3D%22M68%2050.5H24c-2.5%200-4.5-2-4.5-4.5s2-4.5%204.5-4.5h44c2.5%200%204.5%202%204.5%204.5s-2%204.5-4.5%204.5z%22%2F%3E%3Cmetadata%3E%3Crdf%3ARDF%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Ardfs%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%22%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%3E%3Crdf%3ADescription%20about%3D%22https%3A%2F%2Ficonscout.com%2Flegal%23licenses%22%20dc%3Atitle%3D%22minus%22%20dc%3Adescription%3D%22minus%22%20dc%3Apublisher%3D%22Iconscout%22%20dc%3Adate%3D%222017-09-24%22%20dc%3Aformat%3D%22image%2Fsvg%2Bxml%22%20dc%3Alanguage%3D%22en%22%3E%3Cdc%3Acreator%3E%3Crdf%3ABag%3E%3Crdf%3Ali%3EAmit%20Jakhu%3C%2Frdf%3Ali%3E%3C%2Frdf%3ABag%3E%3C%2Fdc%3Acreator%3E%3C%2Frdf%3ADescription%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3C%2Fsvg%3E");
}
@media (prefers-color-scheme: dark) {
.enable-drawer[open] > .enable-drawer__button,
.enable-drawer .enable-drawer__button[aria-expanded="true"] {
background-image: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2292px%22%20height%3D%2292px%22%20viewBox%3D%220%200%2092%2092%22%20xml%3Aspace%3D%22preserve%22%20fill%20%3D%20%22white%22%3E%3Cpath%20id%3D%22XMLID_38_%22%20d%3D%22M68%2050.5H24c-2.5%200-4.5-2-4.5-4.5s2-4.5%204.5-4.5h44c2.5%200%204.5%202%204.5%204.5s-2%204.5-4.5%204.5z%22%2F%3E%3Cmetadata%3E%3Crdf%3ARDF%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Ardfs%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%22%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%3E%3Crdf%3ADescription%20about%3D%22https%3A%2F%2Ficonscout.com%2Flegal%23licenses%22%20dc%3Atitle%3D%22minus%22%20dc%3Adescription%3D%22minus%22%20dc%3Apublisher%3D%22Iconscout%22%20dc%3Adate%3D%222017-09-24%22%20dc%3Aformat%3D%22image%2Fsvg%2Bxml%22%20dc%3Alanguage%3D%22en%22%3E%3Cdc%3Acreator%3E%3Crdf%3ABag%3E%3Crdf%3Ali%3EAmit%20Jakhu%3C%2Frdf%3Ali%3E%3C%2Frdf%3ABag%3E%3C%2Fdc%3Acreator%3E%3C%2Frdf%3ADescription%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3C%2Fsvg%3E");
}
}
.enable-drawer__content {
display: none;
}
Expand Down
26 changes: 26 additions & 0 deletions css/enable-flyout.css
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,32 @@
filter: none;
}
}
@media only screen and (min-width: 960px) and (prefers-color-scheme: dark) {
.enable-flyout--is-open .enable-flyout__level {
color: white;
background: #222;
}
}
@media only screen and (min-width: 960px) and (prefers-color-scheme: dark) {
.enable-flyout__list--photo-layout .enable-flyout__link:hover,
.enable-flyout__list--photo-layout .enable-flyout__link:focus {
color: white;
background: #222;
}
}
@media only screen and (min-width: 960px) and (prefers-color-scheme: dark) {
.enable-flyout--is-open {
color: white;
background: #222;
}
}
@media only screen and (min-width: 960px) and (prefers-color-scheme: dark) {
.enable-flyout--is-open .enable-flyout__open-level-button,
.enable-flyout--is-open .enable-flyout__close-level-button,
.enable-flyout--is-open .enable-flyout__link {
color: white;
}
}
@keyframes enable-flyout__anim--mobile-open {
0% {
right: calc(-1 * min(75vw, 350px));
Expand Down
10 changes: 10 additions & 0 deletions css/enable-visible-on-focus.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,13 @@
.fake-component a {
color: #330000;
}
@media (prefers-color-scheme: dark) {
.fake-component {
background: #222;
color: white;
border: solid 1px #111;
}
.fake-component a {
color: #fdfbcc;
}
}
5 changes: 5 additions & 0 deletions css/figure.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,8 @@ a.tile-cta::after {
transform: scale(0.8) translateY(0.375rem);
display: inline-block;
}
@media (prefers-color-scheme: dark) {
figure {
background: #222;
}
}
35 changes: 35 additions & 0 deletions css/heading.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ div.heading-example [role="heading"][aria-level="1"] {
text-transform: uppercase;
text-shadow: 0 2px white, 0 3px #777;
}
@media (prefers-color-scheme: dark) {
div.heading-example h1,
div.heading-example [role="heading"][aria-level="1"] {
color: #ccc;
}
}
div.heading-example h2,
div.heading-example h5 [role="heading"][aria-level="2"],
div.heading-example [role="heading"][aria-level="5"] {
Expand All @@ -64,6 +70,13 @@ div.heading-example [role="heading"][aria-level="5"] {
font-family: "Orienta", sans-serif;
border: none;
}
@media (prefers-color-scheme: dark) {
div.heading-example h2,
div.heading-example h5 [role="heading"][aria-level="2"],
div.heading-example [role="heading"][aria-level="5"] {
color: #ddd;
}
}
div.heading-example h2,
div.heading-example [role="heading"][aria-level="2"] {
font-size: 33px;
Expand All @@ -86,6 +99,14 @@ div.heading-example [role="heading"][aria-level="6"] {
letter-spacing: 1px;
font-style: italic;
}
@media (prefers-color-scheme: dark) {
div.heading-example h3,
div.heading-example h6,
div.heading-example [role="heading"][aria-level="3"],
div.heading-example [role="heading"][aria-level="6"] {
color: #ddd;
}
}
div.heading-example h3,
div.heading-example [role="heading"][aria-level="3"] {
font-size: 30px;
Expand All @@ -103,6 +124,12 @@ div.heading-example [role="heading"][aria-level="7"] {
font-weight: normal;
font-family: "Orienta", sans-serif;
}
@media (prefers-color-scheme: dark) {
div.heading-example h4,
div.heading-example [role="heading"][aria-level="7"] {
color: #ddd;
}
}
div.heading-example h4,
div.heading-example [role="heading"][aria-level="4"] {
font-size: 25px;
Expand All @@ -112,3 +139,11 @@ div.heading-example [role="heading"][aria-level="7"] {
font-size: 18px;
line-height: 20px;
}
@media (prefers-color-scheme: dark) {
body {
background: #222;
}
div.heading-example {
text-shadow: 0 2px 0 rgba(32, 32, 32, 0.7);
}
}
30 changes: 30 additions & 0 deletions css/index.css

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

Loading
Loading