mirror of
https://github.com/dpnmw/community-landing.git
synced 2026-03-18 09:27:16 +00:00
Tooltip animation fix
This commit is contained in:
@@ -2349,25 +2349,23 @@ html, .cl-body {
|
||||
position: absolute;
|
||||
bottom: calc(100% + 10px);
|
||||
right: 0;
|
||||
transform: translateY(4px);
|
||||
background: #111119;
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
border: 1px solid var(--cl-accent, #d4a24e);
|
||||
border-radius: 40px;
|
||||
padding: 6px 12px;
|
||||
padding: 0px 12px 4px;
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
transition: opacity 0.2s ease;
|
||||
text-align: left;
|
||||
}
|
||||
.cl-designer-badge__tooltip.active {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
pointer-events: auto;
|
||||
}
|
||||
[data-theme="light"] .cl-designer-badge__tooltip {
|
||||
background: #ffffff;
|
||||
border-color: rgba(0, 0, 0, 0.12);
|
||||
border-color: var(--cl-accent, #d4a24e);
|
||||
}
|
||||
.cl-designer-badge__tooltip::after {
|
||||
content: "";
|
||||
@@ -2377,12 +2375,12 @@ html, .cl-body {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: inherit;
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.12);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
||||
border-right: 1px solid var(--cl-accent, #d4a24e);
|
||||
border-bottom: 1px solid var(--cl-accent, #d4a24e);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
[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 {
|
||||
color: #e8b84f;
|
||||
|
||||
@@ -874,7 +874,7 @@ module CommunityLanding
|
||||
html = +""
|
||||
html << "<div class=\"cl-designer-badge\" id=\"cl-designer-badge\">\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 << " <img class=\"cl-designer-badge__logo\" src=\"data:image/png;base64,#{logo_b64}\" alt=\"Designer\">\n"
|
||||
html << "</div>\n"
|
||||
|
||||
Reference in New Issue
Block a user