diff --git a/assets/sass/pages/button-generator.scss b/assets/sass/pages/button-generator.scss
index 193610b..17c0710 100644
--- a/assets/sass/pages/button-generator.scss
+++ b/assets/sass/pages/button-generator.scss
@@ -75,7 +75,6 @@
);
z-index: 90;
}
-
&::before {
content: "";
@@ -203,7 +202,7 @@
}
label {
- display: block;
+ //display: block;
margin-top: 0.75rem;
margin-bottom: 0.25rem;
font-weight: 500;
@@ -438,6 +437,7 @@
input[type="checkbox"] {
margin: 0;
cursor: pointer;
+ margin-right: 0.25em;
}
span {
@@ -535,4 +535,45 @@
transform: translateY(0);
}
}
+
+ // Custom tooltip styles
+ .control-tooltip {
+ position: fixed;
+ background: linear-gradient(
+ 135deg,
+ rgba(0, 120, 200, 0.98) 0%,
+ rgba(0, 100, 180, 0.98) 100%
+ );
+ color: #fff;
+ padding: 0.5rem 0.75rem;
+ border-radius: 4px;
+ font-size: 0.8rem;
+ pointer-events: none;
+ z-index: 10000;
+ max-width: 250px;
+ box-shadow:
+ 0 0 20px rgba(0, 150, 255, 0.5),
+ 0 4px 12px rgba(0, 0, 0, 0.4),
+ inset 0 0 20px rgba(0, 150, 255, 0.1);
+ border: 1px solid rgba(0, 150, 255, 0.6);
+ opacity: 0;
+ transition: opacity 0.15s ease;
+ line-height: 1.4;
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
+
+ &.visible {
+ opacity: 1;
+ }
+
+ &::before {
+ content: "";
+ position: absolute;
+ bottom: 100%;
+ left: 50%;
+ transform: translateX(-50%);
+ border: 6px solid transparent;
+ border-bottom-color: rgba(0, 120, 200, 0.98);
+ filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.2));
+ }
+ }
}
diff --git a/content/resources/button-generator/index.md b/content/resources/button-generator/index.md
index 9f5d5d2..a5cc19e 100644
--- a/content/resources/button-generator/index.md
+++ b/content/resources/button-generator/index.md
@@ -14,10 +14,14 @@ This supports gif despite the basic `canvas` tag limitation courtesy of [gif.js]
Big thanks to [neonaut's 88x31 archive](https://neonaut.neocities.org/cyber/88x31) and everyone who made the buttons that appear there. You should check it out if you need inspiration for your button!
+**Important note:** Some effects and animations stack, some don't. Some work better with certain lengths of text or variables depending on text length. Experiment, see what happens.
+
{{< button-generator >}}
---
### Changelog
-- 08/01/2025 - Initial release.
+- 07/01/2025 - Initial release.
+- 08/01/2025 - Total refactor to be modular, added many more effects.
+- 09/01/2025 - Rewrote the bevel inset and outset border code so they look a lot nicer at the corners. Updates throughout so that multibit (emoji!) characters should work.
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 0ac2b0f..bdd3455 100755
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -37,8 +37,7 @@
{{ if or (findRE "{{<\\s*button-generator" .RawContent) (findRE "{{%\\s*button-generator" .RawContent) }}
- {{ $buttonGenerator := resources.Get "js/button-generator.js" | resources.Minify | resources.Fingerprint }}
-
+
{{ end }}