- Совместимость с XenForo
-
- 2.2.x
- 2.3.x
Инструкция по установке
[]Перейдите в Админ-панель → Внешний вид → Шаблоны.
[]Найдите и откройте для редактирования шаблон member_tooltip.less.
[]Замените всё содержимое шаблона на предоставленный ниже код.
[]Сохраните изменения.
Код:
@_memberTooltip-padding: 24px;
@_memberTooltip-avatarSize: 90px;
@_memberTooltip-borderRadius: 20px;
.tooltip-content-inner {
padding: 0 !important;
}
.memberTooltip {
border: none !important;
border-radius: @_memberTooltip-borderRadius !important;
box-shadow:
0 25px 80px rgba(0, 0, 0, 0.45),
0 15px 40px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.08),
inset 0 -1px 0 rgba(0, 0, 0, 0.5);
overflow: visible !important;
background: linear-gradient(145deg, #0f1419 0%, #1a1f26 50%, #0f1419 100%);
color: #d1d5db;
position: relative;
border: 1px solid rgba(255, 255, 255, 0.07);
animation: tooltipBrutalAppear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
z-index: 1000 !important;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg,
transparent,
rgba(59, 130, 246, 0.6),
rgba(139, 92, 246, 0.6),
transparent
);
z-index: 2;
}
&::after {
content: '';
position: absolute;
top: 1px;
left: 0;
right: 0;
height: 1px;
background: rgba(255, 255, 255, 0.1);
}
}
@keyframes tooltipBrutalAppear {
0% {
opacity: 0;
transform: translateY(20px) scale(0.92);
filter: blur(4px);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
filter: blur(0);
}
}
.memberTooltip-header {
display: flex;
align-items: flex-start;
padding: @_memberTooltip-padding;
position: relative;
background: linear-gradient(135deg,
rgba(30, 41, 59, 0.8) 0%,
rgba(15, 23, 42, 0.9) 50%,
rgba(30, 41, 59, 0.8) 100%);
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
min-height: 140px;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
pointer-events: none;
}
}
.memberTooltip--withBanner .memberTooltip-header {
background: transparent;
min-height: 160px;
&::before {
background:
linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%),
radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}
}
.memberTooltip-avatar {
flex: 0 0 auto;
position: relative;
z-index: 3;
.avatar {
width: @_memberTooltip-avatarSize;
height: @_memberTooltip-avatarSize;
border-radius: 18px;
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
box-shadow:
0 15px 40px rgba(0, 0, 0, 0.4),
0 8px 25px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1),
inset 0 -1px 0 rgba(0, 0, 0, 0.5);
position: relative;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
&::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
border-radius: 20px;
z-index: -1;
opacity: 0;
transition: opacity 0.4s ease;
}
&:hover {
transform: scale(1.08) rotate(1deg);
box-shadow:
0 25px 60px rgba(0, 0, 0, 0.6),
0 15px 35px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(59, 130, 246, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.15);
&::before {
opacity: 1;
}
}
}
}
.memberTooltip-headerInfo {
flex: 1;
min-width: 0;
position: relative;
z-index: 2;
margin-left: 20px;
}
.memberTooltip-headerAction {
position: absolute;
top: 0;
right: 0;
z-index: 1002 !important;
.button--link {
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.08) 0%,
rgba(255, 255, 255, 0.04) 100%) !important;
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 8px 10px;
color: rgba(255, 255, 255, 0.7) !important;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
&:hover {
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.12) 0%,
rgba(255, 255, 255, 0.06) 100%) !important;
color: white !important;
transform: translateY(-2px) scale(1.05);
box-shadow:
0 8px 25px rgba(0, 0, 0, 0.3),
0 0 0 1px rgba(59, 130, 246, 0.2);
border-color: rgba(59, 130, 246, 0.3);
}
}
}
.memberTooltip-name {
margin: 0 0 12px 0 !important;
padding: 0;
.memberTooltip-nameWrapper .username {
font-size: 26px;
font-weight: 800;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow:
0 4px 8px rgba(0, 0, 0, 0.4),
0 2px 4px rgba(0, 0, 0, 0.3);
text-decoration: none !important;
display: inline-block;
position: relative;
padding-bottom: 3px;
&::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
transition: width 0.4s ease;
}
&:hover {
transform: translateY(-2px);
background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
-webkit-background-clip: text;
&::after {
width: 100%;
}
}
}
}
.memberTooltip--withBanner .memberTooltip-nameWrapper .username {
background: linear-gradient(135deg, #ffffff 0%, #fecaca 50%, #fca5a5 100%);
-webkit-background-clip: text;
text-shadow:
0 4px 12px rgba(0, 0, 0, 0.5),
0 2px 6px rgba(0, 0, 0, 0.4);
}
.memberTooltip-nameChangeIndicator {
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.1) 0%,
rgba(255, 255, 255, 0.05) 100%) !important;
backdrop-filter: blur(15px);
border-radius: 8px;
padding: 6px 8px !important;
margin-left: 10px !important;
border: 1px solid rgba(255, 255, 255, 0.08);
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
&:hover {
background: linear-gradient(135deg,
rgba(59, 130, 246, 0.2) 0%,
rgba(139, 92, 246, 0.15) 100%) !important;
transform: translateY(-2px) scale(1.1);
box-shadow:
0 6px 20px rgba(0, 0, 0, 0.3),
0 0 0 1px rgba(59, 130, 246, 0.3);
border-color: rgba(59, 130, 246, 0.4);
}
}
.memberTooltip-banners {
margin: 10px 0;
.userBanner {
border-radius: 8px;
padding: 4px 10px;
font-size: 11px;
font-weight: 700;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 4px 12px rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.1) 0%,
rgba(255, 255, 255, 0.05) 100%);
backdrop-filter: blur(10px);
text-transform: uppercase;
letter-spacing: 0.5px;
}
}
.memberTooltip-blurbContainer {
.memberTooltip-blurb {
margin-top: 8px;
font-size: 13px;
.pairs {
margin: 0;
dt {
color: #9ca3af;
font-weight: 600;
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.3px;
}
dd {
color: #f3f4f6;
font-weight: 700;
font-size: 14px;
}
}
.userBlurb {
color: #d1d5db;
font-style: italic;
line-height: 1.5;
background: rgba(255, 255, 255, 0.03);
padding: 8px 12px;
border-radius: 8px;
border-left: 3px solid #3b82f6;
}
}
}
.memberTooltip-stats {
padding: @_memberTooltip-padding;
background: linear-gradient(135deg,
rgba(15, 23, 42, 0.8) 0%,
rgba(30, 41, 59, 0.6) 100%);
border-top: 1px solid rgba(255, 255, 255, 0.05);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
.pairJustifier {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
}
.pairs {
margin: 0;
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.05) 0%,
rgba(255, 255, 255, 0.02) 100%);
backdrop-filter: blur(10px);
border-radius: 12px;
padding: 16px;
border: 1px solid rgba(255, 255, 255, 0.06);
transition: all 0.4s ease;
position: relative;
overflow: hidden;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}
&:hover {
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.08) 0%,
rgba(255, 255, 255, 0.04) 100%);
transform: translateY(-3px);
box-shadow:
0 12px 30px rgba(0, 0, 0, 0.35),
0 8px 20px rgba(0, 0, 0, 0.25),
0 0 0 1px rgba(59, 130, 246, 0.15);
border-color: rgba(59, 130, 246, 0.2);
}
dt {
color: #9ca3af;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 6px;
}
dd {
color: #ffffff;
font-size: 20px;
font-weight: 800;
margin: 0;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
}
}
.memberTooltip-separator {
margin: 0 @_memberTooltip-padding;
border: none;
border-top: 1px solid rgba(255, 255, 255, 0.06);
height: 0;
position: relative;
&::before {
content: '';
position: absolute;
top: -1px;
left: 20%;
right: 20%;
height: 1px;
background: linear-gradient(90deg,
transparent,
rgba(59, 130, 246, 0.4),
transparent
);
}
}
.memberTooltip-actions {
padding: 20px @_memberTooltip-padding;
background: linear-gradient(135deg,
rgba(15, 23, 42, 0.9) 0%,
rgba(30, 41, 59, 0.7) 100%);
.button {
border-radius: 12px;
font-weight: 700;
padding: 10px 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.1) 0%,
rgba(255, 255, 255, 0.05) 100%) !important;
backdrop-filter: blur(15px);
color: #e5e7eb !important;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
position: relative;
overflow: hidden;
&::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent,
rgba(255, 255, 255, 0.1),
transparent
);
transition: left 0.6s ease;
}
&:hover {
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.15) 0%,
rgba(255, 255, 255, 0.08) 100%) !important;
transform: translateY(-3px);
box-shadow:
0 15px 35px rgba(0, 0, 0, 0.4),
0 8px 20px rgba(0, 0, 0, 0.3),
0 0 0 1px rgba(59, 130, 246, 0.25);
color: white !important;
border-color: rgba(59, 130, 246, 0.3);
&::before {
left: 100%;
}
}
&.button--primary {
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
border: none;
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
&:hover {
background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
box-shadow:
0 20px 45px rgba(59, 130, 246, 0.5),
0 12px 30px rgba(139, 92, 246, 0.4),
0 0 0 1px rgba(255, 255, 255, 0.1);
transform: translateY(-3px) scale(1.02);
}
}
}
}
.menu--moderator[data-menu="menu"] {
border-radius: 14px !important;
box-shadow:
0 35px 90px rgba(0, 0, 0, 0.6),
0 25px 60px rgba(0, 0, 0, 0.5),
inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
border: 1px solid rgba(220, 38, 38, 0.3) !important;
background: linear-gradient(145deg, #1a0f0f 0%, #0f1419 50%, #1a0f0f 100%) !important;
backdrop-filter: blur(25px) !important;
overflow: hidden;
position: absolute;
z-index: 10050 !important;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg,
transparent,
#dc2626,
#ef4444,
#dc2626,
transparent
);
z-index: 1;
}
&::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
pointer-events: none;
z-index: 0;
}
animation: moderatorMenuAppear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes moderatorMenuAppear {
0% {
opacity: 0;
transform: translateY(10px) scale(0.95);
filter: blur(5px);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
filter: blur(0);
}
}
.menu-content {
background: transparent !important;
position: relative;
z-index: 10051 !important;
.menu-header {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #dc2626 100%) !important;
color: #ffffff !important;
font-weight: 800 !important;
padding: 16px 20px !important;
margin: 0 !important;
font-size: 13px !important;
letter-spacing: 1px !important;
text-transform: uppercase !important;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
position: relative;
overflow: hidden;
&::before {
content: '⚡';
position: absolute;
right: 15px;
opacity: 0.6;
font-size: 12px;
}
&::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg,
transparent,
rgba(255, 255, 255, 0.3),
transparent
);
}
}
}
.menu-content .menu-row {
padding: 14px 20px !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
background: transparent !important;
color: #e5e7eb !important;
font-weight: 600 !important;
font-size: 13px !important;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
position: relative;
overflow: hidden;
&::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent,
rgba(220, 38, 38, 0.1),
transparent
);
transition: left 0.6s ease;
}
&:hover {
background: linear-gradient(135deg,
rgba(220, 38, 38, 0.15) 0%,
rgba(185, 28, 28, 0.1) 100%
) !important;
color: #ffffff !important;
transform: translateX(5px);
border-left: 3px solid #dc2626 !important;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.05),
inset 0 -1px 0 rgba(0, 0, 0, 0.2);
&::before {
left: 100%;
}
}
&:last-child {
border-bottom: none !important;
border-radius: 0 0 14px 14px !important;
}
&.menu-row--highlighted,
&[data-action*="ban"],
&[data-action*="delete"],
&[data-action*="spam"] {
color: #fca5a5 !important;
font-weight: 700 !important;
&::after {
content: '';
position: absolute;
right: 15px;
font-size: 11px;
opacity: 0.7;
}
&:hover {
background: linear-gradient(135deg,
rgba(220, 38, 38, 0.25) 0%,
rgba(185, 28, 28, 0.2) 100%
) !important;
color: #fecaca !important;
border-left-color: #ef4444 !important;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.1),
inset 0 -1px 0 rgba(0, 0, 0, 0.3),
0 0 15px rgba(220, 38, 38, 0.3);
}
}
&[data-action*="warn"],
&[data-action*="approve"],
&[data-action*="edit"] {
color: #fdba74 !important;
&:hover {
background: linear-gradient(135deg,
rgba(245, 158, 11, 0.15) 0%,
rgba(217, 119, 6, 0.1) 100%
) !important;
color: #fed7aa !important;
border-left-color: #f59e0b !important;
}
}
&[data-action*="view"],
&[data-action*="log"],
&[data-action*="history"] {
color: #93c5fd !important;
&:hover {
background: linear-gradient(135deg,
rgba(59, 130, 246, 0.15) 0%,
rgba(37, 99, 235, 0.1) 100%
) !important;
color: #bfdbfe !important;
border-left-color: #3b82f6 !important;
}
}
}
.menuTrigger[data-xf-click="menu"] {
background: linear-gradient(135deg,
rgba(220, 38, 38, 0.2) 0%,
rgba(185, 28, 28, 0.15) 100%
) !important;
backdrop-filter: blur(20px);
border: 1px solid rgba(220, 38, 38, 0.4) !important;
border-radius: 10px;
padding: 8px 10px !important;
color: #fca5a5 !important;
transition: all 0.3s ease;
box-shadow:
0 4px 15px rgba(220, 38, 38, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
z-index: 1001 !important;
&:hover {
background: linear-gradient(135deg,
rgba(220, 38, 38, 0.3) 0%,
rgba(185, 28, 28, 0.25) 100%
) !important;
color: #fecaca !important;
transform: translateY(-2px) scale(1.05);
box-shadow:
0 8px 25px rgba(220, 38, 38, 0.3),
0 0 0 1px rgba(239, 68, 68, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.15);
border-color: rgba(239, 68, 68, 0.6) !important;
}
}
@media (max-width: 768px) {
.memberTooltip-header {
flex-direction: column;
text-align: center;
min-height: 180px;
}
.memberTooltip-headerInfo {
margin-left: 0;
margin-top: 15px;
}
.memberTooltip-avatar .avatar {
width: 70px;
height: 70px;
}
.memberTooltip-stats .pairJustifier {
grid-template-columns: repeat(2, 1fr);
}
.memberTooltip-name .memberTooltip-nameWrapper .username {
font-size: 22px;
}
.menu--moderator[data-menu="menu"] {
min-width: 280px !important;
max-width: 90vw !important;
}
.menu-content .menu-row {
padding: 16px 20px !important;
font-size: 14px !important;
}
.menuTrigger[data-xf-click="menu"] {
padding: 10px 12px !important;
}
}
@media (max-width: 480px) {
.memberTooltip-stats .pairJustifier {
grid-template-columns: 1fr;
}
.memberTooltip {
margin: 10px;
}
}