Badge icon and tooltip adjustment

This commit is contained in:
2026-03-11 11:50:24 -04:00
parent 9029396fca
commit 9b3fdd80c3
2 changed files with 11 additions and 16 deletions

View File

@@ -2323,25 +2323,20 @@ html, .cl-body {
height: 40px;
border-radius: 50%;
background: #111119;
border: 1px solid rgba(255, 255, 255, 0.15);
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.3s ease, border-color 0.3s ease;
box-shadow: none;
transition: transform 0.3s ease;
}
.cl-designer-badge:hover {
transform: scale(1.08);
border-color: var(--cl-accent, #d4a24e);
}
[data-theme="light"] .cl-designer-badge {
background: #ffffff;
border-color: rgba(0, 0, 0, 0.12);
box-shadow: none;
}
[data-theme="light"] .cl-designer-badge:hover {
border-color: var(--cl-accent, #d4a24e);
}
.cl-designer-badge__logo {
width: 26px;
@@ -2353,21 +2348,21 @@ html, .cl-body {
.cl-designer-badge__tooltip {
position: absolute;
bottom: calc(100% + 10px);
right: 50%;
transform: translateX(50%) translateY(4px);
right: 0;
transform: translateY(4px);
background: #111119;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
padding: 8px 14px;
border-radius: 40px;
padding: 6px 12px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease, transform 0.2s ease;
text-align: center;
text-align: left;
}
.cl-designer-badge__tooltip.active {
opacity: 1;
transform: translateX(50%) translateY(0);
transform: translateY(0);
pointer-events: auto;
}
[data-theme="light"] .cl-designer-badge__tooltip {
@@ -2378,7 +2373,7 @@ html, .cl-body {
content: "";
position: absolute;
bottom: -5px;
right: calc(50% - 4px);
right: 16px;
width: 8px;
height: 8px;
background: inherit;
@@ -2392,7 +2387,7 @@ html, .cl-body {
.cl-designer-badge__tooltip a {
color: #e8b84f;
text-decoration: none;
font-size: 12px;
font-size: 10px;
font-weight: 500;
letter-spacing: 0.06em;
display: inline-flex;

View File

@@ -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 <u>DPN MW</u> <svg width=\"10\" height=\"10\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"vertical-align:middle;margin-left:2px\"><path d=\"M3.5 1.5H10.5V8.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M10.5 1.5L1.5 10.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/></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=\"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 << " </div>\n"
html << " <img class=\"cl-designer-badge__logo\" src=\"data:image/png;base64,#{logo_b64}\" alt=\"Designer\">\n"
html << "</div>\n"