Завершение rebase с обновленными компонентами

This commit is contained in:
Bivekich
2025-07-11 01:43:01 +03:00
parent 90d1beb15e
commit 7abe016f0f
6 changed files with 958 additions and 96 deletions

View File

@ -100,4 +100,281 @@ input[type=number] {
.cookie-consent-enter {
animation: slideInFromBottom 0.3s ease-out;
}
/* Анимации для тултипов */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes zoomIn {
from {
transform: scale(0.95);
}
to {
transform: scale(1);
}
}
.animate-in {
animation-fill-mode: both;
}
.fade-in-0 {
animation-name: fadeIn;
}
.zoom-in-95 {
animation-name: zoomIn;
}
.duration-200 {
animation-duration: 200ms;
}
/* Стили для кнопок с курсором pointer */
button,
.cursor-pointer,
[role="button"] {
cursor: pointer;
}
/* ===== СОВРЕМЕННЫЕ СТИЛИ ДЛЯ КРАСИВОГО ТУЛТИПА ===== */
.tooltip-detail-modern {
animation: tooltip-modern-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}
.tooltip-content-modern {
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border: 1px solid #e2e8f0;
border-radius: 16px;
overflow: hidden;
max-width: 420px;
min-width: 280px;
box-shadow:
0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04);
position: relative;
}
.tooltip-arrow {
position: absolute;
top: -6px;
left: 50%;
transform: translateX(-50%);
width: 12px;
height: 12px;
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border: 1px solid #e2e8f0;
border-bottom: none;
border-right: none;
transform: translateX(-50%) rotate(45deg);
z-index: 1;
}
.tooltip-header-modern {
background: linear-gradient(135deg, #EC1C24 0%, #DC1C24 100%);
padding: 16px 20px;
display: flex;
align-items: flex-start;
gap: 12px;
position: relative;
}
.tooltip-header-modern::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
pointer-events: none;
}
.tooltip-icon {
color: white;
opacity: 0.9;
flex-shrink: 0;
margin-top: 2px;
}
.tooltip-title-section {
flex: 1;
min-width: 0;
}
.tooltip-title {
margin: 0 0 8px 0;
font-size: 16px;
font-weight: 600;
color: white;
line-height: 1.3;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.tooltip-oem-badge {
display: inline-flex;
align-items: center;
background: rgba(255, 255, 255, 0.15);
border-radius: 6px;
padding: 4px 8px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.tooltip-oem-label {
font-size: 10px;
font-weight: 600;
color: rgba(255, 255, 255, 0.8);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-right: 6px;
}
.tooltip-oem-value {
font-size: 12px;
font-weight: 600;
color: white;
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}
.tooltip-body-modern {
padding: 20px;
}
.tooltip-section-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
color: #374151;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 2px solid #f1f5f9;
}
.tooltip-section-title svg {
color: #EC1C24;
}
.tooltip-attributes-grid {
display: grid;
gap: 8px;
}
.tooltip-attribute-item {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 10px 12px;
transition: all 0.2s ease;
}
.tooltip-attribute-item:hover {
background: #f1f5f9;
border-color: #cbd5e1;
transform: translateY(-1px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.tooltip-attribute-key {
font-size: 12px;
font-weight: 600;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 4px;
}
.tooltip-attribute-value {
font-size: 14px;
font-weight: 500;
color: #1e293b;
line-height: 1.4;
}
.tooltip-note-modern {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid #e2e8f0;
}
.tooltip-note-text {
background: #fef3c7;
border: 1px solid #fbbf24;
border-radius: 8px;
padding: 12px;
font-size: 13px;
color: #92400e;
line-height: 1.5;
margin-top: 8px;
}
.tooltip-no-data {
display: flex;
flex-direction: column;
align-items: center;
padding: 24px 16px;
text-align: center;
}
.tooltip-no-data-icon {
color: #94a3b8;
margin-bottom: 12px;
opacity: 0.7;
}
.tooltip-no-data-text {
color: #64748b;
font-size: 14px;
line-height: 1.4;
}
.tooltip-no-data-text div:first-child {
font-weight: 500;
margin-bottom: 2px;
}
.tooltip-no-data-text div:last-child {
opacity: 0.8;
}
@keyframes tooltip-modern-fade-in {
from {
opacity: 0;
transform: scale(0.95) translateY(-10px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
.tooltip-content-modern {
max-width: 320px;
min-width: 260px;
}
.tooltip-header-modern {
padding: 14px 16px;
}
.tooltip-body-modern {
padding: 16px;
}
.tooltip-title {
font-size: 15px;
}
}