feat(labs): максимальное улучшение периодической таблицы — 5 волн
ВОЛНА A — Расширенная база данных: - Новый файл _periodic_data.js (~70 KB): PERIODIC_EXT_DATA + ISOTOPES + SPECTRA - 30 элементов полностью (H..Au): радиусы, ионизация, теплоёмкость, теплопроводность, кристалл, распространённость, биология, токсичность, пламя, применения, история, этимология, минералы, типичные реакции - 9 элементов с минимумом (Sc, Ti, V, As, Se, Kr, Hg, Pb, I) - 60 изотопов в 20 элементах (включая ¹³¹I, ¹³⁷Cs, ⁶⁰Co, ⁹⁰Sr, ¹⁴C, ³H, U-235/238) - 43 эмиссионных линий для 8 элементов (H, He, Li, Na, K, Ne, Ar, Hg) ВОЛНА B — Визуальные режимы: - Heatmap по 9 свойствам (En, mass, density, melt, boil, discovered + расширенные) с jet-colormap, lin/log toggle, легендой, анимацией 400ms - 3D-таблица через Three.js: bar / wave / stack modes, orbit camera, raycaster hover - Морф между формами таблицы: standard / long (32-col, f-block inline) / short (8-col) с staggered fade-in 800ms - Тренды стрелками: радиус / ЭО / ИЕ / металличность с градиентными arrows ВОЛНА C — Карточка элемента 2.0 (11 табов): - Обзор (hero 96px символ + Z + категория-бейдж + quick stats) - Свойства (17-row таблица расширенных параметров) - Электроника (Bohr + статичная конфигурация) - Изотопы (список + bar chart + weighted average mass) - История (timeline + этимология) - Применения (15 SVG иконок-сфер + текст) - Биология (badge: macro/micro/trace/toxic/inert/radioactive) - Минералы (формулы) - Спектр (rainbow 380-780nm + линии эмиссии) - Пламя (цвет + название) - Реакции (типовые уравнения по типу элемента) - Hero header с цветом типа; smooth fade transitions между табами ВОЛНА D — Интерактивные режимы: - Бинарные соединения: drag 2 элемента → формула (NaCl, Fe₂O₃) + тип связи (ΔЭО) - Сравнить до 4 элементов: side-by-side + min/max highlight + chart - Ряд активности металлов: 28 элементов от Li до Au, разделитель H - Таблица Менделеева 1869: 63 элемента + 4 предсказанных (Ga, Sc, Ge, Tc) с popup «предсказано vs реально» - Таймлайн открытий 1660-2024 с slider и auto-play ВОЛНА G — Электронные конфигурации углубление: - Orbital filling diagram: квадратики с электронами по Хунду/Паули, glow на валентном - Aufbau diagram с slider Z 1-118 и анимированным указателем порядка заполнения - Квантовые числа (n, l, m_l, m_s) — hover на электрон → tooltip - Возбуждение электронов: click на электрон в Bohr → выбор уровня → анимация перехода с фотоном (цвет ∝ длине волны через ΔE = 13.6 eV × ...) periodic.js: 750 → 3239 строк. Все 5 волн ADDITIVE — старая база сохранена. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1447,6 +1447,42 @@
|
||||
.cur-cross { cursor: crosshair !important; }
|
||||
.cur-move { cursor: move !important; }
|
||||
|
||||
/* ── Periodic Table — Visual Modes (Wave B) ─────────────────── */
|
||||
#ptbl-vmodes-bar {
|
||||
user-select: none;
|
||||
}
|
||||
#ptbl-vmodes-bar .ptbl-vm-btn:hover {
|
||||
background: rgba(155,93,229,0.18) !important;
|
||||
color: #e0e0ff !important;
|
||||
border-color: rgba(155,93,229,0.4) !important;
|
||||
}
|
||||
#ptbl-vmodes-bar .ptbl-vm-btn:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
#ptbl-heat-legend {
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
#ptbl-heat-grad {
|
||||
image-rendering: crisp-edges;
|
||||
}
|
||||
#ptbl-3d-canvas {
|
||||
outline: none;
|
||||
cursor: grab;
|
||||
}
|
||||
#ptbl-3d-canvas:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
#ptbl-trend-canvas {
|
||||
z-index: 5;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
#ptbl-3d-tip {
|
||||
max-width: 200px;
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Draggable canvas elements within sims */
|
||||
[draggable="true"] canvas,
|
||||
canvas[data-draggable] { cursor: grab; }
|
||||
@@ -1556,3 +1592,352 @@ canvas[data-draggable]:active { cursor: grabbing; }
|
||||
height: 13px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════
|
||||
PERIODIC TABLE — Tabbed Card V2
|
||||
═══════════════════════════════════════════════════════════ */
|
||||
|
||||
/* ── Card wrapper ── */
|
||||
.ptbl-card-v2 {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
background: color-mix(in srgb, var(--el-col, #7B8EF7) 10%, #0D0D1A 90%);
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ── Close button ── */
|
||||
.ptbl-card-close {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
z-index: 10;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(255,255,255,0.06);
|
||||
border: 1px solid rgba(255,255,255,0.12);
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
color: rgba(255,255,255,0.5);
|
||||
transition: background .12s, color .12s;
|
||||
padding: 0;
|
||||
}
|
||||
.ptbl-card-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
|
||||
.ptbl-card-close .ic { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; }
|
||||
|
||||
/* ── Hero section ── */
|
||||
.ptbl-hero {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
padding: 14px 10px 10px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.07);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.ptbl-hero-z {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 10px;
|
||||
font-size: .72rem;
|
||||
font-weight: 700;
|
||||
color: rgba(255,255,255,0.35);
|
||||
line-height: 1;
|
||||
}
|
||||
.ptbl-hero-sym {
|
||||
font-size: 6rem;
|
||||
font-weight: 900;
|
||||
color: var(--el-col, #7B8EF7);
|
||||
line-height: 1;
|
||||
letter-spacing: -2px;
|
||||
}
|
||||
.ptbl-hero-name {
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.ptbl-hero-mass {
|
||||
font-size: .72rem;
|
||||
color: rgba(255,255,255,0.4);
|
||||
margin-top: 1px;
|
||||
}
|
||||
.ptbl-hero-badge {
|
||||
display: inline-block;
|
||||
margin-top: 6px;
|
||||
padding: 2px 9px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid;
|
||||
font-size: .68rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ── Tab bar ── */
|
||||
.ptbl-tabs {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
flex-shrink: 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.07);
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.ptbl-tabs::-webkit-scrollbar { display: none; }
|
||||
|
||||
.ptbl-tab {
|
||||
flex-shrink: 0;
|
||||
padding: 6px 9px;
|
||||
font-size: .67rem;
|
||||
font-weight: 600;
|
||||
color: rgba(255,255,255,0.4);
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
cursor: pointer;
|
||||
transition: color .12s, border-color .12s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ptbl-tab:hover { color: rgba(255,255,255,0.75); }
|
||||
.ptbl-tab.active {
|
||||
color: var(--el-col, #7B8EF7);
|
||||
border-bottom-color: var(--el-col, #7B8EF7);
|
||||
}
|
||||
|
||||
/* ── Tab body ── */
|
||||
.ptbl-tab-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
font-size: .76rem;
|
||||
color: #ccc;
|
||||
transition: opacity .2s;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgba(255,255,255,0.1) transparent;
|
||||
}
|
||||
|
||||
/* ── Shared helpers ── */
|
||||
.ptbl-quick-label {
|
||||
font-size: .67rem;
|
||||
color: rgba(255,255,255,0.4);
|
||||
display: block;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.ptbl-quick-val { font-weight: 600; color: #e0e0e0; font-size: .76rem; }
|
||||
.ptbl-empty { color: rgba(255,255,255,0.3); font-size: .75rem; font-style: italic; }
|
||||
.ptbl-summary { color: #bbb; font-size: .75rem; line-height: 1.5; margin-bottom: 8px; }
|
||||
|
||||
/* ── Overview tab ── */
|
||||
.ptbl-overview { }
|
||||
.ptbl-quick-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 6px;
|
||||
}
|
||||
.ptbl-quick-item {
|
||||
background: rgba(255,255,255,0.04);
|
||||
border: 1px solid rgba(255,255,255,0.07);
|
||||
border-radius: 6px;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
|
||||
/* ── Properties tab ── */
|
||||
.ptbl-prop-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: .73rem;
|
||||
}
|
||||
.ptbl-prop-table td, .ptbl-prop-table th {
|
||||
padding: 4px 4px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
vertical-align: top;
|
||||
}
|
||||
.ptbl-prop-table td:first-child {
|
||||
color: rgba(255,255,255,0.45);
|
||||
padding-right: 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ptbl-prop-table td:last-child { color: #ddd; }
|
||||
.ptbl-prop-table th {
|
||||
color: rgba(255,255,255,0.35);
|
||||
font-size: .67rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .05em;
|
||||
}
|
||||
|
||||
/* ── Electronics tab ── */
|
||||
.ptbl-electronics { }
|
||||
.ptbl-bohr-inline-wrap {
|
||||
background: rgba(0,0,0,0.3);
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.ptbl-el-config {
|
||||
background: rgba(255,255,255,0.04);
|
||||
border: 1px solid rgba(255,255,255,0.07);
|
||||
border-radius: 6px;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
.ptbl-el-config-code {
|
||||
display: block;
|
||||
margin-top: 2px;
|
||||
font-size: .75rem;
|
||||
color: var(--el-col, #7B8EF7);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* ── Isotopes tab ── */
|
||||
.ptbl-iso-table thead th { text-align: left; }
|
||||
.ptbl-iso-avg {
|
||||
margin-top: 6px;
|
||||
font-size: .73rem;
|
||||
color: rgba(255,255,255,0.55);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* ── History tab ── */
|
||||
.ptbl-history { }
|
||||
.ptbl-timeline-card {
|
||||
background: rgba(255,255,255,0.05);
|
||||
border-left: 3px solid var(--el-col, #7B8EF7);
|
||||
border-radius: 4px;
|
||||
padding: 8px 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.ptbl-timeline-year {
|
||||
font-size: 1.3rem;
|
||||
font-weight: 900;
|
||||
color: var(--el-col, #7B8EF7);
|
||||
line-height: 1;
|
||||
}
|
||||
.ptbl-timeline-who { font-size: .78rem; color: #ccc; margin-top: 2px; }
|
||||
.ptbl-timeline-country { font-size: .7rem; color: rgba(255,255,255,0.4); margin-top: 1px; }
|
||||
.ptbl-hist-text { font-size: .75rem; color: #bbb; line-height: 1.55; }
|
||||
.ptbl-etymology {
|
||||
margin-top: 8px;
|
||||
padding: 6px 8px;
|
||||
background: rgba(255,255,255,0.03);
|
||||
border-radius: 5px;
|
||||
font-size: .73rem;
|
||||
color: #bbb;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* ── Applications tab ── */
|
||||
.ptbl-app-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.ptbl-app-chip {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 6px 8px;
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 1px solid rgba(255,255,255,0.09);
|
||||
border-radius: 8px;
|
||||
font-size: .64rem;
|
||||
color: #bbb;
|
||||
min-width: 48px;
|
||||
text-align: center;
|
||||
transition: background .12s;
|
||||
}
|
||||
.ptbl-app-chip:hover { background: rgba(255,255,255,0.10); }
|
||||
.ptbl-app-chip .ic {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
stroke: var(--el-col, #7B8EF7);
|
||||
fill: none;
|
||||
stroke-width: 1.6;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
.ptbl-app-desc { font-size: .74rem; color: #bbb; line-height: 1.55; margin-top: 4px; }
|
||||
|
||||
/* ── Biology tab ── */
|
||||
.ptbl-bio-badge {
|
||||
display: inline-block;
|
||||
padding: 4px 10px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid;
|
||||
font-size: .73rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.ptbl-bio-role { font-size: .74rem; color: #bbb; line-height: 1.55; }
|
||||
.ptbl-bio-toxicity {
|
||||
margin-top: 6px;
|
||||
font-size: .73rem;
|
||||
color: rgba(255,255,255,0.55);
|
||||
}
|
||||
|
||||
/* ── Minerals tab ── */
|
||||
.ptbl-mineral-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.ptbl-mineral-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: rgba(255,255,255,0.04);
|
||||
border: 1px solid rgba(255,255,255,0.07);
|
||||
border-radius: 5px;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
.ptbl-mineral-name { color: #ddd; font-size: .75rem; }
|
||||
.ptbl-mineral-formula {
|
||||
font-size: .7rem;
|
||||
color: var(--el-col, #7B8EF7);
|
||||
background: rgba(255,255,255,0.05);
|
||||
padding: 1px 5px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.ptbl-mineral-sources { font-size: .74rem; color: #bbb; }
|
||||
|
||||
/* ── Spectrum tab ── */
|
||||
.ptbl-spectrum { }
|
||||
.ptbl-spec-lines-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
.ptbl-spec-tag {
|
||||
padding: 2px 6px;
|
||||
background: rgba(255,255,255,0.06);
|
||||
border-radius: 4px;
|
||||
font-size: .68rem;
|
||||
color: #bbb;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* ── Flame tab ── */
|
||||
.ptbl-flame { text-align: center; padding: 10px 0; }
|
||||
.ptbl-flame-swatch {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
margin: 0 auto 10px;
|
||||
}
|
||||
.ptbl-flame-label { font-size: .78rem; color: #ddd; font-weight: 600; }
|
||||
.ptbl-flame-desc { font-size: .73rem; color: #aaa; line-height: 1.55; margin-top: 6px; text-align: left; }
|
||||
|
||||
/* ── Reactions tab ── */
|
||||
.ptbl-reactions { display: flex; flex-direction: column; gap: 8px; }
|
||||
.ptbl-reaction-item {
|
||||
background: rgba(255,255,255,0.04);
|
||||
border: 1px solid rgba(255,255,255,0.07);
|
||||
border-radius: 6px;
|
||||
padding: 7px 9px;
|
||||
}
|
||||
.ptbl-reaction-label { font-size: .68rem; color: rgba(255,255,255,0.4); margin-bottom: 3px; }
|
||||
.ptbl-reaction-eq { font-size: .78rem; font-weight: 600; font-family: 'Courier New', monospace; }
|
||||
.ptbl-reaction-note { font-size: .68rem; color: rgba(255,255,255,0.3); font-style: italic; margin-top: 4px; }
|
||||
|
||||
Reference in New Issue
Block a user