Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Give less emphasis to the back buttons to help visual hierarchy

Scott Petrovicd2607ce9c1cb
diff --git a/src/create.html b/src/create.html
index f732aa4..990c386 100644
--- a/src/create.html
+++ b/src/create.html
@@ -204,7 +204,7 @@
<div style="display: flex; gap: 0.5rem;">
- <button class="secondary-button" id="action_back_to_load_model" >&#x2039; Back</button>
+ <button class="no-style-button" id="action_back_to_load_model" >&#x2039; Back</button>
<button id="load-skeleton-button">Edit Skeleton &nbsp;&#x203a;</button>
</div>
@@ -310,7 +310,7 @@
<!-- back to load skeleton -->
<div class="display: flex; gap: 0.5rem;">
- <button class="secondary-button" id="action_back_to_load_skeleton" >&#x2039; Back</button>
+ <button class="no-style-button" id="action_back_to_load_skeleton" >&#x2039; Back</button>
<button id="action_bind_pose" >Bind pose</button>
</div>
@@ -370,7 +370,7 @@
<div style="display: flex; gap: 0.5rem;">
- <button class="secondary-button" id="action_back_to_edit_skeleton" >&#x2039; Back</button>
+ <button class="no-style-button" id="action_back_to_edit_skeleton" >&#x2039; Back</button>
<!-- testing the mirroring options -->
<div class="styled-checkbox icon-toggle">
diff --git a/src/index.html b/src/index.html
index a76de90..0f0ba2c 100644
--- a/src/index.html
+++ b/src/index.html
@@ -114,7 +114,7 @@
<!-- back to load skeleton -->
<div class="display: flex; gap: 0.5rem;">
- <button class="secondary-button" id="action_back_to_load_skeleton" >&#x2039; Back</button>
+ <button class="no-style-button" id="action_back_to_load_skeleton" >&#x2039; Back</button>
<button id="action_bind_pose" >Bind pose</button>
</div>
diff --git a/src/retarget/index.html b/src/retarget/index.html
index 4aeb6ae..a5a81e9 100644
--- a/src/retarget/index.html
+++ b/src/retarget/index.html
@@ -166,7 +166,7 @@
<div style="display: flex; gap: 0.5rem;">
- <button class="secondary-button" id="back_to_bone_map_button" >&#x2039; Back</button>
+ <button class="no-style-button" id="back_to_bone_map_button" >&#x2039; Back</button>
<!-- I renamed the button ID since we need to process the animations differently -->
<button id="export-retargeting-button" title="Export animations. Make sure to select the animations you want to export first.">
diff --git a/src/styles.css b/src/styles.css
index 639fe5b..50fc20a 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -242,6 +242,15 @@ button.secondary-button.play:hover {
transform: scale(1.0);
}
+button.no-style-button {
+ background: none;
+ box-shadow: none;
+ border: none;
+}
+button.no-style-button:hover {
+ background: var(--bg-primary);
+}
+
button, .button {
background: var(--button-primary-bg);
background: linear-gradient(180deg, var(--button-primary-bg) 0%, var(--button-alternate-bg) 100%);