Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Move theme toggle into settings drop-down.

Scott Petrovic60a328a8c185
diff --git a/src/index.html b/src/index.html
index 244a9ae..8dd04bb 100644
--- a/src/index.html
+++ b/src/index.html
@@ -37,27 +37,25 @@
<img src="../images/github-white-icon.png" width="24" height="24" alt="GitHub" />
</a>
- <!-- Theme Toggle -->
- <button id="theme-toggle">
- <!-- icon will fill in here-->
- <span class="theme-icon"></span>
- </button>
-
<!-- Settings Toggle Dropdown -->
<div id="settings-dropdown-container" class="nav-dropdown">
<button id="settings-toggle" class="nav-icon-button" aria-expanded="false" aria-controls="settings-dropdown-content" aria-haspopup="true" aria-label="Open settings">
- <span class="material-symbols-outlined">tune</span>
+ <span class="material-symbols-outlined">settings</span>
</button>
+ <!-- content that has options for settings -->
<div id="settings-dropdown-content" class="nav-dropdown-content" hidden>
- <div class="settings-dropdown-row">
- <label for="setting-snap-toggle">Snap controls</label>
- <input type="checkbox" id="setting-snap-toggle" />
- </div>
- <div class="settings-dropdown-row settings-dropdown-slider-row">
- <label for="setting-interaction-speed">Interaction speed</label>
- <input type="range" id="setting-interaction-speed" min="1" max="100" value="50" />
+ <!-- Theme Toggle -->
+ <button id="theme-toggle" class="settings-dropdown-row">
+ <!-- icon will fill in here-->
+ <span class="theme-icon"></span>
+ </button>
+
+
+ <div class="settings-dropdown-row light-intensity-setting">
+ <label for="light-intensity-input">Light intensity</label>
+ <input type="range" id="light-intensity-input" min="0.1" max="2.0" value="1.0" step="0.01" />
</div>
</div>
</div>
diff --git a/src/settings-dropdown.css b/src/settings-dropdown.css
index 6a65425..7c72603 100644
--- a/src/settings-dropdown.css
+++ b/src/settings-dropdown.css
@@ -7,7 +7,6 @@
border: none;
cursor: pointer;
display: inline-flex;
- align-items: center;
justify-content: center;
height: var(--navigation-height);
width: 48px;
@@ -16,16 +15,15 @@
border-radius: 0;
padding: 0;
}
+#settings-toggle span {
+ align-content: center; /* vertical align icon */
+}
#settings-toggle:hover,
#settings-toggle[aria-expanded="true"] {
background: var(--bg-alternate);
}
-#settings-toggle .material-symbols-outlined {
- font-size: 22px;
-}
-
#settings-dropdown-content {
position: absolute;
right: 0;
diff --git a/src/styles.css b/src/styles.css
index b382ea0..1be8e82 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -88,12 +88,6 @@ nav .active-nav-item, nav a:hover {
text-decoration: none;
}
-/* span helps have higher specificty than google font material symbols css */
-span.material-symbols-outlined {
- font-size: 20px;
-}
-
-
/* this was just a star (*) selector, but dark reader extension cannot parse that and crashes
It really just targets text related elements, so just use those instead