import { createGlobalStyle } from 'antd-style'; export default createGlobalStyle` .${(p) => p.theme.prefixCls}-bubble { display: flex; &-end, &-user { justify-content: flex-end; .${(p) => p.theme.prefixCls}-bubble-content-wrapper { align-items: flex-end; } } &-content-wrapper { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; } &-content-wrapper-card { } &-content { position: relative; box-sizing: border-box; min-width: 0; max-width: 100%; color: ${(p) => p.theme.colorText}; font-size: ${(p) => p.theme.fontSize}px; line-height: ${(p) => p.theme.lineHeight}; word-break: break-word; } } .${(p) => p.theme.prefixCls}-bubble { &-content { &-filled { padding: 12px 16px; border-radius: ${(p) => p.theme.borderRadiusLG}px; background-color: ${(p) => p.theme.colorPrimaryBg}; } } } .${(p) => p.theme.prefixCls}-bubble-loading { position: relative; display: flex; align-items: center; gap: 4px; filter: invert(1) brightness(100%) saturate(0%); &-text { opacity: 0; } &-dot1 { width: 4px; height: 4px; border-radius: 999px; background: linear-gradient( ${(p) => p.theme.colorText}, ${(p) => p.theme.colorText} ), linear-gradient( ${(p) => p.theme.colorBgBase}, ${(p) => p.theme.colorBgBase} ); background-blend-mode: multiply; animation: dot_01 2.5s infinite ease; } &-dot2 { width: 4px; height: 4px; border-radius: 999px; background: linear-gradient( ${(p) => p.theme.colorTextTertiary}, ${(p) => p.theme.colorTextTertiary} ), linear-gradient( ${(p) => p.theme.colorBgBase}, ${(p) => p.theme.colorBgBase} ); background-blend-mode: multiply; animation: dot_02 2.5s infinite ease; } &-dot3 { width: 4px; height: 4px; border-radius: 999px; background: linear-gradient( ${(p) => p.theme.colorTextSecondary}, ${(p) => p.theme.colorTextSecondary} ), linear-gradient( ${(p) => p.theme.colorBgBase}, ${(p) => p.theme.colorBgBase} ); background-blend-mode: multiply; animation: dot_03 2.5s infinite ease; } } @keyframes dot_01 { 0% { transform: translateX(0px) scale(1); z-index: 3; } 30.3% { transform: translateX(15px) scale(1); z-index: 3; } 33.3% { transform: translateX(15px) scale(1); z-index: 1; } 63.6% { transform: translateX(7.5px) scale(0.75); z-index: 1; } 66.6% { transform: translateX(7.5px) scale(0.75); z-index: 2; } 97% { transform: translateX(0px) scale(1); z-index: 2; } } @keyframes dot_02 { 0% { transform: translateX(0px) scale(1); z-index: 2; } 23.3% { transform: translateX(-7.5px) scale(1.33333); z-index: 2; } 30.3% { transform: translateX(-7.5px) scale(1.33333); z-index: 3; } 56.6% { transform: translateX(7.5px) scale(1.33333); z-index: 3; } 63.6% { transform: translateX(7.5px) scale(1.33333); z-index: 1; } 97% { transform: translateX(0px) scale(1); z-index: 1; } } @keyframes dot_03 { 0% { transform: translateX(0px) scale(1); z-index: 1; } 23.3% { transform: translateX(-7.5px) scale(0.75); z-index: 1; } 30.3% { transform: translateX(-7.5px) scale(0.75); z-index: 2; } 56.6% { transform: translateX(-15px) scale(1); z-index: 2; } 63.6% { transform: translateX(-15px) scale(1); z-index: 3; } 97% { transform: translateX(0px) scale(1); z-index: 3; } } `;