UNPKG

@logicflow/dumi-theme-simple

Version:
80 lines (73 loc) 1.67 kB
.agentBtn { position: fixed; right: 14px; bottom: 10px; z-index: 100; width: 160px; height: 100px; background: url(https://s3-gz01.didistatic.com/ese-feedback/LogicFlow/Lf-agent-logo-v7.png) no-repeat center center / 100% 100%; background-size: cover; cursor: pointer; transition: transform 200ms ease, filter 200ms ease; will-change: transform; } .agentBtnHover { transition: transform 200ms ease, filter 200ms ease; transform: translateY(-2px) scale(1.04); filter: drop-shadow(8px 8px 5px rgba(0, 0, 0, 0.2)); } .tooltipWrap { position: fixed; right: 180px; bottom: 80px; z-index: 100; pointer-events: none; display: flex; flex-direction: column; align-items: flex-start; max-width: 240px; opacity: 0; transform: translateY(12px); transition: opacity 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1); will-change: transform, opacity; } .tooltipVisible { opacity: 1; transform: translateY(0); } .tooltip { position: relative; background: rgba(255, 255, 255, 0.95); color: #075ae3; font-weight: bolder; font-size: 14px; line-height: 20px; padding: 10px 12px; border-radius: 8px; box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.12); backdrop-filter: saturate(180%) blur(2px); z-index: 1; display: flex; flex-direction: column; gap: 6px; max-width: 240px; overflow: hidden; color: #075ae3; } .greeting { color: #474747; font-size: 14px; line-height: 18px; margin-bottom: 6px; } .tip { color: #075ae3; font-weight: 500; font-size: 14px; line-height: 20px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }