Remove every em and en dash; fix the EJS layout's broken comment tags #3
No files matched your search
@@ -2,3 +2,4 @@ node_modules/
|
|||||||
.env
|
.env
|
||||||
*.env
|
*.env
|
||||||
scripts/__pycache__/
|
scripts/__pycache__/
|
||||||
|
__pycache__/
|
||||||
+32
-32
@@ -1,4 +1,4 @@
|
|||||||
# Authelia Portal — LotusGuild Terminal Design System Integration
|
# Authelia Portal - LotusGuild Terminal Design System Integration
|
||||||
|
|
||||||
This document covers everything that had to be **written from scratch** to theme the
|
This document covers everything that had to be **written from scratch** to theme the
|
||||||
Authelia authentication portal using the LotusGuild Terminal Design System v1.2.
|
Authelia authentication portal using the LotusGuild Terminal Design System v1.2.
|
||||||
@@ -9,7 +9,7 @@ applications that use their own component frameworks.
|
|||||||
|
|
||||||
## Why a separate file at all?
|
## Why a separate file at all?
|
||||||
|
|
||||||
`base.css` targets exclusively `.lt-*` class names — the design system's own prefix.
|
`base.css` targets exclusively `.lt-*` class names - the design system's own prefix.
|
||||||
Authelia's frontend is a React single-page application built on
|
Authelia's frontend is a React single-page application built on
|
||||||
**Material UI (MUI) v5**, which generates its own stable class names like
|
**Material UI (MUI) v5**, which generates its own stable class names like
|
||||||
`.MuiCard-root`, `.MuiButton-containedPrimary`, etc.
|
`.MuiCard-root`, `.MuiButton-containedPrimary`, etc.
|
||||||
@@ -17,7 +17,7 @@ Bridging the two requires a translation layer: the same design tokens and visual
|
|||||||
patterns from `base.css`, re-expressed against MUI's class structure.
|
patterns from `base.css`, re-expressed against MUI's class structure.
|
||||||
|
|
||||||
Additionally, Authelia v4.x (latest: 4.39.x) does **not** support native CSS
|
Additionally, Authelia v4.x (latest: 4.39.x) does **not** support native CSS
|
||||||
injection — `server.asset_path` only handles `logo.png` and `favicon.ico`.
|
injection - `server.asset_path` only handles `logo.png` and `favicon.ico`.
|
||||||
The CSS is injected via **nginx `sub_filter`** in Nginx Proxy Manager, which rewrites
|
The CSS is injected via **nginx `sub_filter`** in Nginx Proxy Manager, which rewrites
|
||||||
Authelia's HTML on the fly to include a `<link>` tag before `</head>`.
|
Authelia's HTML on the fly to include a `<link>` tag before `</head>`.
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ Authelia's HTML on the fly to include a `<link>` tag before `</head>`.
|
|||||||
|
|
||||||
```
|
```
|
||||||
Browser
|
Browser
|
||||||
└─► https://auth.lotusguild.org (NPM — LXC 139)
|
└─► https://auth.lotusguild.org (NPM - LXC 139)
|
||||||
├─ GET /custom.css ──────── served from /data/custom_assets/authelia-custom.css
|
├─ GET /custom.css ──────── served from /data/custom_assets/authelia-custom.css
|
||||||
│ (nginx alias, no upstream request)
|
│ (nginx alias, no upstream request)
|
||||||
└─ GET /* ──────────────── proxied to Authelia (LXC 167 :9091)
|
└─ GET /* ──────────────── proxied to Authelia (LXC 167 :9091)
|
||||||
@@ -64,7 +64,7 @@ location / {
|
|||||||
> and the `/custom.css` location manually, or set the config via NPM's
|
> and the `/custom.css` location manually, or set the config via NPM's
|
||||||
> "Advanced" tab before saving.
|
> "Advanced" tab before saving.
|
||||||
|
|
||||||
**Authelia config changed:** `/etc/authelia/configuration.yml` — added `asset_path`
|
**Authelia config changed:** `/etc/authelia/configuration.yml` - added `asset_path`
|
||||||
under `server:` so Authelia serves the resized logo and favicon:
|
under `server:` so Authelia serves the resized logo and favicon:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -74,8 +74,8 @@ server:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Assets in `/etc/authelia/assets/`:
|
Assets in `/etc/authelia/assets/`:
|
||||||
- `logo.png` — 256 × 256 PNG resized from Tinker Tickets `assets/images/favicon.png`
|
- `logo.png` - 256 × 256 PNG resized from Tinker Tickets `assets/images/favicon.png`
|
||||||
- `favicon.ico` — 32 × 32 ICO from the same source
|
- `favicon.ico` - 32 × 32 ICO from the same source
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ The sections below are ordered as they appear in `authelia-custom.css`.
|
|||||||
**In `base.css`:** `:root { ... }` is declared once, without `!important`.
|
**In `base.css`:** `:root { ... }` is declared once, without `!important`.
|
||||||
|
|
||||||
**What had to be added:** The entire `:root` block is repeated in `custom.css` because
|
**What had to be added:** The entire `:root` block is repeated in `custom.css` because
|
||||||
Authelia's HTML is a self-contained SPA — `base.css` is never loaded. More critically,
|
Authelia's HTML is a self-contained SPA - `base.css` is never loaded. More critically,
|
||||||
MUI injects its own inline styles and CSS-in-JS rules at very high specificity.
|
MUI injects its own inline styles and CSS-in-JS rules at very high specificity.
|
||||||
Every property that needs to override MUI requires `!important`. `base.css` never
|
Every property that needs to override MUI requires `!important`. `base.css` never
|
||||||
uses `!important` because it owns its namespace; here we are guests in MUI's DOM.
|
uses `!important` because it owns its namespace; here we are guests in MUI's DOM.
|
||||||
@@ -103,14 +103,14 @@ body { background-color: var(--bg-primary); }
|
|||||||
body { background-color: var(--bg-primary) !important; }
|
body { background-color: var(--bg-primary) !important; }
|
||||||
```
|
```
|
||||||
|
|
||||||
The token values themselves are identical to `base.css` — only the override
|
The token values themselves are identical to `base.css` - only the override
|
||||||
mechanism is new.
|
mechanism is new.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 2. Universal box-sizing reset with `!important`
|
### 2. Universal box-sizing reset with `!important`
|
||||||
|
|
||||||
**In `base.css`:** `*, *::before, *::after { box-sizing: border-box; }` — no flag needed
|
**In `base.css`:** `*, *::before, *::after { box-sizing: border-box; }` - no flag needed
|
||||||
because `base.css` loads first.
|
because `base.css` loads first.
|
||||||
|
|
||||||
**What had to be added:**
|
**What had to be added:**
|
||||||
@@ -128,7 +128,7 @@ clip-path geometry breaks on inputs and buttons.
|
|||||||
|
|
||||||
### 3. MUI typography selectors
|
### 3. MUI typography selectors
|
||||||
|
|
||||||
**In `base.css`:** Typography rules target `h1–h6`, `a`, `p`, `body` — standard HTML
|
**In `base.css`:** Typography rules target `h1-h6`, `a`, `p`, `body` - standard HTML
|
||||||
elements. No MUI class names exist in the design system.
|
elements. No MUI class names exist in the design system.
|
||||||
|
|
||||||
**What had to be added:** Authelia renders text almost exclusively through MUI's
|
**What had to be added:** Authelia renders text almost exclusively through MUI's
|
||||||
@@ -157,15 +157,15 @@ h1, h2, h3, h4, h5, h6,
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 4. `.MuiCard-root` / `.MuiPaper-root` — the login card
|
### 4. `.MuiCard-root` / `.MuiPaper-root` - the login card
|
||||||
|
|
||||||
**In `base.css`:** `.lt-card` implements the terminal card with `clip-path`, border,
|
**In `base.css`:** `.lt-card` implements the terminal card with `clip-path`, border,
|
||||||
background, and the `::before` corner triangle accent.
|
background, and the `::before` corner triangle accent.
|
||||||
|
|
||||||
**What had to be added:** Authelia wraps its login form in a MUI `<Card>` (which
|
**What had to be added:** Authelia wraps its login form in a MUI `<Card>` (which
|
||||||
extends `<Paper>`). Neither selector exists in `base.css`. The visual result is
|
extends `<Paper>`). Neither selector exists in `base.css`. The visual result is
|
||||||
identical to `.lt-card` — the clip-path polygon, cyan border, box-glow, and
|
identical to `.lt-card` - the clip-path polygon, cyan border, box-glow, and
|
||||||
corner triangle are all copied — but they target different class names and require
|
corner triangle are all copied - but they target different class names and require
|
||||||
`!important` throughout to override MUI's elevation shadows and `border-radius: 4px`.
|
`!important` throughout to override MUI's elevation shadows and `border-radius: 4px`.
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@@ -186,7 +186,7 @@ corner triangle are all copied — but they target different class names and req
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 5. Logo element — `img[alt="Authelia"]`
|
### 5. Logo element - `img[alt="Authelia"]`
|
||||||
|
|
||||||
**In `base.css`:** No equivalent. The design system has no logo slot component.
|
**In `base.css`:** No equivalent. The design system has no logo slot component.
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ img[alt="Authelia"]:hover {
|
|||||||
|
|
||||||
### 6. MUI outlined input family
|
### 6. MUI outlined input family
|
||||||
|
|
||||||
**In `base.css`:** `.lt-input`, `.lt-select`, `.lt-textarea` — custom elements with
|
**In `base.css`:** `.lt-input`, `.lt-select`, `.lt-textarea` - custom elements with
|
||||||
`clip-path`, terminal background, and cyan focus ring.
|
`clip-path`, terminal background, and cyan focus ring.
|
||||||
|
|
||||||
**What had to be added:** MUI's outlined text field is a composition of three
|
**What had to be added:** MUI's outlined text field is a composition of three
|
||||||
@@ -217,7 +217,7 @@ separate elements that each need individual targeting:
|
|||||||
|
|
||||||
| MUI class | What it controls | Equivalent in `base.css` |
|
| MUI class | What it controls | Equivalent in `base.css` |
|
||||||
|-----------|-----------------|--------------------------|
|
|-----------|-----------------|--------------------------|
|
||||||
| `.MuiOutlinedInput-root` | Outer wrapper — background, clip-path | `.lt-input` outer |
|
| `.MuiOutlinedInput-root` | Outer wrapper - background, clip-path | `.lt-input` outer |
|
||||||
| `.MuiOutlinedInput-notchedOutline` | The SVG border element | `.lt-input` border |
|
| `.MuiOutlinedInput-notchedOutline` | The SVG border element | `.lt-input` border |
|
||||||
| `.MuiInputBase-input` | The actual `<input>` inside | `.lt-input` inner text |
|
| `.MuiInputBase-input` | The actual `<input>` inside | `.lt-input` inner text |
|
||||||
| `.MuiInputLabel-root` | Floating label | `.lt-label` |
|
| `.MuiInputLabel-root` | Floating label | `.lt-label` |
|
||||||
@@ -243,19 +243,19 @@ MUI applies its own colour through CSS-in-JS with high specificity.
|
|||||||
```
|
```
|
||||||
|
|
||||||
Additionally, `caret-color` is set explicitly on the input because MUI does not
|
Additionally, `caret-color` is set explicitly on the input because MUI does not
|
||||||
expose this through its theme — the blinking text cursor would otherwise be white.
|
expose this through its theme - the blinking text cursor would otherwise be white.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 7. MUI button family
|
### 7. MUI button family
|
||||||
|
|
||||||
**In `base.css`:** `.lt-btn`, `.lt-btn-primary`, `.lt-btn-danger`, `.lt-btn-ghost` —
|
**In `base.css`:** `.lt-btn`, `.lt-btn-primary`, `.lt-btn-danger`, `.lt-btn-ghost` -
|
||||||
all using `clip-path` hexagon cuts, transparent backgrounds, and border+glow styling.
|
all using `clip-path` hexagon cuts, transparent backgrounds, and border+glow styling.
|
||||||
|
|
||||||
**What had to be added:** MUI uses four separate button variant classes. The primary
|
**What had to be added:** MUI uses four separate button variant classes. The primary
|
||||||
(sign-in) button is `.MuiButton-containedPrimary` which by default renders as a
|
(sign-in) button is `.MuiButton-containedPrimary` which by default renders as a
|
||||||
solid filled rectangle. The entire button appearance — transparent background,
|
solid filled rectangle. The entire button appearance - transparent background,
|
||||||
border, clip-path, text-transform, letter-spacing — has to be explicitly overridden
|
border, clip-path, text-transform, letter-spacing - has to be explicitly overridden
|
||||||
because MUI's `contained` variant applies an opaque `background-color` inline.
|
because MUI's `contained` variant applies an opaque `background-color` inline.
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@@ -276,7 +276,7 @@ map to the same `.lt-btn-ghost` pattern in `base.css`.
|
|||||||
|
|
||||||
### 8. MUI checkbox and switch
|
### 8. MUI checkbox and switch
|
||||||
|
|
||||||
**In `base.css`:** `.lt-checkbox`, `.lt-switch` — fully custom-drawn using CSS only.
|
**In `base.css`:** `.lt-checkbox`, `.lt-switch` - fully custom-drawn using CSS only.
|
||||||
|
|
||||||
**What had to be added:** Authelia uses MUI's `<Checkbox>` (remember-me) and
|
**What had to be added:** Authelia uses MUI's `<Checkbox>` (remember-me) and
|
||||||
`<Switch>` (settings toggles). These are SVG-based components. Because MUI controls
|
`<Switch>` (settings toggles). These are SVG-based components. Because MUI controls
|
||||||
@@ -322,7 +322,7 @@ states also need individual rules.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 11. OTP / 2FA digit inputs — `input[type="tel"]`, `input[type="number"]`
|
### 11. OTP / 2FA digit inputs - `input[type="tel"]`, `input[type="number"]`
|
||||||
|
|
||||||
**In `base.css`:** No equivalent. The design system has no numeric code input.
|
**In `base.css`:** No equivalent. The design system has no numeric code input.
|
||||||
|
|
||||||
@@ -345,9 +345,9 @@ input[type="number"] {
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 12. MUI stepper — 2FA flow breadcrumb
|
### 12. MUI stepper - 2FA flow breadcrumb
|
||||||
|
|
||||||
**In `base.css`:** `.lt-stepper`, `.lt-step`, `.lt-step-num` — a custom CSS stepper
|
**In `base.css`:** `.lt-stepper`, `.lt-step`, `.lt-step-num` - a custom CSS stepper
|
||||||
for multi-step wizard flows.
|
for multi-step wizard flows.
|
||||||
|
|
||||||
**What had to be added:** Authelia renders a MUI `<Stepper>` at the top of the 2FA
|
**What had to be added:** Authelia renders a MUI `<Stepper>` at the top of the 2FA
|
||||||
@@ -371,14 +371,14 @@ separate `<hr>` with class `.MuiStepConnector-line`.
|
|||||||
|
|
||||||
### 13. MUI linear and circular progress
|
### 13. MUI linear and circular progress
|
||||||
|
|
||||||
**In `base.css`:** `.lt-progress` / `.lt-progress-bar` — a standard CSS progress bar
|
**In `base.css`:** `.lt-progress` / `.lt-progress-bar` - a standard CSS progress bar
|
||||||
using `width` transitions. `.lt-spinner` — a rotating pseudo-element spinner.
|
using `width` transitions. `.lt-spinner` - a rotating pseudo-element spinner.
|
||||||
|
|
||||||
**What had to be added:** Authelia uses MUI `<LinearProgress>` during API calls and
|
**What had to be added:** Authelia uses MUI `<LinearProgress>` during API calls and
|
||||||
`<CircularProgress>` as the main loading spinner. MUI Linear Progress animates its
|
`<CircularProgress>` as the main loading spinner. MUI Linear Progress animates its
|
||||||
own internal elements (`.MuiLinearProgress-bar`) with keyframe animations; it cannot
|
own internal elements (`.MuiLinearProgress-bar`) with keyframe animations; it cannot
|
||||||
be replaced with the `.lt-progress` pattern. The cyan-to-orange gradient and
|
be replaced with the `.lt-progress` pattern. The cyan-to-orange gradient and
|
||||||
`box-shadow` glow are new here — `base.css`'s progress bar uses a solid
|
`box-shadow` glow are new here - `base.css`'s progress bar uses a solid
|
||||||
`--accent-orange` fill.
|
`--accent-orange` fill.
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@@ -392,7 +392,7 @@ be replaced with the `.lt-progress` pattern. The cyan-to-orange gradient and
|
|||||||
|
|
||||||
### 14. MUI tooltip
|
### 14. MUI tooltip
|
||||||
|
|
||||||
**In `base.css`:** `.lt-tooltip` — a CSS-only tooltip shown via `:hover` on a
|
**In `base.css`:** `.lt-tooltip` - a CSS-only tooltip shown via `:hover` on a
|
||||||
`[data-tooltip]` attribute.
|
`[data-tooltip]` attribute.
|
||||||
|
|
||||||
**What had to be added:** MUI `<Tooltip>` portals its bubble to `<body>` with class
|
**What had to be added:** MUI `<Tooltip>` portals its bubble to `<body>` with class
|
||||||
@@ -421,7 +421,7 @@ adding per-component rules for every possible focusable element would be brittle
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 16. Branding footer watermark — `#root::after`
|
### 16. Branding footer watermark - `#root::after`
|
||||||
|
|
||||||
**In `base.css`:** No equivalent. The design system does not add page-level
|
**In `base.css`:** No equivalent. The design system does not add page-level
|
||||||
watermarks.
|
watermarks.
|
||||||
@@ -477,7 +477,7 @@ existing `base.css` patterns, only re-targeted to new selectors:
|
|||||||
|
|
||||||
2. **The split border problem.** MUI (and many component libraries) separate the
|
2. **The split border problem.** MUI (and many component libraries) separate the
|
||||||
border from the element it visually belongs to. Always inspect the actual DOM
|
border from the element it visually belongs to. Always inspect the actual DOM
|
||||||
before writing selectors — what looks like one element is often three.
|
before writing selectors - what looks like one element is often three.
|
||||||
|
|
||||||
3. **Portalled overlays.** Dropdowns, tooltips, and modals in MUI are rendered into
|
3. **Portalled overlays.** Dropdowns, tooltips, and modals in MUI are rendered into
|
||||||
a separate DOM tree (`<body>` portal). Scoped selectors inside a card or form
|
a separate DOM tree (`<body>` portal). Scoped selectors inside a card or form
|
||||||
@@ -486,7 +486,7 @@ existing `base.css` patterns, only re-targeted to new selectors:
|
|||||||
|
|
||||||
4. **State classes.** MUI uses `.Mui-focused`, `.Mui-checked`, `.Mui-error`,
|
4. **State classes.** MUI uses `.Mui-focused`, `.Mui-checked`, `.Mui-error`,
|
||||||
`.Mui-active`, `.Mui-completed`, `.Mui-disabled` as state modifiers. These are the
|
`.Mui-active`, `.Mui-completed`, `.Mui-disabled` as state modifiers. These are the
|
||||||
equivalent of `:focus`, `:checked`, etc. but applied by JavaScript — pseudo-class
|
equivalent of `:focus`, `:checked`, etc. but applied by JavaScript - pseudo-class
|
||||||
selectors alone will sometimes not fire.
|
selectors alone will sometimes not fire.
|
||||||
|
|
||||||
5. **SVG-based components.** Checkboxes, radio buttons, step icons, and spinners are
|
5. **SVG-based components.** Checkboxes, radio buttons, step icons, and spinners are
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
# LotusGuild Terminal Design System — v1.2
|
# LotusGuild Terminal Design System - v1.2
|
||||||
|
|
||||||
[](https://code.lotusguild.org/LotusGuild/web_template/actions?workflow=lint.yml)
|
[](https://code.lotusguild.org/LotusGuild/web_template/actions?workflow=lint.yml)
|
||||||
|
|
||||||
**Aesthetic:** Anduril × Hacker Terminal — dark military-tech, multi-accent neon, angular clip-path frames, glitch effects.
|
**Aesthetic:** Anduril × Hacker Terminal - dark military-tech, multi-accent neon, angular clip-path frames, glitch effects.
|
||||||
|
|
||||||
A single-file design system (`base.css` + `base.js`) used across all LotusGuild internal services. `base.html` is a living reference template that demonstrates every component and pattern.
|
A single-file design system (`base.css` + `base.js`) used across all LotusGuild internal services. `base.html` is a living reference template that demonstrates every component and pattern.
|
||||||
|
|
||||||
@@ -62,8 +62,8 @@ A single-file design system (`base.css` + `base.js`) used across all LotusGuild
|
|||||||
|
|
||||||
| File | Purpose |
|
| File | Purpose |
|
||||||
|------|---------|
|
|------|---------|
|
||||||
| `base.css` | All styles — ~5,200 lines, 79 sections |
|
| `base.css` | All styles - ~5,200 lines, 79 sections |
|
||||||
| `base.js` | All JS — vanilla IIFE, `window.lt` namespace, 55+ modules |
|
| `base.js` | All JS - vanilla IIFE, `window.lt` namespace, 55+ modules |
|
||||||
| `base.html` | Full component reference / demo page |
|
| `base.html` | Full component reference / demo page |
|
||||||
|
|
||||||
No build step. No npm. No framework. Drop in the two files and go.
|
No build step. No npm. No framework. Drop in the two files and go.
|
||||||
@@ -95,9 +95,9 @@ No build step. No npm. No framework. Drop in the two files and go.
|
|||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
|
||||||
### `lt.init()` — master initializer
|
### `lt.init()` - master initializer
|
||||||
|
|
||||||
`lt.init(opts?)` runs all standard auto-init modules in one call. Safe to call multiple times — a guard prevents double-initialization.
|
`lt.init(opts?)` runs all standard auto-init modules in one call. Safe to call multiple times - a guard prevents double-initialization.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
lt.init({
|
lt.init({
|
||||||
@@ -194,13 +194,13 @@ Mobile-first. 8 tiers:
|
|||||||
|
|
||||||
| Name | Range | CSS min-width |
|
| Name | Range | CSS min-width |
|
||||||
|------|-------|---------------|
|
|------|-------|---------------|
|
||||||
| `xs` | ≤ 479px | — (base) |
|
| `xs` | ≤ 479px | - (base) |
|
||||||
| `sm` | 480–767px | `480px` |
|
| `sm` | 480-767px | `480px` |
|
||||||
| `md` | 768–1023px | `768px` |
|
| `md` | 768-1023px | `768px` |
|
||||||
| `lg` | 1024–1279px | `1024px` |
|
| `lg` | 1024-1279px | `1024px` |
|
||||||
| `xl` | 1280–1535px | `1280px` |
|
| `xl` | 1280-1535px | `1280px` |
|
||||||
| `2xl` | 1536–1919px | `1536px` |
|
| `2xl` | 1536-1919px | `1536px` |
|
||||||
| `3xl` | 1920–2559px | `1920px` |
|
| `3xl` | 1920-2559px | `1920px` |
|
||||||
| `4k` | ≥ 2560px | `2560px` |
|
| `4k` | ≥ 2560px | `2560px` |
|
||||||
|
|
||||||
Check breakpoints in JavaScript:
|
Check breakpoints in JavaScript:
|
||||||
@@ -217,7 +217,7 @@ lt.viewport.landscape()
|
|||||||
|
|
||||||
## Typography
|
## Typography
|
||||||
|
|
||||||
**Font:** JetBrains Mono (Google Fonts) — weights 400, 600, 700; italic 400.
|
**Font:** JetBrains Mono (Google Fonts) - weights 400, 600, 700; italic 400.
|
||||||
|
|
||||||
Load via:
|
Load via:
|
||||||
```html
|
```html
|
||||||
@@ -482,7 +482,7 @@ Toast queue is capped at 12 pending notifications. All types support an optional
|
|||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
JS: `lt.tabs.init()` — auto-wires all `.lt-tabs` on page. `lt.tabs.switch('tab-two')` — programmatic switch.
|
JS: `lt.tabs.init()` - auto-wires all `.lt-tabs` on page. `lt.tabs.switch('tab-two')` - programmatic switch.
|
||||||
|
|
||||||
### Accordion
|
### Accordion
|
||||||
|
|
||||||
@@ -807,7 +807,7 @@ All modules live under `window.lt`. Full list:
|
|||||||
|
|
||||||
| Module | Key Methods |
|
| Module | Key Methods |
|
||||||
|--------|-------------|
|
|--------|-------------|
|
||||||
| `lt.init` | `(opts?)` — master initializer |
|
| `lt.init` | `(opts?)` - master initializer |
|
||||||
| `lt.toast` | `success / error / warning / info (msg, ms?)` |
|
| `lt.toast` | `success / error / warning / info (msg, ms?)` |
|
||||||
| `lt.modal` | `open / close / closeAll` |
|
| `lt.modal` | `open / close / closeAll` |
|
||||||
| `lt.tabs` | `init / switch(panelId)` |
|
| `lt.tabs` | `init / switch(panelId)` |
|
||||||
@@ -858,10 +858,10 @@ All modules live under `window.lt`. Full list:
|
|||||||
### API Helper
|
### API Helper
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// GET — no Content-Type header (correct per HTTP spec)
|
// GET - no Content-Type header (correct per HTTP spec)
|
||||||
const data = await lt.api.get('/api/tickets');
|
const data = await lt.api.get('/api/tickets');
|
||||||
|
|
||||||
// POST / PUT / PATCH / DELETE — JSON body + Content-Type
|
// POST / PUT / PATCH / DELETE - JSON body + Content-Type
|
||||||
const result = await lt.api.post('/api/tickets', { title: 'Bug', priority: 'high' });
|
const result = await lt.api.post('/api/tickets', { title: 'Bug', priority: 'high' });
|
||||||
await lt.api.delete('/api/tickets/42');
|
await lt.api.delete('/api/tickets/42');
|
||||||
```
|
```
|
||||||
@@ -958,7 +958,7 @@ Then in your HTML:
|
|||||||
|
|
||||||
### 3. Define your nav
|
### 3. Define your nav
|
||||||
|
|
||||||
**PHP** — pass `$navLinks` before including the layout:
|
**PHP** - pass `$navLinks` before including the layout:
|
||||||
```php
|
```php
|
||||||
$navLinks = [
|
$navLinks = [
|
||||||
['href' => '/', 'key' => 'dashboard', 'label' => 'Dashboard'],
|
['href' => '/', 'key' => 'dashboard', 'label' => 'Dashboard'],
|
||||||
@@ -971,7 +971,7 @@ $activeNav = 'dashboard';
|
|||||||
include __DIR__ . '/views/layout.php';
|
include __DIR__ . '/views/layout.php';
|
||||||
```
|
```
|
||||||
|
|
||||||
**Python/Flask** — inject via context processor or pass directly to `render_template`:
|
**Python/Flask** - inject via context processor or pass directly to `render_template`:
|
||||||
```python
|
```python
|
||||||
nav_links = [
|
nav_links = [
|
||||||
{'href': url_for('index'), 'key': 'dashboard', 'label': 'Dashboard'},
|
{'href': url_for('index'), 'key': 'dashboard', 'label': 'Dashboard'},
|
||||||
@@ -980,7 +980,7 @@ nav_links = [
|
|||||||
return render_template('page.html', nav_links=nav_links)
|
return render_template('page.html', nav_links=nav_links)
|
||||||
```
|
```
|
||||||
|
|
||||||
**Node/Express** — set on `res.locals` via `injectLocals` middleware:
|
**Node/Express** - set on `res.locals` via `injectLocals` middleware:
|
||||||
```js
|
```js
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
res.locals.navLinks = [
|
res.locals.navLinks = [
|
||||||
@@ -993,9 +993,9 @@ app.use((req, res, next) => {
|
|||||||
|
|
||||||
### 4. Add app-specific CSS
|
### 4. Add app-specific CSS
|
||||||
|
|
||||||
Create `app.css` in your app. Import nothing from `base.css` — just override tokens or add components:
|
Create `app.css` in your app. Import nothing from `base.css` - just override tokens or add components:
|
||||||
```css
|
```css
|
||||||
/* app.css — app-specific extensions only */
|
/* app.css - app-specific extensions only */
|
||||||
:root {
|
:root {
|
||||||
--app-accent: #FF6B00; /* override if needed */
|
--app-accent: #FF6B00; /* override if needed */
|
||||||
}
|
}
|
||||||
@@ -1019,7 +1019,7 @@ In your base template, after `base.js`:
|
|||||||
web_template/
|
web_template/
|
||||||
├── base.css Design system styles (79 sections, ~5,200 lines)
|
├── base.css Design system styles (79 sections, ~5,200 lines)
|
||||||
├── base.js Design system JS (55+ modules, ~2,800 lines)
|
├── base.js Design system JS (55+ modules, ~2,800 lines)
|
||||||
├── base.html Living component reference — open in browser to browse everything
|
├── base.html Living component reference - open in browser to browse everything
|
||||||
├── README.md This file
|
├── README.md This file
|
||||||
├── AUTHELIA_INTEGRATION.md Theming Authelia portal with this design system
|
├── AUTHELIA_INTEGRATION.md Theming Authelia portal with this design system
|
||||||
└── framework skeletons/
|
└── framework skeletons/
|
||||||
@@ -1037,7 +1037,7 @@ web_template/
|
|||||||
|
|
||||||
## LDAP Avatar Integration
|
## LDAP Avatar Integration
|
||||||
|
|
||||||
`lt-avatar` components support real profile photos pulled from **lldap** (the LotusGuild LDAP server). Photos overlay the initials fallback — if a user has no photo the initials show instead; no broken images.
|
`lt-avatar` components support real profile photos pulled from **lldap** (the LotusGuild LDAP server). Photos overlay the initials fallback - if a user has no photo the initials show instead; no broken images.
|
||||||
|
|
||||||
### Infrastructure (one-time, per app)
|
### Infrastructure (one-time, per app)
|
||||||
|
|
||||||
@@ -1091,7 +1091,7 @@ LDAP_USER_BASE="ou=people,dc=example,dc=com"
|
|||||||
AVATAR_CACHE_TTL=3600
|
AVATAR_CACHE_TTL=3600
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note:** lldap is currently configured with `dc=example,dc=com` as the base DN across all services (Authelia, etc.). Do not change this per-app — it requires a coordinated infrastructure migration.
|
> **Note:** lldap is currently configured with `dc=example,dc=com` as the base DN across all services (Authelia, etc.). Do not change this per-app - it requires a coordinated infrastructure migration.
|
||||||
|
|
||||||
### Avatar Endpoint (`/api/user_avatar.php`)
|
### Avatar Endpoint (`/api/user_avatar.php`)
|
||||||
|
|
||||||
@@ -1105,9 +1105,9 @@ Copy the reference implementation from `tinker_tickets/api/user_avatar.php`. It:
|
|||||||
6. Writes a `.none` sentinel file for users with no avatar so lldap is not queried again until TTL expires
|
6. Writes a `.none` sentinel file for users with no avatar so lldap is not queried again until TTL expires
|
||||||
7. Serves the cached file with `Content-Type: image/jpeg`
|
7. Serves the cached file with `Content-Type: image/jpeg`
|
||||||
|
|
||||||
### CSS — Photo-over-Initials Pattern
|
### CSS - Photo-over-Initials Pattern
|
||||||
|
|
||||||
`base.css` (Section 62 — Avatar) provides `.lt-avatar-img` and `.lt-avatar-initials`:
|
`base.css` (Section 62 - Avatar) provides `.lt-avatar-img` and `.lt-avatar-initials`:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
.lt-avatar { position: relative; }
|
.lt-avatar { position: relative; }
|
||||||
@@ -1138,7 +1138,7 @@ $color = $colors[abs(crc32($displayName)) % count($colors)];
|
|||||||
```
|
```
|
||||||
|
|
||||||
Key points:
|
Key points:
|
||||||
- Always render the initials — they are the fallback, never a broken state
|
- Always render the initials - they are the fallback, never a broken state
|
||||||
- The `onerror` on the `<img>` hides it when the endpoint returns 404 (no photo set)
|
- The `onerror` on the `<img>` hides it when the endpoint returns 404 (no photo set)
|
||||||
- Color is deterministically derived from the display name so it's consistent across page loads
|
- Color is deterministically derived from the display name so it's consistent across page loads
|
||||||
- `aria-hidden="true"` because the avatar is purely decorative; the user's name appears in adjacent text
|
- `aria-hidden="true"` because the avatar is purely decorative; the user's name appears in adjacent text
|
||||||
@@ -1155,7 +1155,7 @@ Key points:
|
|||||||
.lt-input:disabled, .lt-select:disabled, .lt-textarea:disabled,
|
.lt-input:disabled, .lt-select:disabled, .lt-textarea:disabled,
|
||||||
.lt-input[readonly], .lt-textarea[readonly] {
|
.lt-input[readonly], .lt-textarea[readonly] {
|
||||||
opacity: 0.45;
|
opacity: 0.45;
|
||||||
color: var(--text-muted); /* #3e607a — ~3.2:1 contrast, fails WCAG AA on dark backgrounds */
|
color: var(--text-muted); /* #3e607a - ~3.2:1 contrast, fails WCAG AA on dark backgrounds */
|
||||||
}
|
}
|
||||||
.lt-checkbox:disabled { opacity: 0.4; }
|
.lt-checkbox:disabled { opacity: 0.4; }
|
||||||
```
|
```
|
||||||
@@ -1167,11 +1167,11 @@ This is intentional for *genuinely* disabled controls (submission forms, locked
|
|||||||
A common pattern is disabling fields in view-mode and enabling them in edit-mode. Apply a scoping class and override in your app CSS:
|
A common pattern is disabling fields in view-mode and enabling them in edit-mode. Apply a scoping class and override in your app CSS:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
/* In your app's CSS — override base.css fading for display-only fields */
|
/* In your app's CSS - override base.css fading for display-only fields */
|
||||||
.your-display-field:disabled,
|
.your-display-field:disabled,
|
||||||
.your-display-field[disabled] {
|
.your-display-field[disabled] {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
color: var(--text-secondary); /* #7fa3bf — full legibility */
|
color: var(--text-secondary); /* #7fa3bf - full legibility */
|
||||||
cursor: default;
|
cursor: default;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
@@ -1187,7 +1187,7 @@ A common pattern is disabling fields in view-mode and enabling them in edit-mode
|
|||||||
|
|
||||||
**Pattern: description / content display areas**
|
**Pattern: description / content display areas**
|
||||||
|
|
||||||
Avoid rendering multi-line content in a `disabled` textarea — use a styled `<div>` instead. Apply `white-space: pre-wrap` on that div to preserve newlines and multiple spaces (required for ASCII art / diagrams to align correctly, since the body font is already monospace):
|
Avoid rendering multi-line content in a `disabled` textarea - use a styled `<div>` instead. Apply `white-space: pre-wrap` on that div to preserve newlines and multiple spaces (required for ASCII art / diagrams to align correctly, since the body font is already monospace):
|
||||||
|
|
||||||
```css
|
```css
|
||||||
.your-description-view {
|
.your-description-view {
|
||||||
@@ -1197,7 +1197,7 @@ Avoid rendering multi-line content in a `disabled` textarea — use a styled `<d
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Set `innerHTML = escHtml(rawText)` — no `<br>` replacement needed when `white-space: pre-wrap` is active.
|
Set `innerHTML = escHtml(rawText)` - no `<br>` replacement needed when `white-space: pre-wrap` is active.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -1208,7 +1208,7 @@ Set `innerHTML = escHtml(rawText)` — no `<br>` replacement needed when `white-
|
|||||||
**Design System**
|
**Design System**
|
||||||
- Font: Courier New → **JetBrains Mono** (400, 600, 700; italic)
|
- Font: Courier New → **JetBrains Mono** (400, 600, 700; italic)
|
||||||
- Palette: phosphor-green single-accent → **5-accent neon system** (Orange #FF6B00, Cyan #00D4FF, Green #00FF88, Red #FF2D55, Purple #BF5FFF)
|
- Palette: phosphor-green single-accent → **5-accent neon system** (Orange #FF6B00, Cyan #00D4FF, Green #00FF88, Red #FF2D55, Purple #BF5FFF)
|
||||||
- Background: green-tinted CRT → **Anduril dark military-tech** (`#030508`–`#0d1520`)
|
- Background: green-tinted CRT → **Anduril dark military-tech** (`#030508`-`#0d1520`)
|
||||||
- **Light mode rebuilt from scratch** (~200 lines, Section 51): desaturated accent colors, drop-shadow rings instead of neon glows, WCAG-accessible contrast on all 80+ component classes
|
- **Light mode rebuilt from scratch** (~200 lines, Section 51): desaturated accent colors, drop-shadow rings instead of neon glows, WCAG-accessible contrast on all 80+ component classes
|
||||||
- Added `--corner-cut`, `--corner-cut-sm`, `--corner-cut-lg` CSS variables
|
- Added `--corner-cut`, `--corner-cut-sm`, `--corner-cut-lg` CSS variables
|
||||||
- Added `--z-panel` (10020) to z-index ladder; replaced all hardcoded z-index values
|
- Added `--z-panel` (10020) to z-index ladder; replaced all hardcoded z-index values
|
||||||
@@ -1232,7 +1232,7 @@ Set `innerHTML = escHtml(rawText)` — no `<br>` replacement needed when `white-
|
|||||||
- Toast background: hardcoded rgba → `var(--bg-overlay)`
|
- Toast background: hardcoded rgba → `var(--bg-overlay)`
|
||||||
|
|
||||||
**JavaScript Fixes**
|
**JavaScript Fixes**
|
||||||
- **Critical:** `lt.clipboard.initCopyButtons()` call fixed (was `lt.clipboard.init()` — non-existent, crashed entire DOMContentLoaded handler)
|
- **Critical:** `lt.clipboard.initCopyButtons()` call fixed (was `lt.clipboard.init()` - non-existent, crashed entire DOMContentLoaded handler)
|
||||||
- **Critical:** Removed duplicate `function showToast` declaration (JS hoisting caused infinite recursion → silent toasts for all types); progress bar inlined into `_displayToast`
|
- **Critical:** Removed duplicate `function showToast` declaration (JS hoisting caused infinite recursion → silent toasts for all types); progress bar inlined into `_displayToast`
|
||||||
- **`lt.init()`**: New master initializer with `_ltInitialized` double-init guard
|
- **`lt.init()`**: New master initializer with `_ltInitialized` double-init guard
|
||||||
- **`lt.pagination`** (Module 55): Paginator with ellipsis, prev/next, `onChange` callback
|
- **`lt.pagination`** (Module 55): Paginator with ellipsis, prev/next, `onChange` callback
|
||||||
@@ -1244,4 +1244,4 @@ Set `innerHTML = escHtml(rawText)` — no `<br>` replacement needed when `white-
|
|||||||
|
|
||||||
### v1.0
|
### v1.0
|
||||||
|
|
||||||
Initial release — Courier New, phosphor-green `#00ff41`, 4-breakpoint responsive, single-accent palette.
|
Initial release - Courier New, phosphor-green `#00ff41`, 4-breakpoint responsive, single-accent palette.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/* ================================================================
|
/* ================================================================
|
||||||
LOTUSGUILD TERMINAL DESIGN SYSTEM v1.2 — base.css
|
LOTUSGUILD TERMINAL DESIGN SYSTEM v1.2 - base.css
|
||||||
Aesthetic: Anduril x Hacker Terminal — dark military-tech,
|
Aesthetic: Anduril x Hacker Terminal - dark military-tech,
|
||||||
multi-accent neon, angular frames, glitch effects.
|
multi-accent neon, angular frames, glitch effects.
|
||||||
|
|
||||||
Apps: Tinker Tickets (PHP), PULSE (Node.js), GANDALF (Flask)
|
Apps: Tinker Tickets (PHP), PULSE (Node.js), GANDALF (Flask)
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
--accent-purple: #BF5FFF;
|
--accent-purple: #BF5FFF;
|
||||||
--accent-purple-dim: rgba(191,95,255,0.10);
|
--accent-purple-dim: rgba(191,95,255,0.10);
|
||||||
|
|
||||||
/* Legacy aliases — keeps all existing component HTML working */
|
/* Legacy aliases - keeps all existing component HTML working */
|
||||||
--terminal-green: var(--accent-green);
|
--terminal-green: var(--accent-green);
|
||||||
--terminal-green-dim: var(--accent-green-dim);
|
--terminal-green-dim: var(--accent-green-dim);
|
||||||
--terminal-green-dark: #00cc66;
|
--terminal-green-dark: #00cc66;
|
||||||
@@ -177,7 +177,7 @@
|
|||||||
--z-popover: 10012;
|
--z-popover: 10012;
|
||||||
--z-tooltip: 10013;
|
--z-tooltip: 10013;
|
||||||
--z-toast: 10014;
|
--z-toast: 10014;
|
||||||
--z-panel: 10020; /* notification / generic dropdown panels — above everything */
|
--z-panel: 10020; /* notification / generic dropdown panels - above everything */
|
||||||
--z-overlay: 9999; /* scanlines / CRT effects */
|
--z-overlay: 9999; /* scanlines / CRT effects */
|
||||||
|
|
||||||
/* --- Corner cuts (clip-path polygon notches) --- */
|
/* --- Corner cuts (clip-path polygon notches) --- */
|
||||||
@@ -245,7 +245,7 @@ button { cursor: pointer; font-family: var(--font-mono); }
|
|||||||
03. CRT / GRID / SCANLINE EFFECTS
|
03. CRT / GRID / SCANLINE EFFECTS
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Horizontal scanlines — fixed, non-interactive overlay */
|
/* Horizontal scanlines - fixed, non-interactive overlay */
|
||||||
body::before {
|
body::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -734,7 +734,7 @@ hr {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Corner accent — top-right triangle */
|
/* Corner accent - top-right triangle */
|
||||||
.lt-card::before {
|
.lt-card::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -813,7 +813,7 @@ hr {
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Primary — orange */
|
/* Primary - orange */
|
||||||
.lt-btn-primary {
|
.lt-btn-primary {
|
||||||
color: var(--accent-orange);
|
color: var(--accent-orange);
|
||||||
border-color: var(--accent-orange-border);
|
border-color: var(--accent-orange-border);
|
||||||
@@ -826,7 +826,7 @@ hr {
|
|||||||
text-shadow: var(--glow-orange);
|
text-shadow: var(--glow-orange);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Danger — red */
|
/* Danger - red */
|
||||||
.lt-btn-danger {
|
.lt-btn-danger {
|
||||||
color: var(--accent-red);
|
color: var(--accent-red);
|
||||||
border-color: rgba(255,45,85,0.32);
|
border-color: rgba(255,45,85,0.32);
|
||||||
@@ -838,7 +838,7 @@ hr {
|
|||||||
text-shadow: var(--glow-red);
|
text-shadow: var(--glow-red);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ghost — minimal */
|
/* Ghost - minimal */
|
||||||
.lt-btn-ghost {
|
.lt-btn-ghost {
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
border-color: var(--border-color-dim);
|
border-color: var(--border-color-dim);
|
||||||
@@ -925,7 +925,7 @@ hr {
|
|||||||
border-color: var(--border-dim);
|
border-color: var(--border-dim);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display-only fields — readable, non-editable, not "broken" */
|
/* Display-only fields - readable, non-editable, not "broken" */
|
||||||
.lt-display-field,
|
.lt-display-field,
|
||||||
.lt-input.lt-display-field,
|
.lt-input.lt-display-field,
|
||||||
.lt-select.lt-display-field,
|
.lt-select.lt-display-field,
|
||||||
@@ -951,7 +951,7 @@ hr {
|
|||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Style the native option list — works on Chrome/Firefox/Edge on Windows & Linux.
|
/* Style the native option list - works on Chrome/Firefox/Edge on Windows & Linux.
|
||||||
macOS always uses OS-native rendering and ignores these. */
|
macOS always uses OS-native rendering and ignores these. */
|
||||||
.lt-select option,
|
.lt-select option,
|
||||||
select option {
|
select option {
|
||||||
@@ -1819,12 +1819,12 @@ select option:checked {
|
|||||||
|
|
||||||
Breakpoint system (desktop-first with mobile-first enhancements):
|
Breakpoint system (desktop-first with mobile-first enhancements):
|
||||||
xs: ≤ 479px tiny phones (iPhone SE 1st gen, Galaxy A)
|
xs: ≤ 479px tiny phones (iPhone SE 1st gen, Galaxy A)
|
||||||
sm: 480–767px phones (iPhone 14, Pixel 7, Galaxy S)
|
sm: 480-767px phones (iPhone 14, Pixel 7, Galaxy S)
|
||||||
md: 768–1023px tablets (iPad mini/Air portrait)
|
md: 768-1023px tablets (iPad mini/Air portrait)
|
||||||
lg: 1024–1279px laptops (iPad Pro landscape, MacBook Air 11")
|
lg: 1024-1279px laptops (iPad Pro landscape, MacBook Air 11")
|
||||||
xl: 1280–1535px desktops (MacBook Pro 13", 1080p portrait)
|
xl: 1280-1535px desktops (MacBook Pro 13", 1080p portrait)
|
||||||
2xl: 1536–1919px large (27" iMac, 1440p)
|
2xl: 1536-1919px large (27" iMac, 1440p)
|
||||||
3xl: 1920–2559px full HD (1080p monitor, 24")
|
3xl: 1920-2559px full HD (1080p monitor, 24")
|
||||||
4k: ≥ 2560px 4K/ultrawide (4K, 1440p ultrawide)
|
4k: ≥ 2560px 4K/ultrawide (4K, 1440p ultrawide)
|
||||||
================================================================ */
|
================================================================ */
|
||||||
|
|
||||||
@@ -1956,7 +1956,7 @@ select option:checked {
|
|||||||
padding-left: max(var(--space-xl), env(safe-area-inset-left));
|
padding-left: max(var(--space-xl), env(safe-area-inset-left));
|
||||||
padding-right: max(var(--space-xl), env(safe-area-inset-right));
|
padding-right: max(var(--space-xl), env(safe-area-inset-right));
|
||||||
}
|
}
|
||||||
/* Main content: header-height already includes safe-area-top via header height —
|
/* Main content: header-height already includes safe-area-top via header height -
|
||||||
only add safe-area-top once to avoid double-counting */
|
only add safe-area-top once to avoid double-counting */
|
||||||
.lt-main {
|
.lt-main {
|
||||||
padding-top: calc(var(--header-height) + env(safe-area-inset-top) + var(--space-lg));
|
padding-top: calc(var(--header-height) + env(safe-area-inset-top) + var(--space-lg));
|
||||||
@@ -2003,14 +2003,14 @@ select option:checked {
|
|||||||
/* Suppress hover-only decorations on touch */
|
/* Suppress hover-only decorations on touch */
|
||||||
[data-tooltip]::before,
|
[data-tooltip]::before,
|
||||||
[data-tooltip]::after { display: none; }
|
[data-tooltip]::after { display: none; }
|
||||||
/* Glitch causes expensive repaints on mobile — disable */
|
/* Glitch causes expensive repaints on mobile - disable */
|
||||||
.lt-glitch::before,
|
.lt-glitch::before,
|
||||||
.lt-glitch::after { display: none; }
|
.lt-glitch::after { display: none; }
|
||||||
/* Suppress padding-left shift on touch (causes layout jank on tap) */
|
/* Suppress padding-left shift on touch (causes layout jank on tap) */
|
||||||
.lt-nav-drawer-link:hover { padding-left: var(--space-lg); }
|
.lt-nav-drawer-link:hover { padding-left: var(--space-lg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Coarse pointer — additional touch performance tweaks ── */
|
/* ── Coarse pointer - additional touch performance tweaks ── */
|
||||||
@media (pointer: coarse) {
|
@media (pointer: coarse) {
|
||||||
/* Disable infinite animations that drain battery on mobile */
|
/* Disable infinite animations that drain battery on mobile */
|
||||||
.lt-dot-up, .lt-dot-warn { animation: none; }
|
.lt-dot-up, .lt-dot-warn { animation: none; }
|
||||||
@@ -2044,14 +2044,14 @@ select option:checked {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ── LG — laptops 1024–1279px ── */
|
/* ── LG - laptops 1024-1279px ── */
|
||||||
@media (max-width: 1279px) {
|
@media (max-width: 1279px) {
|
||||||
.lt-grid-4 { grid-template-columns: repeat(2, 1fr); }
|
.lt-grid-4 { grid-template-columns: repeat(2, 1fr); }
|
||||||
.lt-container { padding: var(--space-lg); }
|
.lt-container { padding: var(--space-lg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ── MD — tablets portrait 768–1023px ── */
|
/* ── MD - tablets portrait 768-1023px ── */
|
||||||
@media (max-width: 1023px) {
|
@media (max-width: 1023px) {
|
||||||
.lt-menu-btn { display: flex; }
|
.lt-menu-btn { display: flex; }
|
||||||
.lt-nav { display: none; }
|
.lt-nav { display: none; }
|
||||||
@@ -2079,7 +2079,7 @@ select option:checked {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ── SM — phones 480–767px ── */
|
/* ── SM - phones 480-767px ── */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
:root { --header-height: 50px; }
|
:root { --header-height: 50px; }
|
||||||
.lt-main, .lt-main.lt-container { padding-top: calc(50px + var(--space-md)); }
|
.lt-main, .lt-main.lt-container { padding-top: calc(50px + var(--space-md)); }
|
||||||
@@ -2146,7 +2146,7 @@ select option:checked {
|
|||||||
.lt-kv-key { border-right: none; border-bottom: 1px solid var(--border-dim); padding: var(--space-xs) 0 2px; }
|
.lt-kv-key { border-right: none; border-bottom: 1px solid var(--border-dim); padding: var(--space-xs) 0 2px; }
|
||||||
.lt-kv-val { padding: 2px 0 var(--space-sm); }
|
.lt-kv-val { padding: 2px 0 var(--space-sm); }
|
||||||
|
|
||||||
/* Pagination compact — show fewer buttons via CSS */
|
/* Pagination compact - show fewer buttons via CSS */
|
||||||
.lt-page-btn:not(.active):not(:first-child):not(:last-child):not([disabled]) {
|
.lt-page-btn:not(.active):not(:first-child):not(:last-child):not([disabled]) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -2179,7 +2179,7 @@ select option:checked {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ── XS — tiny phones ≤ 479px ── */
|
/* ── XS - tiny phones ≤ 479px ── */
|
||||||
@media (max-width: 479px) {
|
@media (max-width: 479px) {
|
||||||
:root { --header-height: 46px; }
|
:root { --header-height: 46px; }
|
||||||
.lt-main, .lt-main.lt-container { padding-top: calc(46px + var(--space-sm)); }
|
.lt-main, .lt-main.lt-container { padding-top: calc(46px + var(--space-sm)); }
|
||||||
@@ -2267,7 +2267,7 @@ select option:checked {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ── 2XL — large desktops 1536–1919px ── */
|
/* ── 2XL - large desktops 1536-1919px ── */
|
||||||
@media (min-width: 1536px) {
|
@media (min-width: 1536px) {
|
||||||
:root { --container-max: 1800px; }
|
:root { --container-max: 1800px; }
|
||||||
.lt-header { padding: 0 var(--space-2xl); }
|
.lt-header { padding: 0 var(--space-2xl); }
|
||||||
@@ -2275,7 +2275,7 @@ select option:checked {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ── 3XL — full HD 1920–2559px ── */
|
/* ── 3XL - full HD 1920-2559px ── */
|
||||||
@media (min-width: 1920px) {
|
@media (min-width: 1920px) {
|
||||||
:root { --container-max: 2000px; }
|
:root { --container-max: 2000px; }
|
||||||
.lt-stats-grid { grid-template-columns: repeat(6, 1fr); }
|
.lt-stats-grid { grid-template-columns: repeat(6, 1fr); }
|
||||||
@@ -2289,8 +2289,8 @@ select option:checked {
|
|||||||
html { font-size: 18px; } /* scales all rem-based values ~12% larger */
|
html { font-size: 18px; } /* scales all rem-based values ~12% larger */
|
||||||
:root {
|
:root {
|
||||||
--container-max: 2400px;
|
--container-max: 2400px;
|
||||||
--header-height: 4rem; /* 72px at 18px base — was 64px hardcoded */
|
--header-height: 4rem; /* 72px at 18px base - was 64px hardcoded */
|
||||||
--sidebar-width: 17.5rem; /* 315px at 18px base — was 280px hardcoded */
|
--sidebar-width: 17.5rem; /* 315px at 18px base - was 280px hardcoded */
|
||||||
}
|
}
|
||||||
/* Clip-path corners scale proportionally */
|
/* Clip-path corners scale proportionally */
|
||||||
.lt-frame {
|
.lt-frame {
|
||||||
@@ -2357,7 +2357,7 @@ select option:checked {
|
|||||||
|
|
||||||
.lt-hidden { display: none !important; }
|
.lt-hidden { display: none !important; }
|
||||||
|
|
||||||
/* Skip navigation link — visible only on focus */
|
/* Skip navigation link - visible only on focus */
|
||||||
.lt-skip-link {
|
.lt-skip-link {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -100%;
|
top: -100%;
|
||||||
@@ -3071,7 +3071,7 @@ input[type="range"].lt-range::-moz-range-thumb {
|
|||||||
39. NOTIFICATION BADGES
|
39. NOTIFICATION BADGES
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
.lt-badge-wrap { position: relative; display: inline-flex; }
|
.lt-badge-wrap { position: relative; display: inline-flex; }
|
||||||
/* Notification counter badge — only absolute when inside .lt-badge-wrap */
|
/* Notification counter badge - only absolute when inside .lt-badge-wrap */
|
||||||
.lt-badge-wrap .lt-badge {
|
.lt-badge-wrap .lt-badge {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -3219,7 +3219,7 @@ input[type="range"].lt-range::-moz-range-thumb {
|
|||||||
.lt-kv-val--green { color: var(--accent-green); }
|
.lt-kv-val--green { color: var(--accent-green); }
|
||||||
.lt-kv-val--red { color: var(--accent-red); }
|
.lt-kv-val--red { color: var(--accent-red); }
|
||||||
|
|
||||||
/* lt-kv-row / lt-kv-label / lt-kv-value — alternate KV row pattern using
|
/* lt-kv-row / lt-kv-label / lt-kv-value - alternate KV row pattern using
|
||||||
CSS `display: contents` so children become direct grid items of lt-kv-grid */
|
CSS `display: contents` so children become direct grid items of lt-kv-grid */
|
||||||
.lt-kv-row {
|
.lt-kv-row {
|
||||||
display: contents;
|
display: contents;
|
||||||
@@ -3608,12 +3608,12 @@ input[type="range"].lt-range::-moz-range-thumb {
|
|||||||
51. LIGHT THEME
|
51. LIGHT THEME
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
LIGHT MODE — complete token overrides
|
LIGHT MODE - complete token overrides
|
||||||
Design intent: "military intelligence dashboard, daylight reading"
|
Design intent: "military intelligence dashboard, daylight reading"
|
||||||
Clean off-white surfaces, desaturated accents, no neon.
|
Clean off-white surfaces, desaturated accents, no neon.
|
||||||
================================================================ */
|
================================================================ */
|
||||||
html[data-theme="light"] {
|
html[data-theme="light"] {
|
||||||
/* — Surfaces — */
|
/* - Surfaces - */
|
||||||
--bg-primary: #edf0f5;
|
--bg-primary: #edf0f5;
|
||||||
--bg-secondary: #e2e7ef;
|
--bg-secondary: #e2e7ef;
|
||||||
--bg-tertiary: #d4dae6;
|
--bg-tertiary: #d4dae6;
|
||||||
@@ -3622,19 +3622,19 @@ html[data-theme="light"] {
|
|||||||
--bg-overlay: rgba(237,240,245,0.97);
|
--bg-overlay: rgba(237,240,245,0.97);
|
||||||
--bg-input: #ffffff;
|
--bg-input: #ffffff;
|
||||||
|
|
||||||
/* — Typography — */
|
/* - Typography - */
|
||||||
--text-primary: #111827; /* near-black, high contrast */
|
--text-primary: #111827; /* near-black, high contrast */
|
||||||
--text-secondary: #2d3d56;
|
--text-secondary: #2d3d56;
|
||||||
--text-muted: #5a6e8c;
|
--text-muted: #5a6e8c;
|
||||||
--text-dim: #8a9ab8;
|
--text-dim: #8a9ab8;
|
||||||
|
|
||||||
/* — Borders — */
|
/* - Borders - */
|
||||||
--border-color: rgba(50,80,130,0.18);
|
--border-color: rgba(50,80,130,0.18);
|
||||||
--border-color-hi: #0062b8;
|
--border-color-hi: #0062b8;
|
||||||
--border-color-dim: rgba(50,80,130,0.09);
|
--border-color-dim: rgba(50,80,130,0.09);
|
||||||
--border-dim: rgba(50,80,130,0.09);
|
--border-dim: rgba(50,80,130,0.09);
|
||||||
|
|
||||||
/* — Accent colors: desaturated for readability on white — */
|
/* - Accent colors: desaturated for readability on white - */
|
||||||
--accent-orange: #c44e00;
|
--accent-orange: #c44e00;
|
||||||
--accent-cyan: #0062b8;
|
--accent-cyan: #0062b8;
|
||||||
--accent-green: #006d35;
|
--accent-green: #006d35;
|
||||||
@@ -3642,7 +3642,7 @@ html[data-theme="light"] {
|
|||||||
--accent-amber: #8a5a00;
|
--accent-amber: #8a5a00;
|
||||||
--accent-purple: #6b2fb8;
|
--accent-purple: #6b2fb8;
|
||||||
|
|
||||||
/* — Accent tints — */
|
/* - Accent tints - */
|
||||||
--accent-orange-dim: rgba(196,78,0,0.10);
|
--accent-orange-dim: rgba(196,78,0,0.10);
|
||||||
--accent-cyan-dim: rgba(0,98,184,0.10);
|
--accent-cyan-dim: rgba(0,98,184,0.10);
|
||||||
--accent-green-dim: rgba(0,109,53,0.10);
|
--accent-green-dim: rgba(0,109,53,0.10);
|
||||||
@@ -3652,7 +3652,7 @@ html[data-theme="light"] {
|
|||||||
--accent-green-border: rgba(0,109,53,0.28);
|
--accent-green-border: rgba(0,109,53,0.28);
|
||||||
--shadow-color: rgba(50,80,130,0.18);
|
--shadow-color: rgba(50,80,130,0.18);
|
||||||
|
|
||||||
/* — Glows become subtle drop shadows in light mode — */
|
/* - Glows become subtle drop shadows in light mode - */
|
||||||
--glow-orange: 0 0 0 1px rgba(196,78,0,0.25), 0 1px 6px rgba(196,78,0,0.18);
|
--glow-orange: 0 0 0 1px rgba(196,78,0,0.25), 0 1px 6px rgba(196,78,0,0.18);
|
||||||
--glow-cyan: 0 0 0 1px rgba(0,98,184,0.25), 0 1px 6px rgba(0,98,184,0.18);
|
--glow-cyan: 0 0 0 1px rgba(0,98,184,0.25), 0 1px 6px rgba(0,98,184,0.18);
|
||||||
--glow-green: 0 0 0 1px rgba(0,109,53,0.25), 0 1px 6px rgba(0,109,53,0.18);
|
--glow-green: 0 0 0 1px rgba(0,109,53,0.25), 0 1px 6px rgba(0,109,53,0.18);
|
||||||
@@ -3663,30 +3663,30 @@ html[data-theme="light"] {
|
|||||||
--glow-green-intense: 0 0 0 2px rgba(0,109,53,0.35), 0 2px 10px rgba(0,109,53,0.25);
|
--glow-green-intense: 0 0 0 2px rgba(0,109,53,0.35), 0 2px 10px rgba(0,109,53,0.25);
|
||||||
--glow-amber-intense: 0 0 0 2px rgba(138,90,0,0.35), 0 2px 10px rgba(138,90,0,0.25);
|
--glow-amber-intense: 0 0 0 2px rgba(138,90,0,0.35), 0 2px 10px rgba(138,90,0,0.25);
|
||||||
|
|
||||||
/* — Box glows (card/input focus rings) — */
|
/* - Box glows (card/input focus rings) - */
|
||||||
--box-glow-orange: 0 0 0 2px rgba(196,78,0,0.22), 0 2px 8px rgba(196,78,0,0.12);
|
--box-glow-orange: 0 0 0 2px rgba(196,78,0,0.22), 0 2px 8px rgba(196,78,0,0.12);
|
||||||
--box-glow-cyan: 0 0 0 2px rgba(0,98,184,0.22), 0 2px 8px rgba(0,98,184,0.12);
|
--box-glow-cyan: 0 0 0 2px rgba(0,98,184,0.22), 0 2px 8px rgba(0,98,184,0.12);
|
||||||
--box-glow-green: 0 0 0 2px rgba(0,109,53,0.22), 0 2px 8px rgba(0,109,53,0.12);
|
--box-glow-green: 0 0 0 2px rgba(0,109,53,0.22), 0 2px 8px rgba(0,109,53,0.12);
|
||||||
--box-glow-red: 0 0 0 2px rgba(181,0,31,0.22), 0 2px 8px rgba(181,0,31,0.12);
|
--box-glow-red: 0 0 0 2px rgba(181,0,31,0.22), 0 2px 8px rgba(181,0,31,0.12);
|
||||||
--box-glow-amber: 0 0 0 2px rgba(138,90,0,0.22), 0 2px 8px rgba(138,90,0,0.12);
|
--box-glow-amber: 0 0 0 2px rgba(138,90,0,0.22), 0 2px 8px rgba(138,90,0,0.12);
|
||||||
|
|
||||||
/* — Syntax highlight — */
|
/* - Syntax highlight - */
|
||||||
--color-tok-cmt: #2e6540;
|
--color-tok-cmt: #2e6540;
|
||||||
|
|
||||||
color-scheme: light;
|
color-scheme: light;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — CRT / vignette / scanlines — off in light mode — */
|
/* - CRT / vignette / scanlines - off in light mode - */
|
||||||
html[data-theme="light"] body::before,
|
html[data-theme="light"] body::before,
|
||||||
html[data-theme="light"] body::after { display: none; }
|
html[data-theme="light"] body::after { display: none; }
|
||||||
|
|
||||||
/* — Dot-grid: neutral gray, not blue — */
|
/* - Dot-grid: neutral gray, not blue - */
|
||||||
html[data-theme="light"] {
|
html[data-theme="light"] {
|
||||||
background-image: radial-gradient(circle, rgba(90,110,150,0.14) 1px, transparent 1px);
|
background-image: radial-gradient(circle, rgba(90,110,150,0.14) 1px, transparent 1px);
|
||||||
background-color: var(--bg-primary);
|
background-color: var(--bg-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Layout chrome — */
|
/* - Layout chrome - */
|
||||||
html[data-theme="light"] .lt-header {
|
html[data-theme="light"] .lt-header {
|
||||||
background: rgba(237,240,245,0.97);
|
background: rgba(237,240,245,0.97);
|
||||||
border-bottom-color: var(--border-color);
|
border-bottom-color: var(--border-color);
|
||||||
@@ -3704,7 +3704,7 @@ html[data-theme="light"] .lt-nav-drawer {
|
|||||||
}
|
}
|
||||||
html[data-theme="light"] .lt-nav-drawer-overlay { background: rgba(0,0,0,0.25); }
|
html[data-theme="light"] .lt-nav-drawer-overlay { background: rgba(0,0,0,0.25); }
|
||||||
|
|
||||||
/* — Nav links — */
|
/* - Nav links - */
|
||||||
html[data-theme="light"] .lt-nav-link,
|
html[data-theme="light"] .lt-nav-link,
|
||||||
html[data-theme="light"] .lt-nav-link:hover { color: var(--text-secondary); }
|
html[data-theme="light"] .lt-nav-link:hover { color: var(--text-secondary); }
|
||||||
html[data-theme="light"] .lt-nav-link.active { color: var(--accent-orange); }
|
html[data-theme="light"] .lt-nav-link.active { color: var(--accent-orange); }
|
||||||
@@ -3716,7 +3716,7 @@ html[data-theme="light"] .lt-sidebar-nav-link { color: var(--text-seconda
|
|||||||
html[data-theme="light"] .lt-sidebar-nav-link:hover { background: var(--accent-cyan-dim); }
|
html[data-theme="light"] .lt-sidebar-nav-link:hover { background: var(--accent-cyan-dim); }
|
||||||
html[data-theme="light"] .lt-sidebar-nav-link.active { background: var(--accent-orange-dim); color: var(--accent-orange); }
|
html[data-theme="light"] .lt-sidebar-nav-link.active { background: var(--accent-orange-dim); color: var(--accent-orange); }
|
||||||
|
|
||||||
/* — Surfaces: cards, frames, sections — */
|
/* - Surfaces: cards, frames, sections - */
|
||||||
html[data-theme="light"] .lt-card,
|
html[data-theme="light"] .lt-card,
|
||||||
html[data-theme="light"] .lt-frame {
|
html[data-theme="light"] .lt-frame {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
@@ -3733,7 +3733,7 @@ html[data-theme="light"] .lt-frame::before { color: var(--accent-orange); opacit
|
|||||||
html[data-theme="light"] .lt-frame-bl,
|
html[data-theme="light"] .lt-frame-bl,
|
||||||
html[data-theme="light"] .lt-frame-br { color: var(--accent-cyan); opacity: 0.5; }
|
html[data-theme="light"] .lt-frame-br { color: var(--accent-cyan); opacity: 0.5; }
|
||||||
|
|
||||||
/* — Form controls — */
|
/* - Form controls - */
|
||||||
html[data-theme="light"] .lt-input,
|
html[data-theme="light"] .lt-input,
|
||||||
html[data-theme="light"] .lt-select,
|
html[data-theme="light"] .lt-select,
|
||||||
html[data-theme="light"] .lt-textarea {
|
html[data-theme="light"] .lt-textarea {
|
||||||
@@ -3769,7 +3769,7 @@ html[data-theme="light"] select option:checked {
|
|||||||
}
|
}
|
||||||
html[data-theme="light"] .lt-label { color: var(--text-muted); }
|
html[data-theme="light"] .lt-label { color: var(--text-muted); }
|
||||||
|
|
||||||
/* — Buttons — */
|
/* - Buttons - */
|
||||||
html[data-theme="light"] .lt-btn {
|
html[data-theme="light"] .lt-btn {
|
||||||
background: var(--bg-secondary);
|
background: var(--bg-secondary);
|
||||||
border-color: var(--border-color);
|
border-color: var(--border-color);
|
||||||
@@ -3785,13 +3785,13 @@ html[data-theme="light"] .lt-btn-danger { background: var(--accent-red); color
|
|||||||
html[data-theme="light"] .lt-btn-ghost { background: transparent; border-color: var(--border-color); color: var(--text-secondary); }
|
html[data-theme="light"] .lt-btn-ghost { background: transparent; border-color: var(--border-color); color: var(--text-secondary); }
|
||||||
html[data-theme="light"] .lt-btn-ghost:hover { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-btn-ghost:hover { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
|
||||||
|
|
||||||
/* — Tables — */
|
/* - Tables - */
|
||||||
html[data-theme="light"] .lt-table th { background: var(--bg-secondary); color: var(--text-muted); border-color: var(--border-color); }
|
html[data-theme="light"] .lt-table th { background: var(--bg-secondary); color: var(--text-muted); border-color: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-table td { border-color: var(--border-dim); color: var(--text-secondary); }
|
html[data-theme="light"] .lt-table td { border-color: var(--border-dim); color: var(--text-secondary); }
|
||||||
html[data-theme="light"] .lt-table tr:hover td { background: rgba(0,98,184,0.04); }
|
html[data-theme="light"] .lt-table tr:hover td { background: rgba(0,98,184,0.04); }
|
||||||
html[data-theme="light"] .lt-table-wrap { border-color: var(--border-color); }
|
html[data-theme="light"] .lt-table-wrap { border-color: var(--border-color); }
|
||||||
|
|
||||||
/* — Badges & status — */
|
/* - Badges & status - */
|
||||||
html[data-theme="light"] .lt-badge { background: var(--bg-tertiary); color: var(--text-secondary); }
|
html[data-theme="light"] .lt-badge { background: var(--bg-tertiary); color: var(--text-secondary); }
|
||||||
html[data-theme="light"] .lt-badge-open { background: rgba(0,109,53,0.12); color: #006d35; }
|
html[data-theme="light"] .lt-badge-open { background: rgba(0,109,53,0.12); color: #006d35; }
|
||||||
html[data-theme="light"] .lt-badge-closed { background: rgba(90,110,150,0.12); color: #5a6e8c; }
|
html[data-theme="light"] .lt-badge-closed { background: rgba(90,110,150,0.12); color: #5a6e8c; }
|
||||||
@@ -3804,7 +3804,7 @@ html[data-theme="light"] .lt-badge-p3 { background: rgba(138,90,0,0.12)
|
|||||||
html[data-theme="light"] .lt-badge-p4 { background: rgba(50,80,130,0.10); color: #2d3d56; }
|
html[data-theme="light"] .lt-badge-p4 { background: rgba(50,80,130,0.10); color: #2d3d56; }
|
||||||
html[data-theme="light"] .lt-badge-admin { background: rgba(107,47,184,0.12); color: #6b2fb8; }
|
html[data-theme="light"] .lt-badge-admin { background: rgba(107,47,184,0.12); color: #6b2fb8; }
|
||||||
|
|
||||||
/* — Toast — */
|
/* - Toast - */
|
||||||
html[data-theme="light"] .lt-toast {
|
html[data-theme="light"] .lt-toast {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-color: var(--border-color);
|
border-color: var(--border-color);
|
||||||
@@ -3816,7 +3816,7 @@ html[data-theme="light"] .lt-toast {
|
|||||||
html[data-theme="light"] .lt-toast-icon { opacity: 0.9; }
|
html[data-theme="light"] .lt-toast-icon { opacity: 0.9; }
|
||||||
html[data-theme="light"] .lt-toast-msg { color: var(--text-primary); }
|
html[data-theme="light"] .lt-toast-msg { color: var(--text-primary); }
|
||||||
|
|
||||||
/* — Modals — */
|
/* - Modals - */
|
||||||
html[data-theme="light"] .lt-modal-overlay { background: rgba(30,40,70,0.45); }
|
html[data-theme="light"] .lt-modal-overlay { background: rgba(30,40,70,0.45); }
|
||||||
html[data-theme="light"] .lt-modal {
|
html[data-theme="light"] .lt-modal {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
@@ -3832,7 +3832,7 @@ html[data-theme="light"] .lt-modal-footer {
|
|||||||
border-top-color: var(--border-color);
|
border-top-color: var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Command palette — */
|
/* - Command palette - */
|
||||||
html[data-theme="light"] .lt-cmd-overlay { background: rgba(30,40,70,0.45); }
|
html[data-theme="light"] .lt-cmd-overlay { background: rgba(30,40,70,0.45); }
|
||||||
html[data-theme="light"] .lt-cmd-palette { background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
|
html[data-theme="light"] .lt-cmd-palette { background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
|
||||||
html[data-theme="light"] .lt-cmd-input { background: var(--bg-input); color: var(--text-primary); border-color: var(--border-color); }
|
html[data-theme="light"] .lt-cmd-input { background: var(--bg-input); color: var(--text-primary); border-color: var(--border-color); }
|
||||||
@@ -3842,13 +3842,13 @@ html[data-theme="light"] .lt-cmd-item:hover,
|
|||||||
html[data-theme="light"] .lt-cmd-item.is-active { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-cmd-item.is-active { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-cmd-group-label { color: var(--text-dim); background: var(--bg-secondary); }
|
html[data-theme="light"] .lt-cmd-group-label { color: var(--text-dim); background: var(--bg-secondary); }
|
||||||
|
|
||||||
/* — Context menu — */
|
/* - Context menu - */
|
||||||
html[data-theme="light"] .lt-context-menu { background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
|
html[data-theme="light"] .lt-context-menu { background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
|
||||||
html[data-theme="light"] .lt-context-menu-item { color: var(--text-secondary); }
|
html[data-theme="light"] .lt-context-menu-item { color: var(--text-secondary); }
|
||||||
html[data-theme="light"] .lt-context-menu-item:hover { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-context-menu-item:hover { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-context-menu-divider { background: var(--border-dim); }
|
html[data-theme="light"] .lt-context-menu-divider { background: var(--border-dim); }
|
||||||
|
|
||||||
/* — Right drawer — */
|
/* - Right drawer - */
|
||||||
html[data-theme="light"] .lt-drawer-right {
|
html[data-theme="light"] .lt-drawer-right {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
border-left-color: var(--border-color);
|
border-left-color: var(--border-color);
|
||||||
@@ -3858,7 +3858,7 @@ html[data-theme="light"] .lt-drawer-right-header { background: var(--bg-seconda
|
|||||||
html[data-theme="light"] .lt-drawer-right-footer { background: var(--bg-secondary); border-top-color: var(--border-color); }
|
html[data-theme="light"] .lt-drawer-right-footer { background: var(--bg-secondary); border-top-color: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-drawer-right-overlay { background: rgba(30,40,70,0.35); }
|
html[data-theme="light"] .lt-drawer-right-overlay { background: rgba(30,40,70,0.35); }
|
||||||
|
|
||||||
/* — Nav dropdown menu — */
|
/* - Nav dropdown menu - */
|
||||||
html[data-theme="light"] .lt-nav-dropdown-menu {
|
html[data-theme="light"] .lt-nav-dropdown-menu {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
border-color: var(--border-color);
|
border-color: var(--border-color);
|
||||||
@@ -3873,7 +3873,7 @@ html[data-theme="light"] .lt-nav-dropdown-menu li a:hover {
|
|||||||
background: var(--accent-orange-dim);
|
background: var(--accent-orange-dim);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Dropdowns & notification panel — */
|
/* - Dropdowns & notification panel - */
|
||||||
html[data-theme="light"] .lt-dropdown-panel {
|
html[data-theme="light"] .lt-dropdown-panel {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
border-color: var(--border-color);
|
border-color: var(--border-color);
|
||||||
@@ -3893,98 +3893,98 @@ html[data-theme="light"] .lt-notif-item:hover { background: var(--bg-seconda
|
|||||||
html[data-theme="light"] .lt-notif-item--unread { background: rgba(0,98,184,0.05); }
|
html[data-theme="light"] .lt-notif-item--unread { background: rgba(0,98,184,0.05); }
|
||||||
html[data-theme="light"] .lt-notif-panel-footer { border-top-color: var(--border-dim); }
|
html[data-theme="light"] .lt-notif-panel-footer { border-top-color: var(--border-dim); }
|
||||||
|
|
||||||
/* — Sidebar / accordion — */
|
/* - Sidebar / accordion - */
|
||||||
html[data-theme="light"] .lt-accordion-header { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-color); }
|
html[data-theme="light"] .lt-accordion-header { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-accordion-header:hover { background: var(--bg-tertiary); }
|
html[data-theme="light"] .lt-accordion-header:hover { background: var(--bg-tertiary); }
|
||||||
html[data-theme="light"] .lt-accordion-body { border-color: var(--border-color); background: var(--bg-card); }
|
html[data-theme="light"] .lt-accordion-body { border-color: var(--border-color); background: var(--bg-card); }
|
||||||
|
|
||||||
/* — Code / terminal — */
|
/* - Code / terminal - */
|
||||||
html[data-theme="light"] code,
|
html[data-theme="light"] code,
|
||||||
html[data-theme="light"] .lt-code-block { background: var(--bg-terminal); color: var(--text-primary); border-color: var(--border-color); }
|
html[data-theme="light"] .lt-code-block { background: var(--bg-terminal); color: var(--text-primary); border-color: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-code-block .comment { color: #6c7e99; }
|
html[data-theme="light"] .lt-code-block .comment { color: #6c7e99; }
|
||||||
|
|
||||||
/* — Stat cards — */
|
/* - Stat cards - */
|
||||||
html[data-theme="light"] .lt-stat-card { background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
|
html[data-theme="light"] .lt-stat-card { background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
|
||||||
html[data-theme="light"] .lt-stat-card:hover { box-shadow: var(--box-glow-cyan); border-color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-stat-card:hover { box-shadow: var(--box-glow-cyan); border-color: var(--accent-cyan); }
|
||||||
|
|
||||||
/* — Timeline — */
|
/* - Timeline - */
|
||||||
html[data-theme="light"] .lt-timeline-item::before { background: var(--border-color); }
|
html[data-theme="light"] .lt-timeline-item::before { background: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-timeline-actor { color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-timeline-actor { color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-timeline-body { color: var(--text-secondary); }
|
html[data-theme="light"] .lt-timeline-body { color: var(--text-secondary); }
|
||||||
|
|
||||||
/* — Dividers — */
|
/* - Dividers - */
|
||||||
html[data-theme="light"] .lt-divider::before,
|
html[data-theme="light"] .lt-divider::before,
|
||||||
html[data-theme="light"] .lt-divider::after { background: var(--border-color); }
|
html[data-theme="light"] .lt-divider::after { background: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-divider-label { color: var(--text-dim); }
|
html[data-theme="light"] .lt-divider-label { color: var(--text-dim); }
|
||||||
|
|
||||||
/* — Tags / chips — */
|
/* - Tags / chips - */
|
||||||
html[data-theme="light"] .lt-tag { background: var(--bg-tertiary); border-color: var(--border-color); color: var(--text-secondary); }
|
html[data-theme="light"] .lt-tag { background: var(--bg-tertiary); border-color: var(--border-color); color: var(--text-secondary); }
|
||||||
|
|
||||||
/* — Tooltips — */
|
/* - Tooltips - */
|
||||||
html[data-theme="light"] [data-tooltip]::before { background: var(--bg-terminal); color: var(--text-primary); }
|
html[data-theme="light"] [data-tooltip]::before { background: var(--bg-terminal); color: var(--text-primary); }
|
||||||
html[data-theme="light"] [data-tooltip]::after { border-top-color: var(--bg-terminal); }
|
html[data-theme="light"] [data-tooltip]::after { border-top-color: var(--bg-terminal); }
|
||||||
|
|
||||||
/* — Pagination — */
|
/* - Pagination - */
|
||||||
html[data-theme="light"] .lt-page-btn { background: var(--bg-card); border-color: var(--border-color); color: var(--text-secondary); }
|
html[data-theme="light"] .lt-page-btn { background: var(--bg-card); border-color: var(--border-color); color: var(--text-secondary); }
|
||||||
html[data-theme="light"] .lt-page-btn:hover { background: var(--accent-cyan-dim); border-color: var(--accent-cyan); color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-page-btn:hover { background: var(--accent-cyan-dim); border-color: var(--accent-cyan); color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-page-btn.active { background: var(--accent-cyan); color: #fff; border-color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-page-btn.active { background: var(--accent-cyan); color: #fff; border-color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-page-btn[disabled] { opacity: 0.4; }
|
html[data-theme="light"] .lt-page-btn[disabled] { opacity: 0.4; }
|
||||||
|
|
||||||
/* — Tabs — */
|
/* - Tabs - */
|
||||||
html[data-theme="light"] .lt-tab { color: var(--text-muted); border-bottom-color: transparent; }
|
html[data-theme="light"] .lt-tab { color: var(--text-muted); border-bottom-color: transparent; }
|
||||||
html[data-theme="light"] .lt-tab:hover { color: var(--text-primary); }
|
html[data-theme="light"] .lt-tab:hover { color: var(--text-primary); }
|
||||||
html[data-theme="light"] .lt-tab.active { color: var(--accent-orange); border-bottom-color: var(--accent-orange); }
|
html[data-theme="light"] .lt-tab.active { color: var(--accent-orange); border-bottom-color: var(--accent-orange); }
|
||||||
html[data-theme="light"] .lt-tabs { border-bottom-color: var(--border-color); }
|
html[data-theme="light"] .lt-tabs { border-bottom-color: var(--border-color); }
|
||||||
|
|
||||||
/* — Offline banner — */
|
/* - Offline banner - */
|
||||||
html[data-theme="light"] .lt-offline-banner { background: rgba(138,90,0,0.12); color: var(--accent-amber); border-color: rgba(138,90,0,0.25); }
|
html[data-theme="light"] .lt-offline-banner { background: rgba(138,90,0,0.12); color: var(--accent-amber); border-color: rgba(138,90,0,0.25); }
|
||||||
|
|
||||||
/* — WS status indicator — */
|
/* - WS status indicator - */
|
||||||
html[data-theme="light"] .lt-ws-status { color: var(--text-muted); background: var(--bg-tertiary); border-color: var(--border-color); }
|
html[data-theme="light"] .lt-ws-status { color: var(--text-muted); background: var(--bg-tertiary); border-color: var(--border-color); }
|
||||||
|
|
||||||
/* — Boot overlay — */
|
/* - Boot overlay - */
|
||||||
html[data-theme="light"] .lt-boot-overlay { background: var(--bg-primary); }
|
html[data-theme="light"] .lt-boot-overlay { background: var(--bg-primary); }
|
||||||
html[data-theme="light"] .lt-boot-text { color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-boot-text { color: var(--accent-cyan); }
|
||||||
|
|
||||||
/* — Section header accent arrow — */
|
/* - Section header accent arrow - */
|
||||||
html[data-theme="light"] .lt-section-title::before { color: var(--accent-orange); opacity: 0.8; }
|
html[data-theme="light"] .lt-section-title::before { color: var(--accent-orange); opacity: 0.8; }
|
||||||
|
|
||||||
/* — Breadcrumbs — */
|
/* - Breadcrumbs - */
|
||||||
html[data-theme="light"] .lt-breadcrumb-item a { color: var(--text-muted); }
|
html[data-theme="light"] .lt-breadcrumb-item a { color: var(--text-muted); }
|
||||||
html[data-theme="light"] .lt-breadcrumb-item.active { color: var(--text-primary); }
|
html[data-theme="light"] .lt-breadcrumb-item.active { color: var(--text-primary); }
|
||||||
html[data-theme="light"] .lt-breadcrumb-sep { color: var(--text-dim); }
|
html[data-theme="light"] .lt-breadcrumb-sep { color: var(--text-dim); }
|
||||||
|
|
||||||
/* — Progress bars — */
|
/* - Progress bars - */
|
||||||
html[data-theme="light"] .lt-progress { background: var(--bg-tertiary); }
|
html[data-theme="light"] .lt-progress { background: var(--bg-tertiary); }
|
||||||
html[data-theme="light"] .lt-progress-bar { background: var(--accent-cyan); }
|
html[data-theme="light"] .lt-progress-bar { background: var(--accent-cyan); }
|
||||||
|
|
||||||
/* — Skeleton loader — */
|
/* - Skeleton loader - */
|
||||||
html[data-theme="light"] .lt-skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%); }
|
html[data-theme="light"] .lt-skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%); }
|
||||||
|
|
||||||
/* — Dropzone — */
|
/* - Dropzone - */
|
||||||
html[data-theme="light"] .lt-dropzone { background: var(--bg-terminal); border-color: var(--border-color); }
|
html[data-theme="light"] .lt-dropzone { background: var(--bg-terminal); border-color: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-dropzone.is-over { border-color: var(--accent-cyan); background: var(--accent-cyan-dim); }
|
html[data-theme="light"] .lt-dropzone.is-over { border-color: var(--accent-cyan); background: var(--accent-cyan-dim); }
|
||||||
|
|
||||||
/* — Wizard steps — */
|
/* - Wizard steps - */
|
||||||
html[data-theme="light"] .lt-wizard-step-num { background: var(--bg-tertiary); color: var(--text-muted); border-color: var(--border-color); }
|
html[data-theme="light"] .lt-wizard-step-num { background: var(--bg-tertiary); color: var(--text-muted); border-color: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-wizard-step.active .lt-wizard-step-num { background: var(--accent-cyan); color: #fff; border-color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-wizard-step.active .lt-wizard-step-num { background: var(--accent-cyan); color: #fff; border-color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-wizard-step.done .lt-wizard-step-num { background: var(--accent-green); color: #fff; border-color: var(--accent-green); }
|
html[data-theme="light"] .lt-wizard-step.done .lt-wizard-step-num { background: var(--accent-green); color: #fff; border-color: var(--accent-green); }
|
||||||
html[data-theme="light"] .lt-wizard-connector { background: var(--border-color); }
|
html[data-theme="light"] .lt-wizard-connector { background: var(--border-color); }
|
||||||
|
|
||||||
/* — Avatar — */
|
/* - Avatar - */
|
||||||
html[data-theme="light"] .lt-avatar { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--border-color); }
|
html[data-theme="light"] .lt-avatar { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--border-color); }
|
||||||
|
|
||||||
/* — Lightbox — */
|
/* - Lightbox - */
|
||||||
html[data-theme="light"] .lt-lightbox-overlay { background: rgba(15,20,40,0.92); }
|
html[data-theme="light"] .lt-lightbox-overlay { background: rgba(15,20,40,0.92); }
|
||||||
|
|
||||||
/* — Split pane divider — */
|
/* - Split pane divider - */
|
||||||
html[data-theme="light"] .lt-split-divider { background: var(--border-color); }
|
html[data-theme="light"] .lt-split-divider { background: var(--border-color); }
|
||||||
html[data-theme="light"] .lt-split-divider:hover { background: var(--accent-cyan); }
|
html[data-theme="light"] .lt-split-divider:hover { background: var(--accent-cyan); }
|
||||||
|
|
||||||
/* — Theme button (active state in light mode) — */
|
/* - Theme button (active state in light mode) - */
|
||||||
html[data-theme="light"] .lt-theme-btn { color: var(--accent-orange); }
|
html[data-theme="light"] .lt-theme-btn { color: var(--accent-orange); }
|
||||||
|
|
||||||
/* — Text glow utilities: replace neon with ink shadow in light mode — */
|
/* - Text glow utilities: replace neon with ink shadow in light mode - */
|
||||||
html[data-theme="light"] .lt-text-orange { text-shadow: none; color: var(--accent-orange); }
|
html[data-theme="light"] .lt-text-orange { text-shadow: none; color: var(--accent-orange); }
|
||||||
html[data-theme="light"] .lt-text-cyan { text-shadow: none; color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-text-cyan { text-shadow: none; color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-text-green { text-shadow: none; color: var(--accent-green); }
|
html[data-theme="light"] .lt-text-green { text-shadow: none; color: var(--accent-green); }
|
||||||
@@ -3992,19 +3992,19 @@ html[data-theme="light"] .lt-text-red { text-shadow: none; color: var(--acce
|
|||||||
html[data-theme="light"] .lt-text-amber { text-shadow: none; color: var(--accent-amber); }
|
html[data-theme="light"] .lt-text-amber { text-shadow: none; color: var(--accent-amber); }
|
||||||
html[data-theme="light"] .lt-text-muted { color: var(--text-muted); }
|
html[data-theme="light"] .lt-text-muted { color: var(--text-muted); }
|
||||||
|
|
||||||
/* — Markdown — */
|
/* - Markdown - */
|
||||||
html[data-theme="light"] .lt-markdown code { background: var(--bg-secondary); color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-markdown code { background: var(--bg-secondary); color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-markdown blockquote { border-left-color: var(--accent-cyan); background: var(--accent-cyan-dim); }
|
html[data-theme="light"] .lt-markdown blockquote { border-left-color: var(--accent-cyan); background: var(--accent-cyan-dim); }
|
||||||
|
|
||||||
/* — KV grid — */
|
/* - KV grid - */
|
||||||
html[data-theme="light"] .lt-kv-row { border-bottom-color: var(--border-dim); }
|
html[data-theme="light"] .lt-kv-row { border-bottom-color: var(--border-dim); }
|
||||||
html[data-theme="light"] .lt-kv-label { color: var(--text-dim); }
|
html[data-theme="light"] .lt-kv-label { color: var(--text-dim); }
|
||||||
|
|
||||||
/* — Empty state — */
|
/* - Empty state - */
|
||||||
html[data-theme="light"] .lt-empty-state-icon { color: var(--text-dim); }
|
html[data-theme="light"] .lt-empty-state-icon { color: var(--text-dim); }
|
||||||
html[data-theme="light"] .lt-empty-state-title { color: var(--text-secondary); }
|
html[data-theme="light"] .lt-empty-state-title { color: var(--text-secondary); }
|
||||||
|
|
||||||
/* — Combobox / typeahead — */
|
/* - Combobox / typeahead - */
|
||||||
html[data-theme="light"] .lt-combobox-dropdown,
|
html[data-theme="light"] .lt-combobox-dropdown,
|
||||||
html[data-theme="light"] .lt-typeahead-dropdown { background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
|
html[data-theme="light"] .lt-typeahead-dropdown { background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
|
||||||
html[data-theme="light"] .lt-combobox-option:hover,
|
html[data-theme="light"] .lt-combobox-option:hover,
|
||||||
@@ -4013,16 +4013,16 @@ html[data-theme="light"] .lt-typeahead-item.is-focused,
|
|||||||
html[data-theme="light"] .lt-typeahead-item:focus-visible { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-typeahead-item:focus-visible { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
|
||||||
html[data-theme="light"] .lt-combobox-tag { background: var(--accent-cyan-dim); color: var(--accent-cyan); border-color: var(--accent-cyan-border); }
|
html[data-theme="light"] .lt-combobox-tag { background: var(--accent-cyan-dim); color: var(--accent-cyan); border-color: var(--accent-cyan-border); }
|
||||||
|
|
||||||
/* — Sortable ghost — */
|
/* - Sortable ghost - */
|
||||||
html[data-theme="light"] .lt-sortable-placeholder { background: var(--accent-cyan-dim); border-color: var(--accent-cyan); }
|
html[data-theme="light"] .lt-sortable-placeholder { background: var(--accent-cyan-dim); border-color: var(--accent-cyan); }
|
||||||
|
|
||||||
/* — P-level row accents — softer in light mode — */
|
/* - P-level row accents - softer in light mode - */
|
||||||
html[data-theme="light"] .lt-row-p1 { border-left-color: var(--accent-red); }
|
html[data-theme="light"] .lt-row-p1 { border-left-color: var(--accent-red); }
|
||||||
html[data-theme="light"] .lt-row-p2 { border-left-color: var(--accent-orange); }
|
html[data-theme="light"] .lt-row-p2 { border-left-color: var(--accent-orange); }
|
||||||
html[data-theme="light"] .lt-row-p3 { border-left-color: var(--accent-amber); }
|
html[data-theme="light"] .lt-row-p3 { border-left-color: var(--accent-amber); }
|
||||||
html[data-theme="light"] .lt-row-p4 { border-left-color: rgba(50,80,130,0.25); }
|
html[data-theme="light"] .lt-row-p4 { border-left-color: rgba(50,80,130,0.25); }
|
||||||
|
|
||||||
/* — Scrollbar light theme — */
|
/* - Scrollbar light theme - */
|
||||||
html[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-secondary); }
|
html[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-secondary); }
|
||||||
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--bg-tertiary); }
|
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--bg-tertiary); }
|
||||||
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }
|
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }
|
||||||
@@ -4218,7 +4218,7 @@ html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--acc
|
|||||||
clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
|
clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
|
||||||
transform: translateX(100%);
|
transform: translateX(100%);
|
||||||
transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
|
transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
|
||||||
z-index: calc(var(--z-overlay) + 2); /* 10001 — same level as nav overlay */
|
z-index: calc(var(--z-overlay) + 2); /* 10001 - same level as nav overlay */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -4504,8 +4504,8 @@ body.lt-is-offline .lt-main { margin-top: 2rem; transition: margin-top 0.25s eas
|
|||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
61. SLA BANNER
|
61. SLA BANNER
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
lt-sla-p1 — pulsing red banner for critical SLA breach
|
lt-sla-p1 - pulsing red banner for critical SLA breach
|
||||||
lt-sla-p2 — static amber banner for high-priority SLA warning
|
lt-sla-p2 - static amber banner for high-priority SLA warning
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
.lt-sla-p1,
|
.lt-sla-p1,
|
||||||
.lt-sla-p2 {
|
.lt-sla-p2 {
|
||||||
@@ -4643,7 +4643,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
position: relative; /* needed so img can overlay initials absolutely */
|
position: relative; /* needed so img can overlay initials absolutely */
|
||||||
}
|
}
|
||||||
/* Image overlays initials — hidden by JS (.lt-avatar-img-err) when broken */
|
/* Image overlays initials - hidden by JS (.lt-avatar-img-err) when broken */
|
||||||
.lt-avatar img {
|
.lt-avatar img {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
@@ -4712,7 +4712,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
}
|
}
|
||||||
.lt-split-divider {
|
.lt-split-divider {
|
||||||
flex: 0 0 5px;
|
flex: 0 0 5px;
|
||||||
background: var(--border-color); /* 16% opacity — clearly visible */
|
background: var(--border-color); /* 16% opacity - clearly visible */
|
||||||
cursor: col-resize;
|
cursor: col-resize;
|
||||||
transition: background 0.15s;
|
transition: background 0.15s;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -4796,7 +4796,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
/* Sparkline — inline mini chart */
|
/* Sparkline - inline mini chart */
|
||||||
.lt-sparkline {
|
.lt-sparkline {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@@ -4829,7 +4829,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
/* Toast container already exists in section 14; these are addons */
|
/* Toast container already exists in section 14; these are addons */
|
||||||
#lt-toast-container {
|
#lt-toast-container {
|
||||||
/* Stack from bottom — newest on top */
|
/* Stack from bottom - newest on top */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
@@ -4962,7 +4962,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
70. WIZARD / MULTI-STEP FORM
|
70. WIZARD / MULTI-STEP FORM
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
/* Step container — hide non-active steps */
|
/* Step container - hide non-active steps */
|
||||||
[data-wizard-step] { display: none; }
|
[data-wizard-step] { display: none; }
|
||||||
[data-wizard-step].is-active { display: block; }
|
[data-wizard-step].is-active { display: block; }
|
||||||
|
|
||||||
@@ -5510,12 +5510,12 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
Targeted overrides addressing audit findings.
|
Targeted overrides addressing audit findings.
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
/* — Modal max-width cap (prevents 4K-wide modals) — */
|
/* - Modal max-width cap (prevents 4K-wide modals) - */
|
||||||
.lt-modal { max-width: 640px; }
|
.lt-modal { max-width: 640px; }
|
||||||
@media (max-width: 767px) { .lt-modal { max-width: 96vw; } }
|
@media (max-width: 767px) { .lt-modal { max-width: 96vw; } }
|
||||||
@media (max-width: 479px) { .lt-modal { max-width: 100vw; } }
|
@media (max-width: 479px) { .lt-modal { max-width: 100vw; } }
|
||||||
|
|
||||||
/* — Landscape phone: better modal + nav spacing — */
|
/* - Landscape phone: better modal + nav spacing - */
|
||||||
@media (max-height: 500px) and (orientation: landscape) {
|
@media (max-height: 500px) and (orientation: landscape) {
|
||||||
.lt-modal { max-height: calc(100vh - 48px); overflow-y: auto; }
|
.lt-modal { max-height: calc(100vh - 48px); overflow-y: auto; }
|
||||||
.lt-modal-body { max-height: calc(100vh - 130px); overflow-y: auto; }
|
.lt-modal-body { max-height: calc(100vh - 130px); overflow-y: auto; }
|
||||||
@@ -5525,7 +5525,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
.lt-boot-overlay { display: none !important; }
|
.lt-boot-overlay { display: none !important; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Dropdown panels: stay within viewport on SM/XS — */
|
/* - Dropdown panels: stay within viewport on SM/XS - */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.lt-dropdown-panel { max-width: 90vw; font-size: 0.8rem; }
|
.lt-dropdown-panel { max-width: 90vw; font-size: 0.8rem; }
|
||||||
.lt-dropdown-panel--right { left: auto; right: 0; }
|
.lt-dropdown-panel--right { left: auto; right: 0; }
|
||||||
@@ -5566,7 +5566,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
.lt-split-pane { flex: none; width: 100% !important; }
|
.lt-split-pane { flex: none; width: 100% !important; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — XS font-size floors (nothing below 0.72rem = ~11.5px) — */
|
/* - XS font-size floors (nothing below 0.72rem = ~11.5px) - */
|
||||||
@media (max-width: 479px) {
|
@media (max-width: 479px) {
|
||||||
.lt-cmd-group-label { font-size: 0.72rem; }
|
.lt-cmd-group-label { font-size: 0.72rem; }
|
||||||
.lt-cmd-item-label { font-size: 0.78rem; }
|
.lt-cmd-item-label { font-size: 0.78rem; }
|
||||||
@@ -5585,7 +5585,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
.lt-badge-admin { display: none; }
|
.lt-badge-admin { display: none; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Safe-area insets for notched devices (header-right) — */
|
/* - Safe-area insets for notched devices (header-right) - */
|
||||||
@supports (padding: max(0px)) {
|
@supports (padding: max(0px)) {
|
||||||
.lt-header-right {
|
.lt-header-right {
|
||||||
padding-right: max(var(--space-md), env(safe-area-inset-right));
|
padding-right: max(var(--space-md), env(safe-area-inset-right));
|
||||||
@@ -5600,7 +5600,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Header: tighter brand on XS to prevent overflow — */
|
/* - Header: tighter brand on XS to prevent overflow - */
|
||||||
@media (max-width: 479px) {
|
@media (max-width: 479px) {
|
||||||
.lt-header { padding: 0 var(--space-sm); gap: var(--space-xs); }
|
.lt-header { padding: 0 var(--space-sm); gap: var(--space-xs); }
|
||||||
.lt-header-left { gap: var(--space-xs); flex-shrink: 1; min-width: 0; }
|
.lt-header-left { gap: var(--space-xs); flex-shrink: 1; min-width: 0; }
|
||||||
@@ -5615,14 +5615,14 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
.lt-header-right { gap: var(--space-xs); flex-shrink: 0; }
|
.lt-header-right { gap: var(--space-xs); flex-shrink: 0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Stats grid: never below 2-col, but use auto-fit for flexibility — */
|
/* - Stats grid: never below 2-col, but use auto-fit for flexibility - */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.lt-stats-grid {
|
.lt-stats-grid {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Lightbox: full-screen on any phone — */
|
/* - Lightbox: full-screen on any phone - */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.lt-lightbox-overlay {
|
.lt-lightbox-overlay {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -5644,7 +5644,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
.lt-lightbox-nav-next { right: 1rem; }
|
.lt-lightbox-nav-next { right: 1rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Wizard steps: compact on XS — */
|
/* - Wizard steps: compact on XS - */
|
||||||
@media (max-width: 479px) {
|
@media (max-width: 479px) {
|
||||||
.lt-wizard-steps {
|
.lt-wizard-steps {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
@@ -5656,7 +5656,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
.lt-wizard-step.active .lt-wizard-step-label { display: block; }
|
.lt-wizard-step.active .lt-wizard-step-label { display: block; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Timeline: tighter on XS — */
|
/* - Timeline: tighter on XS - */
|
||||||
@media (max-width: 479px) {
|
@media (max-width: 479px) {
|
||||||
.lt-timeline-item { padding: var(--space-xs) 0 var(--space-xs) var(--space-md); }
|
.lt-timeline-item { padding: var(--space-xs) 0 var(--space-xs) var(--space-md); }
|
||||||
.lt-timeline-item::before { left: 0; }
|
.lt-timeline-item::before { left: 0; }
|
||||||
@@ -5664,13 +5664,13 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
.lt-timeline-body { font-size: 0.75rem; }
|
.lt-timeline-body { font-size: 0.75rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Code blocks: prevent overflow and fix font on mobile — */
|
/* - Code blocks: prevent overflow and fix font on mobile - */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.lt-code-block { font-size: 0.75rem; overflow-x: auto; }
|
.lt-code-block { font-size: 0.75rem; overflow-x: auto; }
|
||||||
.lt-code-block pre { white-space: pre; word-break: normal; }
|
.lt-code-block pre { white-space: pre; word-break: normal; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — Pagination: 44px touch targets on coarse pointer — */
|
/* - Pagination: 44px touch targets on coarse pointer - */
|
||||||
@media (pointer: coarse) {
|
@media (pointer: coarse) {
|
||||||
.lt-page-btn {
|
.lt-page-btn {
|
||||||
min-height: 44px;
|
min-height: 44px;
|
||||||
@@ -5679,7 +5679,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* — 4K: cap stats grid at 8 columns but use auto-fit — */
|
/* - 4K: cap stats grid at 8 columns but use auto-fit - */
|
||||||
@media (min-width: 2560px) {
|
@media (min-width: 2560px) {
|
||||||
.lt-stats-grid { grid-template-columns: repeat(8, 1fr); max-width: 100%; }
|
.lt-stats-grid { grid-template-columns: repeat(8, 1fr); max-width: 100%; }
|
||||||
.lt-modal { max-width: 800px; }
|
.lt-modal { max-width: 800px; }
|
||||||
@@ -5706,7 +5706,7 @@ html[data-theme="light"] .lt-sla-p2 { background: rgba(138,90,0,0.06); border-c
|
|||||||
.lt-footer { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
|
.lt-footer { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Footer keyboard hint strip — a row of clickable key+label hints */
|
/* Footer keyboard hint strip - a row of clickable key+label hints */
|
||||||
.lt-footer-hints { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
|
.lt-footer-hints { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
|
||||||
|
|
||||||
.lt-footer-hint {
|
.lt-footer-hint {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<!--
|
<!--
|
||||||
LOTUSGUILD TERMINAL DESIGN SYSTEM v1.2 — base.html
|
LOTUSGUILD TERMINAL DESIGN SYSTEM v1.2 - base.html
|
||||||
Reference template showing every component and layout pattern.
|
Reference template showing every component and layout pattern.
|
||||||
|
|
||||||
This file is a STATIC DEMO. Framework-specific wiring is in:
|
This file is a STATIC DEMO. Framework-specific wiring is in:
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
<title>MY APP — LotusGuild</title>
|
<title>MY APP | LotusGuild</title>
|
||||||
<meta name="description" content="LotusGuild infrastructure application">
|
<meta name="description" content="LotusGuild infrastructure application">
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<header class="lt-header">
|
<header class="lt-header">
|
||||||
<div class="lt-header-left">
|
<div class="lt-header-left">
|
||||||
|
|
||||||
<!-- Hamburger — visible only on tablet/mobile (CSS hides on desktop) -->
|
<!-- Hamburger - visible only on tablet/mobile (CSS hides on desktop) -->
|
||||||
<button type="button" class="lt-menu-btn" id="lt-menu-btn" aria-label="Open navigation menu" aria-expanded="false" aria-controls="lt-nav-drawer">
|
<button type="button" class="lt-menu-btn" id="lt-menu-btn" aria-label="Open navigation menu" aria-expanded="false" aria-controls="lt-nav-drawer">
|
||||||
<span></span><span></span><span></span>
|
<span></span><span></span><span></span>
|
||||||
</button>
|
</button>
|
||||||
@@ -143,10 +143,10 @@
|
|||||||
<div class="lt-notif-item-time">12 min ago</div>
|
<div class="lt-notif-item-time">12 min ago</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="lt-notif-item lt-notif-item--unread" role="button" tabindex="0" aria-label="Unread: Export CSV complete — 42 rows, 1 hr ago. Press Enter to dismiss.">
|
<div class="lt-notif-item lt-notif-item--unread" role="button" tabindex="0" aria-label="Unread: Export CSV complete, 42 rows, 1 hr ago. Press Enter to dismiss.">
|
||||||
<span class="lt-notif-dot" aria-hidden="true"></span>
|
<span class="lt-notif-dot" aria-hidden="true"></span>
|
||||||
<div class="lt-notif-item-body">
|
<div class="lt-notif-item-body">
|
||||||
<div class="lt-notif-item-title">Export CSV complete — 42 rows</div>
|
<div class="lt-notif-item-title">Export CSV complete, 42 rows</div>
|
||||||
<div class="lt-notif-item-time">1 hr ago</div>
|
<div class="lt-notif-item-time">1 hr ago</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -459,7 +459,7 @@
|
|||||||
|
|
||||||
<div class="lt-table-wrap">
|
<div class="lt-table-wrap">
|
||||||
<table class="lt-table lt-table-responsive" id="ticket-table" aria-label="Ticket queue">
|
<table class="lt-table lt-table-responsive" id="ticket-table" aria-label="Ticket queue">
|
||||||
<caption class="lt-sr-only">Ticket queue — sorted by priority</caption>
|
<caption class="lt-sr-only">Ticket queue, sorted by priority</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col"><input type="checkbox" class="lt-checkbox" aria-label="Select all"></th>
|
<th scope="col"><input type="checkbox" class="lt-checkbox" aria-label="Select all"></th>
|
||||||
@@ -559,7 +559,7 @@
|
|||||||
<div class="lt-section-header">Open</div>
|
<div class="lt-section-header">Open</div>
|
||||||
<div class="lt-section-body" id="kanban-col-open" style="min-height:60px">
|
<div class="lt-section-body" id="kanban-col-open" style="min-height:60px">
|
||||||
|
|
||||||
<div class="lt-card lt-mb-md lt-row-p1" role="article" aria-label="P1 — Storage array link-down, 5m ago, Unassigned">
|
<div class="lt-card lt-mb-md lt-row-p1" role="article" aria-label="P1: Storage array link-down, 5m ago, Unassigned">
|
||||||
<div class="lt-flex lt-flex-between lt-mb-md">
|
<div class="lt-flex lt-flex-between lt-mb-md">
|
||||||
<span class="lt-p1" aria-hidden="true">P1</span>
|
<span class="lt-p1" aria-hidden="true">P1</span>
|
||||||
<span class="lt-dot lt-dot-up" aria-hidden="true"></span>
|
<span class="lt-dot lt-dot-up" aria-hidden="true"></span>
|
||||||
@@ -568,7 +568,7 @@
|
|||||||
<div class="lt-text-xs lt-text-muted lt-mt-sm">5m ago · Unassigned</div>
|
<div class="lt-text-xs lt-text-muted lt-mt-sm">5m ago · Unassigned</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="lt-card lt-row-p3" role="article" aria-label="P3 — Update node_exporter on micro1, 1d ago, operator">
|
<div class="lt-card lt-row-p3" role="article" aria-label="P3: Update node_exporter on micro1, 1d ago, operator">
|
||||||
<div class="lt-flex lt-flex-between lt-mb-md">
|
<div class="lt-flex lt-flex-between lt-mb-md">
|
||||||
<span class="lt-p3" aria-hidden="true">P3</span>
|
<span class="lt-p3" aria-hidden="true">P3</span>
|
||||||
<span class="lt-dot lt-dot-up" aria-hidden="true"></span>
|
<span class="lt-dot lt-dot-up" aria-hidden="true"></span>
|
||||||
@@ -586,7 +586,7 @@
|
|||||||
<span class="lt-frame-br">╝</span>
|
<span class="lt-frame-br">╝</span>
|
||||||
<div class="lt-section-header">Pending</div>
|
<div class="lt-section-header">Pending</div>
|
||||||
<div class="lt-section-body" id="kanban-col-pending" style="min-height:60px">
|
<div class="lt-section-body" id="kanban-col-pending" style="min-height:60px">
|
||||||
<div class="lt-card lt-row-p2" role="article" aria-label="P2 — Scheduled maintenance window, 2d ago, admin">
|
<div class="lt-card lt-row-p2" role="article" aria-label="P2: Scheduled maintenance window, 2d ago, admin">
|
||||||
<div class="lt-flex lt-flex-between lt-mb-md">
|
<div class="lt-flex lt-flex-between lt-mb-md">
|
||||||
<span class="lt-p2" aria-hidden="true">P2</span>
|
<span class="lt-p2" aria-hidden="true">P2</span>
|
||||||
<span class="lt-dot lt-dot-warn" aria-hidden="true"></span>
|
<span class="lt-dot lt-dot-warn" aria-hidden="true"></span>
|
||||||
@@ -603,7 +603,7 @@
|
|||||||
<span class="lt-frame-br">╝</span>
|
<span class="lt-frame-br">╝</span>
|
||||||
<div class="lt-section-header">In Progress</div>
|
<div class="lt-section-header">In Progress</div>
|
||||||
<div class="lt-section-body" id="kanban-col-inprogress" style="min-height:60px">
|
<div class="lt-section-body" id="kanban-col-inprogress" style="min-height:60px">
|
||||||
<div class="lt-card lt-row-p2 lt-item-running" role="article" aria-label="P2 — Switch port flapping on USW-Pro, 2h ago, operator">
|
<div class="lt-card lt-row-p2 lt-item-running" role="article" aria-label="P2: Switch port flapping on USW-Pro, 2h ago, operator">
|
||||||
<div class="lt-flex lt-flex-between lt-mb-md">
|
<div class="lt-flex lt-flex-between lt-mb-md">
|
||||||
<span class="lt-p2" aria-hidden="true">P2</span>
|
<span class="lt-p2" aria-hidden="true">P2</span>
|
||||||
<span class="lt-dot lt-dot-warn" aria-hidden="true"></span>
|
<span class="lt-dot lt-dot-warn" aria-hidden="true"></span>
|
||||||
@@ -620,7 +620,7 @@
|
|||||||
<span class="lt-frame-br">╝</span>
|
<span class="lt-frame-br">╝</span>
|
||||||
<div class="lt-section-header">Closed</div>
|
<div class="lt-section-header">Closed</div>
|
||||||
<div class="lt-section-body" id="kanban-col-closed" style="min-height:60px">
|
<div class="lt-section-body" id="kanban-col-closed" style="min-height:60px">
|
||||||
<div class="lt-card lt-row-p4" style="opacity:0.6" role="article" aria-label="P4 — Update SSL cert on wiki, 3d ago, operator">
|
<div class="lt-card lt-row-p4" style="opacity:0.6" role="article" aria-label="P4: Update SSL cert on wiki, 3d ago, operator">
|
||||||
<div class="lt-flex lt-flex-between lt-mb-md">
|
<div class="lt-flex lt-flex-between lt-mb-md">
|
||||||
<span class="lt-p4" aria-hidden="true">P4</span>
|
<span class="lt-p4" aria-hidden="true">P4</span>
|
||||||
<span class="lt-dot lt-dot-idle" aria-hidden="true"></span>
|
<span class="lt-dot lt-dot-idle" aria-hidden="true"></span>
|
||||||
@@ -748,7 +748,7 @@
|
|||||||
<div class="lt-msg lt-msg-error">Database connection refused on 192.0.2.50</div>
|
<div class="lt-msg lt-msg-error">Database connection refused on 192.0.2.50</div>
|
||||||
<div class="lt-msg lt-msg-success">Ticket #123456789 updated successfully</div>
|
<div class="lt-msg lt-msg-success">Ticket #123456789 updated successfully</div>
|
||||||
<div class="lt-msg lt-msg-warning">Rate limit: 80% consumed (40/50 req/min)</div>
|
<div class="lt-msg lt-msg-warning">Rate limit: 80% consumed (40/50 req/min)</div>
|
||||||
<div class="lt-msg lt-msg-info">Auto-refresh active — updates every 30s</div>
|
<div class="lt-msg lt-msg-info">Auto-refresh active: updates every 30s</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="lt-subsection-header">Forms</div>
|
<div class="lt-subsection-header">Forms</div>
|
||||||
@@ -762,11 +762,11 @@
|
|||||||
<div class="lt-form-group">
|
<div class="lt-form-group">
|
||||||
<label class="lt-label" for="eg-priority">Priority</label>
|
<label class="lt-label" for="eg-priority">Priority</label>
|
||||||
<select id="eg-priority" class="lt-select">
|
<select id="eg-priority" class="lt-select">
|
||||||
<option>P1 — Critical</option>
|
<option>P1: Critical</option>
|
||||||
<option>P2 — High</option>
|
<option>P2: High</option>
|
||||||
<option selected>P3 — Medium</option>
|
<option selected>P3: Medium</option>
|
||||||
<option>P4 — Low</option>
|
<option>P4: Low</option>
|
||||||
<option>P5 — Minimal</option>
|
<option>P5: Minimal</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="lt-form-group">
|
<div class="lt-form-group">
|
||||||
@@ -806,7 +806,7 @@
|
|||||||
<div class="lt-form-group">
|
<div class="lt-form-group">
|
||||||
<label class="lt-label">Display-only fields <code style="font-size:0.7rem">.lt-display-field</code></label>
|
<label class="lt-label">Display-only fields <code style="font-size:0.7rem">.lt-display-field</code></label>
|
||||||
<select class="lt-select lt-display-field" style="margin-bottom:0.5rem">
|
<select class="lt-select lt-display-field" style="margin-bottom:0.5rem">
|
||||||
<option>P3 — Medium</option>
|
<option>P3: Medium</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" class="lt-input lt-display-field" value="Read-only value">
|
<input type="text" class="lt-input lt-display-field" value="Read-only value">
|
||||||
</div>
|
</div>
|
||||||
@@ -836,7 +836,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- ===========================================================
|
<!-- ===========================================================
|
||||||
COMPONENT SHOWCASE — v1.2 ADDITIONS
|
COMPONENT SHOWCASE - v1.2 ADDITIONS
|
||||||
=========================================================== -->
|
=========================================================== -->
|
||||||
<div class="lt-frame lt-mt-lg">
|
<div class="lt-frame lt-mt-lg">
|
||||||
<div class="lt-frame-inner">
|
<div class="lt-frame-inner">
|
||||||
@@ -895,14 +895,14 @@
|
|||||||
NETWORK CONFIG
|
NETWORK CONFIG
|
||||||
<svg class="lt-accordion-icon" viewBox="0 0 10 6" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M1 1l4 4 4-4"/></svg>
|
<svg class="lt-accordion-icon" viewBox="0 0 10 6" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M1 1l4 4 4-4"/></svg>
|
||||||
</button>
|
</button>
|
||||||
<div class="lt-accordion-body" id="acc-body-2"><div class="lt-accordion-content">eth0: 10.0.0.7 — MTU 1500 — RX 4.2 GB — TX 1.1 GB</div></div>
|
<div class="lt-accordion-body" id="acc-body-2"><div class="lt-accordion-content">eth0: 10.0.0.7 | MTU 1500 | RX 4.2 GB | TX 1.1 GB</div></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="lt-accordion">
|
<div class="lt-accordion">
|
||||||
<button type="button" class="lt-accordion-header" aria-expanded="false" aria-controls="acc-body-3" data-accordion>
|
<button type="button" class="lt-accordion-header" aria-expanded="false" aria-controls="acc-body-3" data-accordion>
|
||||||
FIREWALL RULES
|
FIREWALL RULES
|
||||||
<svg class="lt-accordion-icon" viewBox="0 0 10 6" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M1 1l4 4 4-4"/></svg>
|
<svg class="lt-accordion-icon" viewBox="0 0 10 6" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M1 1l4 4 4-4"/></svg>
|
||||||
</button>
|
</button>
|
||||||
<div class="lt-accordion-body" id="acc-body-3"><div class="lt-accordion-content">22/tcp ALLOW — 80/tcp ALLOW — 443/tcp ALLOW — */* DENY</div></div>
|
<div class="lt-accordion-body" id="acc-body-3"><div class="lt-accordion-content">22/tcp ALLOW | 80/tcp ALLOW | 443/tcp ALLOW | */* DENY</div></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -912,7 +912,7 @@
|
|||||||
<div class="lt-section-body" style="display:flex;flex-direction:column;gap:var(--space-sm)">
|
<div class="lt-section-body" style="display:flex;flex-direction:column;gap:var(--space-sm)">
|
||||||
<div class="lt-alert">
|
<div class="lt-alert">
|
||||||
<span class="lt-alert-icon">ℹ</span>
|
<span class="lt-alert-icon">ℹ</span>
|
||||||
<div class="lt-alert-body"><div class="lt-alert-title">Information</div><div class="lt-alert-msg">Scheduled maintenance window: Sunday 02:00–04:00 UTC.</div></div>
|
<div class="lt-alert-body"><div class="lt-alert-title">Information</div><div class="lt-alert-msg">Scheduled maintenance window: Sunday 02:00-04:00 UTC.</div></div>
|
||||||
<button type="button" class="lt-alert-close" data-alert-close aria-label="Dismiss">✕</button>
|
<button type="button" class="lt-alert-close" data-alert-close aria-label="Dismiss">✕</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="lt-alert lt-alert--warning">
|
<div class="lt-alert lt-alert--warning">
|
||||||
@@ -938,7 +938,7 @@
|
|||||||
<div class="lt-sla-p1" role="alert" data-sla-id="demo-p1">
|
<div class="lt-sla-p1" role="alert" data-sla-id="demo-p1">
|
||||||
<span class="lt-sla-icon" aria-hidden="true">[ ! ]</span>
|
<span class="lt-sla-icon" aria-hidden="true">[ ! ]</span>
|
||||||
<div class="lt-sla-info">
|
<div class="lt-sla-info">
|
||||||
<div class="lt-sla-title">P1 Critical — SLA: 6h 42m elapsed of 8h limit</div>
|
<div class="lt-sla-title">P1 Critical | SLA: 6h 42m elapsed of 8h limit</div>
|
||||||
<div class="lt-sla-bar"><div class="lt-sla-fill" style="width:84%"></div></div>
|
<div class="lt-sla-bar"><div class="lt-sla-fill" style="width:84%"></div></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="lt-sla-meta">Storage array link-down · #123456789</div>
|
<div class="lt-sla-meta">Storage array link-down · #123456789</div>
|
||||||
@@ -947,7 +947,7 @@
|
|||||||
<div class="lt-sla-p2" role="alert" data-sla-id="demo-p2">
|
<div class="lt-sla-p2" role="alert" data-sla-id="demo-p2">
|
||||||
<span class="lt-sla-icon" aria-hidden="true">[ ~ ]</span>
|
<span class="lt-sla-icon" aria-hidden="true">[ ~ ]</span>
|
||||||
<div class="lt-sla-info">
|
<div class="lt-sla-info">
|
||||||
<div class="lt-sla-title">P2 High — SLA: 9h 37m elapsed of 24h limit</div>
|
<div class="lt-sla-title">P2 High | SLA: 9h 37m elapsed of 24h limit</div>
|
||||||
<div class="lt-sla-bar"><div class="lt-sla-fill" style="width:40%"></div></div>
|
<div class="lt-sla-bar"><div class="lt-sla-fill" style="width:40%"></div></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="lt-sla-meta">Switch port flapping · #987654321</div>
|
<div class="lt-sla-meta">Switch port flapping · #987654321</div>
|
||||||
@@ -1117,7 +1117,7 @@
|
|||||||
[03:41:23] cron: heartbeat OK
|
[03:41:23] cron: heartbeat OK
|
||||||
[03:41:24] alert: disk 87% on node-03</pre>
|
[03:41:24] alert: disk 87% on node-03</pre>
|
||||||
</div>
|
</div>
|
||||||
<div id="tab-metrics" class="lt-tab-panel" role="tabpanel" aria-labelledby="tab2-btn-metrics">CPU avg: 34% — Mem avg: 61% — Net TX: 4.2 Mbps</div>
|
<div id="tab-metrics" class="lt-tab-panel" role="tabpanel" aria-labelledby="tab2-btn-metrics">CPU avg: 34% | Mem avg: 61% | Net TX: 4.2 Mbps</div>
|
||||||
<div id="tab-config" class="lt-tab-panel" role="tabpanel" aria-labelledby="tab2-btn-config">Config last updated: 2026-03-20 by [email protected]</div>
|
<div id="tab-config" class="lt-tab-panel" role="tabpanel" aria-labelledby="tab2-btn-config">Config last updated: 2026-03-20 by [email protected]</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1126,7 +1126,7 @@
|
|||||||
<div class="lt-section-header">Tooltips / Divider</div>
|
<div class="lt-section-header">Tooltips / Divider</div>
|
||||||
<div class="lt-section-body" style="display:flex;flex-direction:column;gap:var(--space-md)">
|
<div class="lt-section-body" style="display:flex;flex-direction:column;gap:var(--space-md)">
|
||||||
<div style="display:flex;gap:var(--space-lg);flex-wrap:wrap;padding-top:var(--space-md)">
|
<div style="display:flex;gap:var(--space-lg);flex-wrap:wrap;padding-top:var(--space-md)">
|
||||||
<span data-tooltip="Primary accent — use for actions" class="lt-tag lt-tag--orange">ORANGE</span>
|
<span data-tooltip="Primary accent: use for actions" class="lt-tag lt-tag--orange">ORANGE</span>
|
||||||
<span data-tooltip="Info / border color" data-tooltip-pos="bottom" class="lt-tag lt-tag--cyan">CYAN (bottom)</span>
|
<span data-tooltip="Info / border color" data-tooltip-pos="bottom" class="lt-tag lt-tag--cyan">CYAN (bottom)</span>
|
||||||
<span data-tooltip="Success states" class="lt-tag lt-tag--green">GREEN</span>
|
<span data-tooltip="Success states" class="lt-tag lt-tag--green">GREEN</span>
|
||||||
<span data-tooltip="Critical / error" class="lt-tag lt-tag--red">RED</span>
|
<span data-tooltip="Critical / error" class="lt-tag lt-tag--red">RED</span>
|
||||||
@@ -1142,7 +1142,7 @@
|
|||||||
<input type="file" accept=".json,.csv,.log" multiple aria-label="Upload JSON, CSV, or log files (max 10 MB each)">
|
<input type="file" accept=".json,.csv,.log" multiple aria-label="Upload JSON, CSV, or log files (max 10 MB each)">
|
||||||
<div class="lt-dropzone-icon">⤓</div>
|
<div class="lt-dropzone-icon">⤓</div>
|
||||||
<div class="lt-dropzone-text">Drop files here or <strong>click to browse</strong></div>
|
<div class="lt-dropzone-text">Drop files here or <strong>click to browse</strong></div>
|
||||||
<div class="lt-dropzone-hint">Accepts .json, .csv, .log — max 10 MB each</div>
|
<div class="lt-dropzone-hint">Accepts .json, .csv, .log (max 10 MB each)</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="lt-file-list" id="demo-file-list"></div>
|
<div class="lt-file-list" id="demo-file-list"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1492,10 +1492,10 @@
|
|||||||
<div>
|
<div>
|
||||||
<p style="font-size:0.75rem;color:var(--text-muted);margin-bottom:0.75rem">Drag items to reorder. Uses native HTML5 drag API with pointer-events fallback.</p>
|
<p style="font-size:0.75rem;color:var(--text-muted);margin-bottom:0.75rem">Drag items to reorder. Uses native HTML5 drag API with pointer-events fallback.</p>
|
||||||
<ul id="demo-sortable" style="list-style:none;padding:0;display:flex;flex-direction:column;gap:4px">
|
<ul id="demo-sortable" style="list-style:none;padding:0;display:flex;flex-direction:column;gap:4px">
|
||||||
<li data-id="p1" style="padding:0.5rem 0.75rem;background:var(--bg-card);border:1px solid var(--border-dim);display:flex;align-items:center;gap:0.5rem"><span style="color:var(--text-muted);cursor:grab">⠿</span> P1 — Storage link-down</li>
|
<li data-id="p1" style="padding:0.5rem 0.75rem;background:var(--bg-card);border:1px solid var(--border-dim);display:flex;align-items:center;gap:0.5rem"><span style="color:var(--text-muted);cursor:grab">⠿</span> P1: Storage link-down</li>
|
||||||
<li data-id="p2" style="padding:0.5rem 0.75rem;background:var(--bg-card);border:1px solid var(--border-dim);display:flex;align-items:center;gap:0.5rem"><span style="color:var(--text-muted);cursor:grab">⠿</span> P2 — Switch port flapping</li>
|
<li data-id="p2" style="padding:0.5rem 0.75rem;background:var(--bg-card);border:1px solid var(--border-dim);display:flex;align-items:center;gap:0.5rem"><span style="color:var(--text-muted);cursor:grab">⠿</span> P2: Switch port flapping</li>
|
||||||
<li data-id="p3" style="padding:0.5rem 0.75rem;background:var(--bg-card);border:1px solid var(--border-dim);display:flex;align-items:center;gap:0.5rem"><span style="color:var(--text-muted);cursor:grab">⠿</span> P3 — SFP+ replacement</li>
|
<li data-id="p3" style="padding:0.5rem 0.75rem;background:var(--bg-card);border:1px solid var(--border-dim);display:flex;align-items:center;gap:0.5rem"><span style="color:var(--text-muted);cursor:grab">⠿</span> P3: SFP+ replacement</li>
|
||||||
<li data-id="p4" style="padding:0.5rem 0.75rem;background:var(--bg-card);border:1px solid var(--border-dim);display:flex;align-items:center;gap:0.5rem"><span style="color:var(--text-muted);cursor:grab">⠿</span> P4 — SSL cert renewal</li>
|
<li data-id="p4" style="padding:0.5rem 0.75rem;background:var(--bg-card);border:1px solid var(--border-dim);display:flex;align-items:center;gap:0.5rem"><span style="color:var(--text-muted);cursor:grab">⠿</span> P4: SSL cert renewal</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p id="demo-sort-order" style="font-size:0.68rem;color:var(--text-muted);margin-top:0.5rem">Order: p1, p2, p3, p4</p>
|
<p id="demo-sort-order" style="font-size:0.68rem;color:var(--text-muted);margin-top:0.5rem">Order: p1, p2, p3, p4</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -1625,7 +1625,7 @@ Storage array link-down on `compute-storage-01`.
|
|||||||
================================================================ -->
|
================================================================ -->
|
||||||
<footer class="lt-footer" role="contentinfo" aria-label="Application footer">
|
<footer class="lt-footer" role="contentinfo" aria-label="Application footer">
|
||||||
<span class="lt-text-muted lt-font-mono lt-text-xs">
|
<span class="lt-text-muted lt-font-mono lt-text-xs">
|
||||||
LotusGuild Terminal Design System v1.2 — Internal Use Only
|
LotusGuild Terminal Design System v1.2 | Internal Use Only
|
||||||
</span>
|
</span>
|
||||||
<span class="lt-text-muted lt-font-mono lt-text-xs">
|
<span class="lt-text-muted lt-font-mono lt-text-xs">
|
||||||
© <span id="footer-year"></span> LotusGuild. All rights reserved.
|
© <span id="footer-year"></span> LotusGuild. All rights reserved.
|
||||||
@@ -1638,7 +1638,7 @@ Storage array link-down on `compute-storage-01`.
|
|||||||
=========================================================== -->
|
=========================================================== -->
|
||||||
<div style="position:fixed;bottom:1rem;left:1rem;display:flex;flex-direction:column;gap:0.5rem;z-index:900">
|
<div style="position:fixed;bottom:1rem;left:1rem;display:flex;flex-direction:column;gap:0.5rem;z-index:900">
|
||||||
<button type="button" class="lt-btn lt-btn-sm" onclick="lt.toast.success('Ticket saved successfully')">✓ Toast</button>
|
<button type="button" class="lt-btn lt-btn-sm" onclick="lt.toast.success('Ticket saved successfully')">✓ Toast</button>
|
||||||
<button type="button" class="lt-btn lt-btn-sm lt-btn-danger" onclick="lt.toast.error('Network error — retry in 5s', 5000)">✗ Error</button>
|
<button type="button" class="lt-btn lt-btn-sm lt-btn-danger" onclick="lt.toast.error('Network error, retrying in 5s', 5000)">✗ Error</button>
|
||||||
<button type="button" class="lt-btn lt-btn-sm" onclick="lt.toast.warning('Rate limit 80% used')">! Warn</button>
|
<button type="button" class="lt-btn lt-btn-sm" onclick="lt.toast.warning('Rate limit 80% used')">! Warn</button>
|
||||||
<button type="button" class="lt-btn lt-btn-sm lt-btn-ghost" onclick="lt.toast.info('Auto-refresh triggered')">i Info</button>
|
<button type="button" class="lt-btn lt-btn-sm lt-btn-ghost" onclick="lt.toast.info('Auto-refresh triggered')">i Info</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -1857,7 +1857,7 @@ Storage array link-down on `compute-storage-01`.
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Kanban drag-and-drop — all four columns share group "kanban"
|
// Kanban drag-and-drop - all four columns share group "kanban"
|
||||||
['kanban-col-open','kanban-col-pending','kanban-col-inprogress','kanban-col-closed'].forEach(id => {
|
['kanban-col-open','kanban-col-pending','kanban-col-inprogress','kanban-col-closed'].forEach(id => {
|
||||||
const col = document.getElementById(id);
|
const col = document.getElementById(id);
|
||||||
if (col) lt.sortable.init(col, { group: 'kanban', onSort: () => {} });
|
if (col) lt.sortable.init(col, { group: 'kanban', onSort: () => {} });
|
||||||
@@ -1869,7 +1869,7 @@ Storage array link-down on `compute-storage-01`.
|
|||||||
onChange: p => lt.toast.info('Page ' + p),
|
onChange: p => lt.toast.info('Page ' + p),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Countdown demo — SLA expires 2 hours from now
|
// Countdown demo - SLA expires 2 hours from now
|
||||||
const slaTarget = new Date(Date.now() + 2 * 60 * 60 * 1000);
|
const slaTarget = new Date(Date.now() + 2 * 60 * 60 * 1000);
|
||||||
lt.timer.countdown(document.getElementById('demo-countdown'), slaTarget, {
|
lt.timer.countdown(document.getElementById('demo-countdown'), slaTarget, {
|
||||||
urgent: 300,
|
urgent: 300,
|
||||||
@@ -1943,7 +1943,7 @@ Storage array link-down on `compute-storage-01`.
|
|||||||
if (!document.getElementById('lt-notif-bell').contains(e.target)) close();
|
if (!document.getElementById('lt-notif-bell').contains(e.target)) close();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Esc close — restore focus to bell button
|
// Esc close - restore focus to bell button
|
||||||
document.addEventListener('keydown', e => { if (e.key === 'Escape' && !panel.hasAttribute('aria-hidden')) close(true); });
|
document.addEventListener('keydown', e => { if (e.key === 'Escape' && !panel.hasAttribute('aria-hidden')) close(true); });
|
||||||
}());
|
}());
|
||||||
|
|
||||||
@@ -1986,7 +1986,7 @@ Storage array link-down on `compute-storage-01`.
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// SLA dismiss buttons — hide and persist per session
|
// SLA dismiss buttons - hide and persist per session
|
||||||
document.querySelectorAll('.lt-sla-dismiss').forEach(btn => {
|
document.querySelectorAll('.lt-sla-dismiss').forEach(btn => {
|
||||||
const banner = btn.closest('.lt-sla-p1, .lt-sla-p2');
|
const banner = btn.closest('.lt-sla-p1, .lt-sla-p2');
|
||||||
if (!banner) return;
|
if (!banner) return;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* LOTUSGUILD TERMINAL DESIGN SYSTEM v1.2 — base.js
|
* LOTUSGUILD TERMINAL DESIGN SYSTEM v1.2 - base.js
|
||||||
* Core JavaScript utilities shared across all LotusGuild applications
|
* Core JavaScript utilities shared across all LotusGuild applications
|
||||||
*
|
*
|
||||||
* Apps: Tinker Tickets (PHP), PULSE (Node.js), GANDALF (Flask)
|
* Apps: Tinker Tickets (PHP), PULSE (Node.js), GANDALF (Flask)
|
||||||
@@ -243,7 +243,7 @@
|
|||||||
}
|
}
|
||||||
// Announce the close so whoever opened the modal can undo optimistic UI or
|
// Announce the close so whoever opened the modal can undo optimistic UI or
|
||||||
// clean up a dynamically-inserted overlay. A modal can be dismissed four
|
// clean up a dynamically-inserted overlay. A modal can be dismissed four
|
||||||
// ways — the ✕ button, a Cancel button, a backdrop click, and Escape — and
|
// ways - the ✕ button, a Cancel button, a backdrop click, and Escape - and
|
||||||
// the last two are handled globally here, so button-only listeners miss them.
|
// the last two are handled globally here, so button-only listeners miss them.
|
||||||
el.dispatchEvent(new CustomEvent('lt:modalclose', { bubbles: true }));
|
el.dispatchEvent(new CustomEvent('lt:modalclose', { bubbles: true }));
|
||||||
}
|
}
|
||||||
@@ -319,7 +319,7 @@
|
|||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
let _bootFired = false; // in-memory guard: survives within a JS context, resets on true page reload
|
let _bootFired = false; // in-memory guard: survives within a JS context, resets on true page reload
|
||||||
function runBoot(appName, force) {
|
function runBoot(appName, force) {
|
||||||
if (!force && _bootFired) return; // Fastest guard — blocks any same-page double-call
|
if (!force && _bootFired) return; // Fastest guard - blocks any same-page double-call
|
||||||
const storageKey = 'lt_booted_' + (appName || 'app');
|
const storageKey = 'lt_booted_' + (appName || 'app');
|
||||||
if (!force && sessionStorage.getItem(storageKey)) return;
|
if (!force && sessionStorage.getItem(storageKey)) return;
|
||||||
_bootFired = true;
|
_bootFired = true;
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
'[ OK ] Scheduled tasks registered',
|
'[ OK ] Scheduled tasks registered',
|
||||||
'[ OK ] Terminal interface rendered',
|
'[ OK ] Terminal interface rendered',
|
||||||
'',
|
'',
|
||||||
'> ALL SYSTEMS NOMINAL — ' + name,
|
'> ALL SYSTEMS NOMINAL: ' + name,
|
||||||
'',
|
'',
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -491,7 +491,7 @@
|
|||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
function timeAgo(value) {
|
function timeAgo(value) {
|
||||||
const date = value instanceof Date ? value : new Date(value);
|
const date = value instanceof Date ? value : new Date(value);
|
||||||
if (isNaN(date)) return '—';
|
if (isNaN(date)) return '-';
|
||||||
const diff = Math.floor((Date.now() - date.getTime()) / 1000);
|
const diff = Math.floor((Date.now() - date.getTime()) / 1000);
|
||||||
if (diff < 60) return diff + 's ago';
|
if (diff < 60) return diff + 's ago';
|
||||||
if (diff < 3600) return Math.floor(diff / 60) + 'm ago';
|
if (diff < 3600) return Math.floor(diff / 60) + 'm ago';
|
||||||
@@ -510,7 +510,7 @@
|
|||||||
|
|
||||||
function formatDate(value) {
|
function formatDate(value) {
|
||||||
const date = value instanceof Date ? value : new Date(value);
|
const date = value instanceof Date ? value : new Date(value);
|
||||||
if (isNaN(date)) return '—';
|
if (isNaN(date)) return '-';
|
||||||
try {
|
try {
|
||||||
return date.toLocaleString(undefined, {
|
return date.toLocaleString(undefined, {
|
||||||
timeZone: global.APP_TIMEZONE || undefined,
|
timeZone: global.APP_TIMEZONE || undefined,
|
||||||
@@ -527,7 +527,7 @@
|
|||||||
lt.bytes.format(n)
|
lt.bytes.format(n)
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
function formatBytes(bytes) {
|
function formatBytes(bytes) {
|
||||||
if (bytes == null) return '—';
|
if (bytes == null) return '-';
|
||||||
const units = ['B','KB','MB','GB','TB']; let i = 0;
|
const units = ['B','KB','MB','GB','TB']; let i = 0;
|
||||||
while (bytes >= 1024 && i < units.length - 1) { bytes /= 1024; i++; }
|
while (bytes >= 1024 && i < units.length - 1) { bytes /= 1024; i++; }
|
||||||
return bytes.toFixed(i === 0 ? 0 : 2) + ' ' + units[i];
|
return bytes.toFixed(i === 0 ? 0 : 2) + ' ' + units[i];
|
||||||
@@ -1142,9 +1142,9 @@
|
|||||||
lt.num.format / compact / percent / pad / clamp / lerp
|
lt.num.format / compact / percent / pad / clamp / lerp
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
const num = {
|
const num = {
|
||||||
format(n, d) { if (n == null || isNaN(n)) return '—'; return Number(n).toLocaleString(undefined, { minimumFractionDigits: d || 0, maximumFractionDigits: d != null ? d : 2 }); },
|
format(n, d) { if (n == null || isNaN(n)) return '-'; return Number(n).toLocaleString(undefined, { minimumFractionDigits: d || 0, maximumFractionDigits: d != null ? d : 2 }); },
|
||||||
compact(n) { if (Math.abs(n) >= 1e9) return (n/1e9).toFixed(1)+'B'; if (Math.abs(n) >= 1e6) return (n/1e6).toFixed(1)+'M'; if (Math.abs(n) >= 1e3) return (n/1e3).toFixed(1)+'K'; return String(n); },
|
compact(n) { if (Math.abs(n) >= 1e9) return (n/1e9).toFixed(1)+'B'; if (Math.abs(n) >= 1e6) return (n/1e6).toFixed(1)+'M'; if (Math.abs(n) >= 1e3) return (n/1e3).toFixed(1)+'K'; return String(n); },
|
||||||
percent(n, total) { return total ? ((n/total)*100).toFixed(1)+'%' : '—'; },
|
percent(n, total) { return total ? ((n/total)*100).toFixed(1)+'%' : '-'; },
|
||||||
pad(n, w) { return String(Math.floor(n)).padStart(w, '0'); },
|
pad(n, w) { return String(Math.floor(n)).padStart(w, '0'); },
|
||||||
clamp(n, a, b) { return Math.min(b, Math.max(a, n)); },
|
clamp(n, a, b) { return Math.min(b, Math.max(a, n)); },
|
||||||
lerp(a, b, t) { return a + (b - a) * t; },
|
lerp(a, b, t) { return a + (b - a) * t; },
|
||||||
@@ -1354,7 +1354,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 35 — VIEWPORT
|
MODULE 35 - VIEWPORT
|
||||||
Tracks current breakpoint, fires callbacks on change.
|
Tracks current breakpoint, fires callbacks on change.
|
||||||
lt.viewport.bp() → 'xs'|'sm'|'md'|'lg'|'xl'|'2xl'|'3xl'|'4k'
|
lt.viewport.bp() → 'xs'|'sm'|'md'|'lg'|'xl'|'2xl'|'3xl'|'4k'
|
||||||
lt.viewport.is('md') → true if current bp >= md
|
lt.viewport.is('md') → true if current bp >= md
|
||||||
@@ -1415,7 +1415,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 36 — MOBILE NAV
|
MODULE 36 - MOBILE NAV
|
||||||
Hamburger-driven off-canvas navigation drawer with swipe support.
|
Hamburger-driven off-canvas navigation drawer with swipe support.
|
||||||
lt.mobileNav.open() / .close() / .toggle()
|
lt.mobileNav.open() / .close() / .toggle()
|
||||||
Auto-inits on [id="lt-menu-btn"] + [id="lt-nav-drawer"]
|
Auto-inits on [id="lt-menu-btn"] + [id="lt-nav-drawer"]
|
||||||
@@ -1482,7 +1482,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Swipe gesture — open from left edge, close by swiping left
|
// Swipe gesture - open from left edge, close by swiping left
|
||||||
let _touchStartX = 0;
|
let _touchStartX = 0;
|
||||||
let _touchStartY = 0;
|
let _touchStartY = 0;
|
||||||
let _isSwiping = false;
|
let _isSwiping = false;
|
||||||
@@ -1540,7 +1540,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 37 — THEME TOGGLE
|
MODULE 37 - THEME TOGGLE
|
||||||
lt.theme.toggle()
|
lt.theme.toggle()
|
||||||
lt.theme.set('light'|'dark')
|
lt.theme.set('light'|'dark')
|
||||||
lt.theme.get()
|
lt.theme.get()
|
||||||
@@ -1581,7 +1581,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 38 — NOTIFICATION BADGE
|
MODULE 38 - NOTIFICATION BADGE
|
||||||
lt.notif.set(el, count)
|
lt.notif.set(el, count)
|
||||||
lt.notif.inc(el)
|
lt.notif.inc(el)
|
||||||
lt.notif.clear(el)
|
lt.notif.clear(el)
|
||||||
@@ -1618,7 +1618,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 39 — RIGHT-SIDE DRAWER
|
MODULE 39 - RIGHT-SIDE DRAWER
|
||||||
lt.rightDrawer.open(id)
|
lt.rightDrawer.open(id)
|
||||||
lt.rightDrawer.close(id)
|
lt.rightDrawer.close(id)
|
||||||
lt.rightDrawer.toggle(id)
|
lt.rightDrawer.toggle(id)
|
||||||
@@ -1682,7 +1682,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 40 — CONTEXT MENU
|
MODULE 40 - CONTEXT MENU
|
||||||
lt.contextMenu.register(selector, items)
|
lt.contextMenu.register(selector, items)
|
||||||
items = [{ label, icon, kbd, danger, divider, action }]
|
items = [{ label, icon, kbd, danger, divider, action }]
|
||||||
================================================================ */
|
================================================================ */
|
||||||
@@ -1718,7 +1718,7 @@
|
|||||||
_ctxMenu.appendChild(el);
|
_ctxMenu.appendChild(el);
|
||||||
});
|
});
|
||||||
_ctxMenu.classList.add('is-open');
|
_ctxMenu.classList.add('is-open');
|
||||||
// Position — keep on screen
|
// Position - keep on screen
|
||||||
const vw = window.innerWidth, vh = window.innerHeight;
|
const vw = window.innerWidth, vh = window.innerHeight;
|
||||||
const mw = _ctxMenu.offsetWidth || 180, mh = _ctxMenu.offsetHeight || 200;
|
const mw = _ctxMenu.offsetWidth || 180, mh = _ctxMenu.offsetHeight || 200;
|
||||||
_ctxMenu.style.left = Math.max(8, Math.min(x, vw - mw - 8)) + 'px';
|
_ctxMenu.style.left = Math.max(8, Math.min(x, vw - mw - 8)) + 'px';
|
||||||
@@ -1749,7 +1749,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 41 — OFFLINE DETECTION
|
MODULE 41 - OFFLINE DETECTION
|
||||||
lt.offline.onOnline(fn)
|
lt.offline.onOnline(fn)
|
||||||
lt.offline.onOffline(fn)
|
lt.offline.onOffline(fn)
|
||||||
lt.offline.isOnline()
|
lt.offline.isOnline()
|
||||||
@@ -1764,7 +1764,7 @@
|
|||||||
_offlineBanner.className = 'lt-offline-banner';
|
_offlineBanner.className = 'lt-offline-banner';
|
||||||
_offlineBanner.setAttribute('role', 'alert');
|
_offlineBanner.setAttribute('role', 'alert');
|
||||||
_offlineBanner.setAttribute('aria-live', 'assertive');
|
_offlineBanner.setAttribute('aria-live', 'assertive');
|
||||||
_offlineBanner.innerHTML = '<span class="lt-dot lt-dot--red"></span> NO NETWORK CONNECTION — RECONNECTING...';
|
_offlineBanner.innerHTML = '<span class="lt-dot lt-dot--red"></span> NO NETWORK CONNECTION: RECONNECTING...';
|
||||||
document.body.appendChild(_offlineBanner);
|
document.body.appendChild(_offlineBanner);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1775,7 +1775,7 @@
|
|||||||
window.addEventListener('offline', () => {
|
window.addEventListener('offline', () => {
|
||||||
document.body.classList.add('lt-is-offline');
|
document.body.classList.add('lt-is-offline');
|
||||||
_offlineGetBanner().classList.add('is-visible');
|
_offlineGetBanner().classList.add('is-visible');
|
||||||
toast.warning('Connection lost — working offline');
|
toast.warning('Connection lost, working offline');
|
||||||
_offlineHandlers.forEach(fn => fn());
|
_offlineHandlers.forEach(fn => fn());
|
||||||
});
|
});
|
||||||
window.addEventListener('online', () => {
|
window.addEventListener('online', () => {
|
||||||
@@ -1791,7 +1791,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 42 — WEBSOCKET MANAGER
|
MODULE 42 - WEBSOCKET MANAGER
|
||||||
lt.ws.connect(url, opts)
|
lt.ws.connect(url, opts)
|
||||||
opts: { protocols, onOpen, onMessage, onClose, onError,
|
opts: { protocols, onOpen, onMessage, onClose, onError,
|
||||||
reconnect: true, reconnectDelay: 2000, maxRetries: 10 }
|
reconnect: true, reconnectDelay: 2000, maxRetries: 10 }
|
||||||
@@ -1877,7 +1877,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 43 — MULTI-SELECT COMBOBOX
|
MODULE 43 - MULTI-SELECT COMBOBOX
|
||||||
lt.combobox.init(inputEl, options, opts)
|
lt.combobox.init(inputEl, options, opts)
|
||||||
options = [{ value, label, icon? }]
|
options = [{ value, label, icon? }]
|
||||||
opts: { max, placeholder, onChange }
|
opts: { max, placeholder, onChange }
|
||||||
@@ -1991,7 +1991,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 44 — AUTOCOMPLETE / TYPEAHEAD
|
MODULE 44 - AUTOCOMPLETE / TYPEAHEAD
|
||||||
lt.typeahead.init(inputEl, source, opts)
|
lt.typeahead.init(inputEl, source, opts)
|
||||||
source: array or async fn(query) => [{value, label, icon?, meta?}]
|
source: array or async fn(query) => [{value, label, icon?, meta?}]
|
||||||
opts: { minChars, debounceMs, onSelect, maxResults }
|
opts: { minChars, debounceMs, onSelect, maxResults }
|
||||||
@@ -2082,7 +2082,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 45 — COOKIE UTILITY
|
MODULE 45 - COOKIE UTILITY
|
||||||
lt.cookie.set(name, value, days?, opts?)
|
lt.cookie.set(name, value, days?, opts?)
|
||||||
lt.cookie.get(name)
|
lt.cookie.get(name)
|
||||||
lt.cookie.del(name)
|
lt.cookie.del(name)
|
||||||
@@ -2113,7 +2113,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 46 — SPLIT PANE
|
MODULE 46 - SPLIT PANE
|
||||||
lt.splitPane.init(containerEl, opts)
|
lt.splitPane.init(containerEl, opts)
|
||||||
opts: { minA, minB, initial (0-1), vertical, onResize }
|
opts: { minA, minB, initial (0-1), vertical, onResize }
|
||||||
================================================================ */
|
================================================================ */
|
||||||
@@ -2187,7 +2187,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 48 — SIDEBAR SUBMENUS
|
MODULE 48 - SIDEBAR SUBMENUS
|
||||||
Auto-inits .lt-sidebar-group elements.
|
Auto-inits .lt-sidebar-group elements.
|
||||||
Click label → toggle .is-open + animate submenu.
|
Click label → toggle .is-open + animate submenu.
|
||||||
================================================================ */
|
================================================================ */
|
||||||
@@ -2218,7 +2218,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 49 — INFINITE SCROLL
|
MODULE 49 - INFINITE SCROLL
|
||||||
lt.infiniteScroll.init(containerEl, loadFn, opts)
|
lt.infiniteScroll.init(containerEl, loadFn, opts)
|
||||||
loadFn: async fn() → { items: [], done: bool }
|
loadFn: async fn() → { items: [], done: bool }
|
||||||
opts: { threshold (px from bottom), loadingClass, sentinelClass }
|
opts: { threshold (px from bottom), loadingClass, sentinelClass }
|
||||||
@@ -2284,7 +2284,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 49 — WIZARD / MULTI-STEP FORM
|
MODULE 49 - WIZARD / MULTI-STEP FORM
|
||||||
lt.wizard.init(containerEl, opts)
|
lt.wizard.init(containerEl, opts)
|
||||||
opts: { onStep(n, total), onComplete(data), validate(n) }
|
opts: { onStep(n, total), onComplete(data), validate(n) }
|
||||||
HTML: [data-wizard-step="1"] ... [data-wizard-nav]
|
HTML: [data-wizard-step="1"] ... [data-wizard-nav]
|
||||||
@@ -2377,7 +2377,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 50 — SORTABLE (drag-to-reorder lists/kanban)
|
MODULE 50 - SORTABLE (drag-to-reorder lists/kanban)
|
||||||
lt.sortable.init(listEl, opts)
|
lt.sortable.init(listEl, opts)
|
||||||
opts: { handle (selector), onSort(newOrder, movedEl), group }
|
opts: { handle (selector), onSort(newOrder, movedEl), group }
|
||||||
Supports cross-list dragging when group matches.
|
Supports cross-list dragging when group matches.
|
||||||
@@ -2466,7 +2466,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 51 — COUNTDOWN / TIMER
|
MODULE 51 - COUNTDOWN / TIMER
|
||||||
lt.timer.countdown(el, targetDate, opts)
|
lt.timer.countdown(el, targetDate, opts)
|
||||||
lt.timer.stopwatch(el, opts)
|
lt.timer.stopwatch(el, opts)
|
||||||
el = DOM element or selector; updates .textContent
|
el = DOM element or selector; updates .textContent
|
||||||
@@ -2523,7 +2523,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 52 — IMAGE LIGHTBOX
|
MODULE 52 - IMAGE LIGHTBOX
|
||||||
lt.lightbox.init(selector, opts)
|
lt.lightbox.init(selector, opts)
|
||||||
Clicking any matched image opens a full-screen overlay with
|
Clicking any matched image opens a full-screen overlay with
|
||||||
prev/next, keyboard nav, zoom.
|
prev/next, keyboard nav, zoom.
|
||||||
@@ -2625,12 +2625,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 53 — AUTH / JWT HELPERS
|
MODULE 53 - AUTH / JWT HELPERS
|
||||||
Extends lt.api with token refresh support.
|
Extends lt.api with token refresh support.
|
||||||
lt.auth.setToken(accessToken, refreshToken, expiresIn)
|
lt.auth.setToken(accessToken, refreshToken, expiresIn)
|
||||||
lt.auth.getToken()
|
lt.auth.getToken()
|
||||||
lt.auth.refresh() — explicit refresh
|
lt.auth.refresh() - explicit refresh
|
||||||
lt.auth.onExpire(fn) — callback when token expires & refresh fails
|
lt.auth.onExpire(fn) - callback when token expires & refresh fails
|
||||||
lt.auth.clear()
|
lt.auth.clear()
|
||||||
Auto-intercepts lt.api calls to inject Bearer header
|
Auto-intercepts lt.api calls to inject Bearer header
|
||||||
and silently refreshes when token is within 60s of expiry.
|
and silently refreshes when token is within 60s of expiry.
|
||||||
@@ -2688,7 +2688,7 @@
|
|||||||
isExpiringSoon: (secs = 60) => _authExpiry > 0 && Date.now() >= _authExpiry - secs * 1000,
|
isExpiringSoon: (secs = 60) => _authExpiry > 0 && Date.now() >= _authExpiry - secs * 1000,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Patch lt.api — auth-aware wrapper (renamed to avoid strict-mode duplicate declaration)
|
// Patch lt.api - auth-aware wrapper (renamed to avoid strict-mode duplicate declaration)
|
||||||
async function _apiFetchAuth(method, url, body) {
|
async function _apiFetchAuth(method, url, body) {
|
||||||
if (_authAccess && auth.isExpiringSoon()) await auth.refresh();
|
if (_authAccess && auth.isExpiringSoon()) await auth.refresh();
|
||||||
const opts = { method, headers: Object.assign({ 'Content-Type': 'application/json' }, csrfHeaders()) };
|
const opts = { method, headers: Object.assign({ 'Content-Type': 'application/json' }, csrfHeaders()) };
|
||||||
@@ -2716,7 +2716,7 @@
|
|||||||
api.delete = (u, b) => _apiFetchAuth('DELETE', u, b);
|
api.delete = (u, b) => _apiFetchAuth('DELETE', u, b);
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 54 — MARKDOWN RENDERER
|
MODULE 54 - MARKDOWN RENDERER
|
||||||
lt.markdown.render(mdString) → HTML string (sanitized)
|
lt.markdown.render(mdString) → HTML string (sanitized)
|
||||||
lt.markdown.init(selector) → renders all matching el's .textContent
|
lt.markdown.init(selector) → renders all matching el's .textContent
|
||||||
Uses a built-in micro-renderer (no deps) for common syntax.
|
Uses a built-in micro-renderer (no deps) for common syntax.
|
||||||
@@ -2746,12 +2746,12 @@
|
|||||||
.replace(/\*(.+?)\*/g, '<em>$1</em>')
|
.replace(/\*(.+?)\*/g, '<em>$1</em>')
|
||||||
.replace(/__(.+?)__/g, '<strong>$1</strong>')
|
.replace(/__(.+?)__/g, '<strong>$1</strong>')
|
||||||
.replace(/_(.+?)_/g, '<em>$1</em>')
|
.replace(/_(.+?)_/g, '<em>$1</em>')
|
||||||
// Links — block javascript: and data: URIs
|
// Links - block javascript: and data: URIs
|
||||||
.replace(/\[([^\]]+)\]\(([^)]+)\)/g, (_, text, url) => {
|
.replace(/\[([^\]]+)\]\(([^)]+)\)/g, (_, text, url) => {
|
||||||
const safeUrl = /^(https?:\/\/|\/|#|\.\.?\/)/i.test(url) ? url : '#';
|
const safeUrl = /^(https?:\/\/|\/|#|\.\.?\/)/i.test(url) ? url : '#';
|
||||||
return `<a href="${safeUrl}" target="_blank" rel="noopener noreferrer">${escHtml(text)}</a>`;
|
return `<a href="${safeUrl}" target="_blank" rel="noopener noreferrer">${escHtml(text)}</a>`;
|
||||||
})
|
})
|
||||||
// Images — block javascript: and data: URIs
|
// Images - block javascript: and data: URIs
|
||||||
.replace(/!\[([^\]]*)\]\(([^)]+)\)/g, (_, alt, src) => {
|
.replace(/!\[([^\]]*)\]\(([^)]+)\)/g, (_, alt, src) => {
|
||||||
const safeSrc = /^(https?:\/\/|\/|\.\.?\/)/i.test(src) ? src : '';
|
const safeSrc = /^(https?:\/\/|\/|\.\.?\/)/i.test(src) ? src : '';
|
||||||
return `<img src="${safeSrc}" alt="${escHtml(alt)}" style="max-width:100%">`;
|
return `<img src="${safeSrc}" alt="${escHtml(alt)}" style="max-width:100%">`;
|
||||||
@@ -2783,7 +2783,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ================================================================
|
/* ================================================================
|
||||||
MODULE 55 — PAGINATION
|
MODULE 55 - PAGINATION
|
||||||
lt.pagination.init(navEl, opts)
|
lt.pagination.init(navEl, opts)
|
||||||
opts: { total, perPage, page, onChange(page) }
|
opts: { total, perPage, page, onChange(page) }
|
||||||
Renders page buttons inside navEl; re-renders on page change.
|
Renders page buttons inside navEl; re-renders on page change.
|
||||||
@@ -2875,7 +2875,7 @@
|
|||||||
if (o.boot) {
|
if (o.boot) {
|
||||||
const bootEl = document.getElementById('lt-boot');
|
const bootEl = document.getElementById('lt-boot');
|
||||||
if (bootEl) {
|
if (bootEl) {
|
||||||
const name = o.bootName || bootEl.dataset.appName || document.title.split('—')[0].trim();
|
const name = o.bootName || bootEl.dataset.appName || document.title.split(' | ')[0].trim();
|
||||||
boot.run(name);
|
boot.run(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-11
@@ -1,5 +1,5 @@
|
|||||||
<%–
|
<%#
|
||||||
LOTUSGUILD TERMINAL DESIGN SYSTEM — Node.js / Express EJS Base Layout
|
LOTUSGUILD TERMINAL DESIGN SYSTEM - Node.js / Express EJS Base Layout
|
||||||
Extend this in every page template via res.render('page', { ... }).
|
Extend this in every page template via res.render('page', { ... }).
|
||||||
|
|
||||||
Required Express setup (server.js / app.js):
|
Required Express setup (server.js / app.js):
|
||||||
@@ -16,17 +16,17 @@
|
|||||||
appSubtitle process.env.APP_SUBTITLE
|
appSubtitle process.env.APP_SUBTITLE
|
||||||
|
|
||||||
Locals to set per-route (or via a second res.locals middleware):
|
Locals to set per-route (or via a second res.locals middleware):
|
||||||
pageTitle string — page <title> suffix
|
pageTitle string - page <title> suffix
|
||||||
activeNav string — must match a navLinks[].key
|
activeNav string - must match a navLinks[].key
|
||||||
navLinks array — navigation items:
|
navLinks array - navigation items:
|
||||||
[{ href: '/path', key: 'mykey', label: 'My Page' }, ...]
|
[{ href: '/path', key: 'mykey', label: 'My Page' }, ...]
|
||||||
Dropdown:
|
Dropdown:
|
||||||
{ label: 'Admin', key: 'admin', adminOnly: true, children: [
|
{ label: 'Admin', key: 'admin', adminOnly: true, children: [
|
||||||
{ href: '/admin/users', label: 'Users' }
|
{ href: '/admin/users', label: 'Users' }
|
||||||
]}
|
]}
|
||||||
pageStyles array — optional extra CSS hrefs
|
pageStyles array - optional extra CSS hrefs
|
||||||
pageScripts array — optional extra <script src> paths
|
pageScripts array - optional extra <script src> paths
|
||||||
–%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" data-theme="dark">
|
<html lang="en" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||||
<meta name="theme-color" content="#030508">
|
<meta name="theme-color" content="#030508">
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
<title><%= pageTitle ? pageTitle + ' — ' : '' %><%= appName || 'LotusGuild' %></title>
|
<title><%= pageTitle ? pageTitle + ' | ' : '' %><%= appName || 'LotusGuild' %></title>
|
||||||
|
|
||||||
<!-- Fonts -->
|
<!-- Fonts -->
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- =========================================================
|
<!-- =========================================================
|
||||||
MAIN CONTENT — provided by the including view via <%- body %>
|
MAIN CONTENT - provided by the including view via <%- body %>
|
||||||
or by structuring routes to render with this as a wrapper.
|
or by structuring routes to render with this as a wrapper.
|
||||||
========================================================= -->
|
========================================================= -->
|
||||||
<main class="lt-main lt-container">
|
<main class="lt-main lt-container">
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- =========================================================
|
<!-- =========================================================
|
||||||
SCRIPTS — all tags carry the CSP nonce
|
SCRIPTS - all tags carry the CSP nonce
|
||||||
========================================================= -->
|
========================================================= -->
|
||||||
|
|
||||||
<!-- Runtime globals -->
|
<!-- Runtime globals -->
|
||||||
|
|||||||
+8
-8
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* LOTUSGUILD TERMINAL DESIGN SYSTEM — Node.js / Express Middleware
|
* LOTUSGUILD TERMINAL DESIGN SYSTEM - Node.js / Express Middleware
|
||||||
*
|
*
|
||||||
* Provides:
|
* Provides:
|
||||||
* - requireAuth Authelia SSO header validation
|
* - requireAuth Authelia SSO header validation
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
|
|
||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
Auth — Authelia SSO header parsing
|
Auth - Authelia SSO header parsing
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -54,13 +54,13 @@ function parseUser(req) {
|
|||||||
function requireAuth(req, res, next) {
|
function requireAuth(req, res, next) {
|
||||||
const user = parseUser(req);
|
const user = parseUser(req);
|
||||||
if (!user.username) {
|
if (!user.username) {
|
||||||
return res.status(401).json({ error: 'Not authenticated — access via Authelia SSO' });
|
return res.status(401).json({ error: 'Not authenticated. Sign in through Authelia SSO.' });
|
||||||
}
|
}
|
||||||
|
|
||||||
const allowed = (process.env.ALLOWED_GROUPS || 'admin').split(',').map(s => s.trim());
|
const allowed = (process.env.ALLOWED_GROUPS || 'admin').split(',').map(s => s.trim());
|
||||||
if (!user.groups.some(g => allowed.includes(g))) {
|
if (!user.groups.some(g => allowed.includes(g))) {
|
||||||
return res.status(403).json({
|
return res.status(403).json({
|
||||||
error: `Access denied — ${user.username} is not in an allowed group (${allowed.join(', ')})`
|
error: `Access denied: ${user.username} is not in an allowed group (${allowed.join(', ')})`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ function requireAuth(req, res, next) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Middleware: require 'admin' group specifically.
|
* Middleware: require 'admin' group specifically.
|
||||||
* Must be used after requireAuth (or inline it calls parseUser again — cheap).
|
* Must be used after requireAuth (or inline it calls parseUser again - cheap).
|
||||||
*/
|
*/
|
||||||
function requireAdmin(req, res, next) {
|
function requireAdmin(req, res, next) {
|
||||||
const user = req.user || parseUser(req);
|
const user = req.user || parseUser(req);
|
||||||
@@ -82,7 +82,7 @@ function requireAdmin(req, res, next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
CSRF — double-submit cookie pattern
|
CSRF - double-submit cookie pattern
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -129,7 +129,7 @@ function timingSafeEqual(a, b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
CSP Nonce — generate per-request nonce for Content-Security-Policy
|
CSP Nonce - generate per-request nonce for Content-Security-Policy
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -227,7 +227,7 @@ function requireApiKey(req, res, next) {
|
|||||||
const expected = process.env.WORKER_API_KEY || '';
|
const expected = process.env.WORKER_API_KEY || '';
|
||||||
|
|
||||||
if (!expected) {
|
if (!expected) {
|
||||||
console.warn('[WARN] WORKER_API_KEY not set — API key auth disabled');
|
console.warn('[WARN] WORKER_API_KEY not set; API key auth disabled');
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* LOTUSGUILD TERMINAL DESIGN SYSTEM — PHP Base Layout
|
* LOTUSGUILD TERMINAL DESIGN SYSTEM - PHP Base Layout
|
||||||
* Copy this into your PHP app as the base view template.
|
* Copy this into your PHP app as the base view template.
|
||||||
*
|
*
|
||||||
* Requires:
|
* Requires:
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
* $nonce string CSP nonce from SecurityHeadersMiddleware::getNonce()
|
* $nonce string CSP nonce from SecurityHeadersMiddleware::getNonce()
|
||||||
* $currentUser array ['username', 'name', 'is_admin', 'groups']
|
* $currentUser array ['username', 'name', 'is_admin', 'groups']
|
||||||
* $pageTitle string Page <title> suffix
|
* $pageTitle string Page <title> suffix
|
||||||
* $activeNav string Which nav key is active — must match a $navLinks entry
|
* $activeNav string Which nav key is active - must match a $navLinks entry
|
||||||
* $config array From config/config.php
|
* $config array From config/config.php
|
||||||
* $navLinks array Navigation items:
|
* $navLinks array Navigation items:
|
||||||
* [['href' => '/path', 'key' => 'mykey', 'label' => 'My Page'], ...]
|
* [['href' => '/path', 'key' => 'mykey', 'label' => 'My Page'], ...]
|
||||||
@@ -41,7 +41,7 @@ $isAdmin = $currentUser['is_admin'] ?? false;
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title><?php echo htmlspecialchars($pageTitle); ?> — <?php echo htmlspecialchars($config['APP_NAME'] ?? 'LotusGuild'); ?></title>
|
<title><?php echo htmlspecialchars($pageTitle); ?> | <?php echo htmlspecialchars($config['APP_NAME'] ?? 'LotusGuild'); ?></title>
|
||||||
<meta name="description" content="LotusGuild infrastructure management">
|
<meta name="description" content="LotusGuild infrastructure management">
|
||||||
|
|
||||||
<!-- Unified design system CSS -->
|
<!-- Unified design system CSS -->
|
||||||
@@ -53,7 +53,7 @@ $isAdmin = $currentUser['is_admin'] ?? false;
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<!-- Boot overlay — runs once per session via lt.boot.run() -->
|
<!-- Boot overlay - runs once per session via lt.boot.run() -->
|
||||||
<div id="lt-boot" class="lt-boot-overlay"
|
<div id="lt-boot" class="lt-boot-overlay"
|
||||||
data-app-name="<?php echo htmlspecialchars($config['APP_NAME'] ?? 'APP'); ?>"
|
data-app-name="<?php echo htmlspecialchars($config['APP_NAME'] ?? 'APP'); ?>"
|
||||||
style="display:none">
|
style="display:none">
|
||||||
@@ -113,7 +113,7 @@ $isAdmin = $currentUser['is_admin'] ?? false;
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- =========================================================
|
<!-- =========================================================
|
||||||
MAIN CONTENT — provided by the including view
|
MAIN CONTENT - provided by the including view
|
||||||
========================================================= -->
|
========================================================= -->
|
||||||
<main class="lt-main lt-container">
|
<main class="lt-main lt-container">
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
LOTUSGUILD TERMINAL DESIGN SYSTEM — Flask Auth Helpers
|
LOTUSGUILD TERMINAL DESIGN SYSTEM - Flask Auth Helpers
|
||||||
Provides Authelia SSO integration via remote headers.
|
Provides Authelia SSO integration via remote headers.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -51,7 +51,7 @@ def require_auth(f):
|
|||||||
|
|
||||||
if not user['username']:
|
if not user['username']:
|
||||||
return (
|
return (
|
||||||
'<h1 style="font-family:monospace;color:#ff4444">401 — Not Authenticated</h1>'
|
'<h1 style="font-family:monospace;color:#ff4444">401: Not Authenticated</h1>'
|
||||||
'<p style="font-family:monospace">Access this service through Authelia SSO.</p>',
|
'<p style="font-family:monospace">Access this service through Authelia SSO.</p>',
|
||||||
401,
|
401,
|
||||||
)
|
)
|
||||||
@@ -61,7 +61,7 @@ def require_auth(f):
|
|||||||
|
|
||||||
if not any(grp in allowed for grp in user['groups']):
|
if not any(grp in allowed for grp in user['groups']):
|
||||||
return (
|
return (
|
||||||
f'<h1 style="font-family:monospace;color:#ff4444">403 — Access Denied</h1>'
|
f'<h1 style="font-family:monospace;color:#ff4444">403: Access Denied</h1>'
|
||||||
f'<p style="font-family:monospace">'
|
f'<p style="font-family:monospace">'
|
||||||
f'Account <strong>{user["username"]}</strong> is not in an allowed group '
|
f'Account <strong>{user["username"]}</strong> is not in an allowed group '
|
||||||
f'({", ".join(allowed)}).</p>',
|
f'({", ".join(allowed)}).</p>',
|
||||||
@@ -77,7 +77,7 @@ def require_auth(f):
|
|||||||
|
|
||||||
def require_admin(f):
|
def require_admin(f):
|
||||||
"""
|
"""
|
||||||
Stricter decorator — requires the 'admin' group regardless of config.
|
Stricter decorator - requires the 'admin' group regardless of config.
|
||||||
"""
|
"""
|
||||||
@wraps(f)
|
@wraps(f)
|
||||||
@require_auth
|
@require_auth
|
||||||
@@ -85,7 +85,7 @@ def require_admin(f):
|
|||||||
user = get_user()
|
user = get_user()
|
||||||
if not user['is_admin']:
|
if not user['is_admin']:
|
||||||
return (
|
return (
|
||||||
'<h1 style="font-family:monospace;color:#ff4444">403 — Admin Required</h1>',
|
'<h1 style="font-family:monospace;color:#ff4444">403: Admin Required</h1>',
|
||||||
403,
|
403,
|
||||||
)
|
)
|
||||||
return f(*args, **kwargs)
|
return f(*args, **kwargs)
|
||||||
|
|||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
{#
|
{#
|
||||||
LOTUSGUILD TERMINAL DESIGN SYSTEM — Flask/Jinja2 Base Template
|
LOTUSGUILD TERMINAL DESIGN SYSTEM - Flask/Jinja2 Base Template
|
||||||
Extend this in every page template:
|
Extend this in every page template:
|
||||||
|
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{% block title %}Dashboard{% endblock %} — {{ config.get('app_name', 'LotusGuild') }}</title>
|
<title>{% block title %}Dashboard{% endblock %} | {{ config.get('app_name', 'LotusGuild') }}</title>
|
||||||
<meta name="description" content="LotusGuild infrastructure management">
|
<meta name="description" content="LotusGuild infrastructure management">
|
||||||
|
|
||||||
<!-- Unified design system CSS -->
|
<!-- Unified design system CSS -->
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
</html>
|
</html>
|
||||||
|
|
||||||
{# ---------------------------------------------------------------
|
{# ---------------------------------------------------------------
|
||||||
active_nav block — override in each page template:
|
active_nav block - override in each page template:
|
||||||
|
|
||||||
{% block active_nav %}dashboard{% endblock %}
|
{% block active_nav %}dashboard{% endblock %}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user