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

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 <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 << " </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"