Skip to content

Commit

Permalink
Remove wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbruntonsagecom committed Sep 17, 2024
1 parent cea112e commit 95aad2f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/usage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
body {
font: var(--page-typography-p-standard);
background: var(--page-color-standard-bg-default);
}

* {
color: var(--page-color-standard-text-default);
}

Expand Down Expand Up @@ -66,6 +63,12 @@
color-scheme: light dark; /* Device preference by default */
}

.mode-light,
.mode-dark {
background: var(--page-color-standard-bg-default);
color: var(--page-color-standard-text-default);
}

.mode-light {
color-scheme: only light;
}
Expand All @@ -80,7 +83,7 @@
}
}

.inverted * {
.inverted {
color: var(--page-color-inverse-text-default);
}
</style>
Expand All @@ -106,7 +109,9 @@ <h1>Light/dark mode demonstration</h1>
<section>
<h2>User selection</h2>
<p>This section will change based on user preference.</p>
<button onclick="setMode(event, 'mode-system')" class="active">System</button>
<button onclick="setMode(event, 'mode-system')" class="active">
System
</button>
<button onclick="setMode(event, 'mode-light')">Light</button>
<button onclick="setMode(event, 'mode-dark')">Dark</button>
</section>
Expand Down

0 comments on commit 95aad2f

Please sign in to comment.