v1.1: Complete remaining 8 feature modules + 7 CSS component sections
JS modules added:
- lt.sidebarSubmenus — nested nav groups with expand/collapse, auto-opens active
- lt.infiniteScroll — IntersectionObserver-based (scroll fallback), loading indicator
- lt.wizard — multi-step form with indicators, validation hook, getData()
- lt.sortable — HTML5 drag-to-reorder lists with placeholder ghost + bus event
- lt.timer — countdown (urgent threshold + onExpire) + stopwatch (pause/reset)
- lt.lightbox — full-screen image viewer, prev/next, ESC, caption, loop
- lt.auth — JWT token management: setToken, refresh (auto + manual),
401 retry, onExpire hook, patches lt.api with Bearer header
- lt.markdown — micro-renderer (no deps); auto-delegates to window.marked /
markdownit if present; renders headings/bold/italic/code/
links/lists/blockquotes/tables/HR
CSS sections added (69–75):
- Infinite scroll sentinel + loading indicator
- Wizard step indicators (connectors, active/complete/error states, nav footer)
- Sortable item dragging + placeholder ghost
- Countdown/timer display + urgency blink animation
- Image lightbox overlay (close/prev/next controls, caption, counter)
- Sidebar submenu groups (chevron, expand/collapse, active sub-link)
- Markdown output styling (.lt-markdown — all block elements themed)
HTML demos for all 8 new components added and wired
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4168,6 +4168,326 @@ body.lt-is-offline .lt-main { margin-top: 2rem; transition: margin-top 0.25s eas
|
||||
.lt-ws-status[data-state="disconnected"] .lt-dot { background: var(--accent-red); }
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
69. INFINITE SCROLL SENTINEL / LOADING
|
||||
---------------------------------------------------------------- */
|
||||
.lt-infinite-sentinel { height: 1px; width: 100%; }
|
||||
.lt-infinite-loading {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
70. WIZARD / MULTI-STEP FORM
|
||||
---------------------------------------------------------------- */
|
||||
/* Step container — hide non-active steps */
|
||||
[data-wizard-step] { display: none; }
|
||||
[data-wizard-step].is-active { display: block; }
|
||||
|
||||
/* Progress indicator bar */
|
||||
.lt-wizard-steps {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
margin-bottom: 1.5rem;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
.lt-wizard-step {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
flex: 1;
|
||||
min-width: 60px;
|
||||
position: relative;
|
||||
cursor: default;
|
||||
}
|
||||
/* Connector line between steps */
|
||||
.lt-wizard-step::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
left: calc(-50% + 14px);
|
||||
right: calc(50% + 14px);
|
||||
height: 1px;
|
||||
background: var(--border-dim);
|
||||
z-index: 0;
|
||||
}
|
||||
.lt-wizard-step:first-child::before { display: none; }
|
||||
.lt-wizard-step.is-complete::before { background: var(--accent-cyan); }
|
||||
/* Step number circle */
|
||||
.lt-wizard-num {
|
||||
width: 28px; height: 28px;
|
||||
border-radius: 50%;
|
||||
background: var(--bg-secondary);
|
||||
border: 1.5px solid var(--border-color);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.lt-wizard-step.is-active .lt-wizard-num {
|
||||
background: var(--accent-orange-dim);
|
||||
border-color: var(--accent-orange);
|
||||
color: var(--accent-orange);
|
||||
box-shadow: var(--box-glow-orange);
|
||||
}
|
||||
.lt-wizard-step.is-complete .lt-wizard-num {
|
||||
background: var(--accent-cyan-dim);
|
||||
border-color: var(--accent-cyan);
|
||||
color: var(--accent-cyan);
|
||||
}
|
||||
.lt-wizard-step.is-complete .lt-wizard-num::after {
|
||||
content: '✓';
|
||||
position: absolute;
|
||||
}
|
||||
.lt-wizard-step.is-error .lt-wizard-num {
|
||||
background: var(--accent-red-dim);
|
||||
border-color: var(--accent-red);
|
||||
color: var(--accent-red);
|
||||
}
|
||||
.lt-wizard-label {
|
||||
font-size: 0.62rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
.lt-wizard-step.is-active .lt-wizard-label { color: var(--accent-orange); }
|
||||
.lt-wizard-step.is-complete .lt-wizard-label { color: var(--text-secondary); }
|
||||
/* Counter badge */
|
||||
.lt-wizard-counter {
|
||||
font-size: 0.68rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.lt-wizard-counter strong { color: var(--accent-cyan); }
|
||||
/* Nav footer */
|
||||
.lt-wizard-nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 1.5rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--border-dim);
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
71. SORTABLE LIST
|
||||
---------------------------------------------------------------- */
|
||||
[data-sortable-item] { transition: opacity 0.15s; }
|
||||
[data-sortable-item].is-dragging {
|
||||
opacity: 0.35;
|
||||
cursor: grabbing;
|
||||
}
|
||||
.lt-sortable-placeholder {
|
||||
background: var(--accent-cyan-dim);
|
||||
border: 1px dashed var(--accent-cyan-border);
|
||||
border-radius: 2px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
72. COUNTDOWN / TIMER
|
||||
---------------------------------------------------------------- */
|
||||
.lt-countdown {
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-feature-settings: "tnum";
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent-cyan);
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
.lt-countdown.lt-text-red { text-shadow: var(--glow-red); }
|
||||
.lt-countdown.lt-text-cyan { text-shadow: var(--glow-cyan); }
|
||||
/* SLA urgency animation */
|
||||
.lt-countdown-urgent {
|
||||
animation: lt-countdown-blink 1s step-end infinite;
|
||||
}
|
||||
@keyframes lt-countdown-blink {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.4; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.lt-countdown-urgent { animation: none; }
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
73. IMAGE LIGHTBOX
|
||||
---------------------------------------------------------------- */
|
||||
.lt-lightbox-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(3,5,8,0.96);
|
||||
z-index: calc(var(--z-modal) + 10); /* above everything */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
.lt-lightbox-overlay.is-open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.lt-lightbox-img-wrap {
|
||||
max-width: 90vw;
|
||||
max-height: 85vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.lt-lightbox-img {
|
||||
max-width: 100%;
|
||||
max-height: 85vh;
|
||||
object-fit: contain;
|
||||
box-shadow: 0 0 60px rgba(0,212,255,0.12);
|
||||
display: block;
|
||||
}
|
||||
.lt-lightbox-close,
|
||||
.lt-lightbox-prev,
|
||||
.lt-lightbox-next {
|
||||
position: fixed;
|
||||
background: rgba(10,14,23,0.75);
|
||||
border: 1px solid var(--border-color);
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.lt-lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
|
||||
.lt-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); width: 40px; height: 60px; }
|
||||
.lt-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); width: 40px; height: 60px; }
|
||||
.lt-lightbox-close:hover,
|
||||
.lt-lightbox-prev:hover,
|
||||
.lt-lightbox-next:hover { color: var(--accent-cyan); border-color: var(--accent-cyan-border); box-shadow: var(--box-glow-cyan); }
|
||||
.lt-lightbox-caption {
|
||||
position: fixed;
|
||||
bottom: 3rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 0.78rem;
|
||||
color: var(--text-secondary);
|
||||
max-width: 60vw;
|
||||
text-align: center;
|
||||
}
|
||||
.lt-lightbox-counter {
|
||||
position: fixed;
|
||||
bottom: 1rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 0.68rem;
|
||||
color: var(--text-muted);
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
@media (pointer: coarse) {
|
||||
.lt-lightbox-prev { width: 56px; height: 80px; }
|
||||
.lt-lightbox-next { width: 56px; height: 80px; }
|
||||
.lt-lightbox-close { width: 48px; height: 48px; }
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
74. SIDEBAR SUBMENUS
|
||||
---------------------------------------------------------------- */
|
||||
.lt-sidebar-group {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
.lt-sidebar-group-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0.35rem 0.75rem;
|
||||
font-size: 0.65rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: color 0.15s;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.lt-sidebar-group-label:hover { color: var(--text-secondary); }
|
||||
.lt-sidebar-group-label .chevron {
|
||||
font-size: 0.5rem;
|
||||
transition: transform 0.2s ease;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.lt-sidebar-group.is-open .lt-sidebar-group-label .chevron { transform: rotate(90deg); }
|
||||
/* Submenu items */
|
||||
.lt-sidebar-submenu {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
padding-left: 0.75rem;
|
||||
border-left: 1px solid var(--border-dim);
|
||||
margin-left: 0.75rem;
|
||||
margin-top: 2px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.lt-sidebar-group.is-open .lt-sidebar-submenu { display: flex; }
|
||||
.lt-sidebar-sub-link {
|
||||
padding: 0.3rem 0.5rem;
|
||||
font-size: 0.72rem;
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
border-radius: 2px;
|
||||
transition: var(--transition-fast);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.lt-sidebar-sub-link:hover { color: var(--accent-cyan); background: var(--accent-cyan-dim); }
|
||||
.lt-sidebar-sub-link.active,
|
||||
.lt-sidebar-sub-link[aria-current="page"] {
|
||||
color: var(--accent-orange);
|
||||
background: var(--accent-orange-dim);
|
||||
}
|
||||
@media (pointer: coarse) {
|
||||
.lt-sidebar-group-label { padding: 0.5rem 0.75rem; }
|
||||
.lt-sidebar-sub-link { padding: 0.4rem 0.5rem; min-height: 36px; }
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
75. MARKDOWN OUTPUT STYLING
|
||||
---------------------------------------------------------------- */
|
||||
.lt-markdown h1 { font-size: 1.25rem; color: var(--accent-cyan); border-bottom: 1px solid var(--border-dim); padding-bottom: 0.3rem; margin: 1rem 0 0.5rem; }
|
||||
.lt-markdown h2 { font-size: 1.05rem; color: var(--text-primary); margin: 0.9rem 0 0.4rem; }
|
||||
.lt-markdown h3 { font-size: 0.9rem; color: var(--text-secondary); margin: 0.75rem 0 0.35rem; }
|
||||
.lt-markdown h4, .lt-markdown h5, .lt-markdown h6 { font-size: 0.8rem; color: var(--text-muted); margin: 0.5rem 0 0.25rem; }
|
||||
.lt-markdown p { font-size: 0.82rem; line-height: 1.7; color: var(--text-secondary); margin: 0.5rem 0; }
|
||||
.lt-markdown ul, .lt-markdown ol { padding-left: 1.25rem; margin: 0.5rem 0; }
|
||||
.lt-markdown li { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.2rem; }
|
||||
.lt-markdown ul li::marker { color: var(--accent-cyan); }
|
||||
.lt-markdown ol li::marker { color: var(--accent-orange); }
|
||||
.lt-markdown code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-green); background: var(--bg-secondary); padding: 1px 5px; border-radius: 2px; }
|
||||
.lt-markdown pre { margin: 0.75rem 0; overflow-x: auto; }
|
||||
.lt-markdown blockquote { border-left: 3px solid var(--accent-cyan-border); padding: 0.25rem 0.75rem; margin: 0.5rem 0; background: var(--accent-cyan-dim); color: var(--text-muted); font-style: italic; }
|
||||
.lt-markdown hr { border: none; border-top: 1px solid var(--border-dim); margin: 1rem 0; }
|
||||
.lt-markdown a { color: var(--accent-cyan); text-decoration: none; }
|
||||
.lt-markdown a:hover { text-decoration: underline; }
|
||||
.lt-markdown strong { color: var(--text-primary); }
|
||||
.lt-markdown img { max-width: 100%; border: 1px solid var(--border-dim); }
|
||||
.lt-markdown table { width: 100%; border-collapse: collapse; font-size: 0.78rem; margin: 0.75rem 0; }
|
||||
.lt-markdown th { background: var(--bg-secondary); color: var(--accent-cyan); padding: 0.4rem 0.6rem; border: 1px solid var(--border-dim); text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
|
||||
.lt-markdown td { padding: 0.35rem 0.6rem; border: 1px solid var(--border-dim); color: var(--text-secondary); }
|
||||
.lt-markdown tr:hover td { background: var(--bg-secondary); }
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
68. PRINT ENHANCEMENTS
|
||||
(Extends section 25)
|
||||
|
||||
Reference in New Issue
Block a user