Tooltip animation fix

This commit is contained in:
2026-03-11 12:05:57 -04:00
parent 9b3fdd80c3
commit 81971b70fc
2 changed files with 8 additions and 10 deletions

View File

@@ -2349,25 +2349,23 @@ html, .cl-body {
position: absolute; position: absolute;
bottom: calc(100% + 10px); bottom: calc(100% + 10px);
right: 0; right: 0;
transform: translateY(4px);
background: #111119; background: #111119;
border: 1px solid rgba(255, 255, 255, 0.12); border: 1px solid var(--cl-accent, #d4a24e);
border-radius: 40px; border-radius: 40px;
padding: 6px 12px; padding: 0px 12px 4px;
white-space: nowrap; white-space: nowrap;
pointer-events: none; pointer-events: none;
opacity: 0; opacity: 0;
transition: opacity 0.2s ease, transform 0.2s ease; transition: opacity 0.2s ease;
text-align: left; text-align: left;
} }
.cl-designer-badge__tooltip.active { .cl-designer-badge__tooltip.active {
opacity: 1; opacity: 1;
transform: translateY(0);
pointer-events: auto; pointer-events: auto;
} }
[data-theme="light"] .cl-designer-badge__tooltip { [data-theme="light"] .cl-designer-badge__tooltip {
background: #ffffff; background: #ffffff;
border-color: rgba(0, 0, 0, 0.12); border-color: var(--cl-accent, #d4a24e);
} }
.cl-designer-badge__tooltip::after { .cl-designer-badge__tooltip::after {
content: ""; content: "";
@@ -2377,12 +2375,12 @@ html, .cl-body {
width: 8px; width: 8px;
height: 8px; height: 8px;
background: inherit; background: inherit;
border-right: 1px solid rgba(255, 255, 255, 0.12); border-right: 1px solid var(--cl-accent, #d4a24e);
border-bottom: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid var(--cl-accent, #d4a24e);
transform: rotate(45deg); transform: rotate(45deg);
} }
[data-theme="light"] .cl-designer-badge__tooltip::after { [data-theme="light"] .cl-designer-badge__tooltip::after {
border-color: rgba(0, 0, 0, 0.12); border-color: var(--cl-accent, #d4a24e);
} }
.cl-designer-badge__tooltip a { .cl-designer-badge__tooltip a {
color: #e8b84f; color: #e8b84f;

View File

@@ -874,7 +874,7 @@ module CommunityLanding
html = +"" html = +""
html << "<div class=\"cl-designer-badge\" id=\"cl-designer-badge\">\n" html << "<div class=\"cl-designer-badge\" id=\"cl-designer-badge\">\n"
html << " <div class=\"cl-designer-badge__tooltip\" id=\"cl-designer-tooltip\">\n" html << " <div class=\"cl-designer-badge__tooltip\" id=\"cl-designer-tooltip\">\n"
html << " <a href=\"https://www.dpnmw.com\" target=\"_blank\" rel=\"noopener noreferrer\">Interface By DPN MW <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8\" height=\"8\" viewBox=\"0 -960 960 960\" fill=\"currentColor\" style=\"vertical-align:middle;margin-left:2px\"><path d=\"M186.67-120q-27 0-46.84-19.83Q120-159.67 120-186.67v-586.66q0-27 19.83-46.84Q159.67-840 186.67-840H466v66.67H186.67v586.66h586.66V-466H840v279.33q0 27-19.83 46.84Q800.33-120 773.33-120H186.67ZM384-336.67 337.33-384l389.34-389.33h-194V-840H840v307.33h-66.67V-726L384-336.67Z\"/></svg></a>\n" html << " <a href=\"https://www.dpnmw.com\" target=\"_blank\" rel=\"noopener noreferrer\">Interface By DPN MW <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 -960 960 960\" fill=\"currentColor\" style=\"vertical-align:middle;margin-left:2px\"><path d=\"M186.67-120q-27 0-46.84-19.83Q120-159.67 120-186.67v-586.66q0-27 19.83-46.84Q159.67-840 186.67-840H466v66.67H186.67v586.66h586.66V-466H840v279.33q0 27-19.83 46.84Q800.33-120 773.33-120H186.67ZM384-336.67 337.33-384l389.34-389.33h-194V-840H840v307.33h-66.67V-726L384-336.67Z\"/></svg></a>\n"
html << " </div>\n" html << " </div>\n"
html << " <img class=\"cl-designer-badge__logo\" src=\"data:image/png;base64,#{logo_b64}\" alt=\"Designer\">\n" html << " <img class=\"cl-designer-badge__logo\" src=\"data:image/png;base64,#{logo_b64}\" alt=\"Designer\">\n"
html << "</div>\n" html << "</div>\n"