Release 2.7.0: executable handbooks and native user-site workflows
This commit is contained in:
1 parent
aa0c4d0f55
commit
d9aef957f7
562 files changed
+21064
-20387
No files matched your search
+22
-35
@@ -1,40 +1,27 @@
|
||||
# Demo walkthrough (`examples/web-site`)
|
||||
# Complete-site walkthrough
|
||||
|
||||
Aligned with The Web Conference **Demo** expectations: implemented system,
|
||||
**hands-on** interaction, clear venue script, reproducible from the repo.
|
||||
Start through the callable workflow in [README](README.md). For a fresh owned database the site seeds eight articles; an existing database retains its actual rows and must not be reset merely to reproduce that count.
|
||||
|
||||
## Run
|
||||
| Step | Actual action | Evidence to inspect |
|
||||
|---|---|---|
|
||||
| 1 | Open Home | Original theme, Markdown introduction, badges, reading steps and summary cards |
|
||||
| 2 | Open a card | Declared /post/{slug} route; full Markdown body rather than its summary |
|
||||
| 3 | Read index and follow components/index | Actual parent/child tree, terminal Markdown and typed data/form/navigation resources |
|
||||
| 4 | Submit New with an empty title | Actual server rule message; retry retains current CSRF |
|
||||
| 5 | Submit title, slug, summary and body | New row appears on Home and in the gated desk without restart |
|
||||
| 6 | Follow Login, use admin/demo, open Admin | Real route gate; separate desk navigation, no public rail, shared form and current cards |
|
||||
| 7 | Return Home and log out | Session-specific links switch with the real identity; direct Admin access redirects again |
|
||||
| 8 | Narrow the browser | The original 860px breakpoint puts main before the side rail without overflow |
|
||||
|
||||
```bash
|
||||
./scripts/build-web-plugin.sh
|
||||
marqdo run examples/web-site/index.mq.md
|
||||
Source responsibilities remain separate. Route metadata lives in each Document, form data is [forms.tables.md](forms.tables.md), current data behavior is [components/articles](components/articles.mq.md), SEO/fonts are [components/head](components/head.mq.md), and theme source plus explicit View mapping begins at [styles/index](styles/index.mq.md). No compose mutation chain or author page HTML is required.
|
||||
|
||||
The callable [verification tool](verify.mq.md) compares 412 original declaration rows and returns actual baseline/projected CSS hashes. It does not replace visual or HTTP acceptance. The real-browser suite deliberately aborts external font requests and verifies declared font families and local fallback rendering; it makes no claim about external service delivery.
|
||||
|
||||
Use native file discovery for author-asset checks, excluding the explicitly generated stylesheet directory:
|
||||
|
||||
```sh
|
||||
target/debug/marqdo call lib/fs.mq.md find 'path="."' 'pattern="**/*.js"' 'exclude=["public/generated/**"]' --effects fs.read --fs-root examples/web-site --json
|
||||
target/debug/marqdo call lib/fs.mq.md find 'path="."' 'pattern="**/*.css"' 'exclude=["public/generated/**"]' --effects fs.read --fs-root examples/web-site --json
|
||||
```
|
||||
|
||||
Open http://127.0.0.1:18081/
|
||||
|
||||
## Venue script (≈3 minutes)
|
||||
|
||||
| Step | Action | What reviewers should notice |
|
||||
|------|--------|------------------------------|
|
||||
| 1 | Home | Claim badges + steps; **8 seed cards** with summaries |
|
||||
| 2 | Click a card | `/post/{slug}` detail from the same table (`detail=True`) |
|
||||
| 3 | Open `index.mq.md` beside the browser | Narrative = program; field/rule/route/intro tables |
|
||||
| 4 | `/new` empty title → submit | Server validation from **rule table** (no author JS) |
|
||||
| 5 | `/new` valid title+slug → submit | Row appears on Home and Admin |
|
||||
| 6 | Top-nav **Login** (`admin` / `demo`) → **Admin** | Session gate; desk shell + create form |
|
||||
| 7 | Terminal check | `find examples/web-site \( -name '*.js' -o -name '*.css' \)` → **0** |
|
||||
|
||||
## Authoring contract
|
||||
|
||||
| Surface | Source |
|
||||
|---------|--------|
|
||||
| Routes / forms / admin | GFM tables in `index.mq.md` |
|
||||
| Styles | `styles/shell.mq.md` → `web.make_style` (ink / wine / gold; `shell_css=off`) |
|
||||
| Intro | `| front | back | style |` → `page.compose_intro` (same bind as main) |
|
||||
| Fonts | `page.head` table → Google Fonts (Noto Serif SC + Ma Shan Zheng) |
|
||||
| Author `.js` / `.css` | **None** |
|
||||
|
||||
## Video
|
||||
|
||||
Same beats as above; English captions preferred. See thesis
|
||||
`www-2027-demo/VIDEO.md` for length / upload tips.
|
||||
Both author-asset lists are empty. This says nothing about generated runtime resources or native rendering internals, which are separate declared boundaries.
|
||||
+24
-19
@@ -1,27 +1,32 @@
|
||||
# examples/web-site
|
||||
# web-site
|
||||
|
||||
Canonical **English** sample for `ext/web` — WWW Demo walkthrough site.
|
||||
This is the complete English document-native site: Home, About, New, the gated custom desk and slug detail each declare their own route. Parents compose structure and leaves contain Markdown. The original ink/wine/gold theme, typography, particles, breakpoints and form states remain declarative, with no author business JavaScript or hand-written CSS.
|
||||
|
||||
**Hands-on script:** [DEMO.md](./DEMO.md)
|
||||
From the checkout root, use the current source CLI and prepare the engineering and Web plugins, then call the actual serving workflow:
|
||||
|
||||
## Authoring rules (checkable)
|
||||
|
||||
| Surface | How it is authored |
|
||||
|---------|-------------------|
|
||||
| Routes / forms / admin | GFM tables + class methods |
|
||||
| Look-and-feel | Host shell CSS + **style tables** |
|
||||
| Author business JavaScript | **none** |
|
||||
| Author hand-written `.css` | **none** |
|
||||
|
||||
```bash
|
||||
cargo build -p marqdo_plugin_web
|
||||
marqdo run examples/web-site/index.mq.md
|
||||
```sh
|
||||
target/debug/marqdo call skills/marqdo-dev/index.mq.md prepare_engineering --effects process.exec --fs-root . --require-ok --json
|
||||
target/debug/marqdo call skills/marqdo-dev/index.mq.md prepare_web --effects plugin --fs-root . --require-ok --json
|
||||
target/debug/marqdo call examples/web-site/index.mq.md serve --effects plugin,fs.write,network.write --fs-root examples/web-site --require-ok --json
|
||||
```
|
||||
|
||||
http://127.0.0.1:18081/ — `/about`, `/new` (validation), `/admin` (list + create).
|
||||
Open http://127.0.0.1:18081/ and use admin/demo only as local fixture credentials. Default SQLite belongs to the granted site root; restart preserves existing rows. The listener blocks in this process and the caller owns shutdown.
|
||||
|
||||
```bash
|
||||
find examples/web-site \( -name '*.js' -o -name '*.css' \) | wc -l # 0
|
||||
Read by responsibility:
|
||||
|
||||
- [Site entry](index.mq.md) — declare Home and compose actual data, form, session, gate and listener resources.
|
||||
- [Layout entry](components/index.mq.md) — public rail and separate desk tree; terminal leaves live in components/content.
|
||||
- [Article request resources](components/articles.mq.md) — current summary cards and actual captured-slug full Markdown detail.
|
||||
- [Shared form](forms.mq.md) — actual fields/rules are in forms.tables.md; failed validation retains CSRF.
|
||||
- [Theme entry](styles/index.mq.md) — retain original data and project only structural addresses plus wrapper geometry.
|
||||
- [Native verification tool](verify.mq.md) — actually compare 412 original layout/motion declaration rows and return real CSS identities.
|
||||
|
||||
```sh
|
||||
target/debug/marqdo call examples/web-site/verify.mq.md theme_values --effects plugin,fs.read --fs-root examples/web-site --require-ok --json
|
||||
```
|
||||
|
||||
Chinese twin: [`examples/web-site-zh/`](../web-site-zh/).
|
||||
Theme output is generated at public/generated/theme.css; edit the adjacent source tables rather than that rebuildable artifact. Original Google Fonts links remain declared, with the original fallback families offline. Local browser acceptance does not claim external font-service delivery.
|
||||
|
||||
The public creation form remains public, while the custom desk is role-gated. Rendering the same form in Admin does not make its submission endpoint private. HTTP regression uses owned copied sites on Tree and Bytecode; real-browser cases verify styles, publishing, detail, session navigation, logout and narrow-screen order without modifying the example's existing database.
|
||||
|
||||
For the hands-on sequence see [DEMO.md](DEMO.md)。
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Current article list and slug detail
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
query: ext/data/view.mq.md
|
||||
table: lib/table.mq.md
|
||||
---
|
||||
|
||||
Both views read the same application-owned articles table for each request. Cards use summaries and slug links; detail uses the complete Markdown body. These pure descriptors do not open a second database or cache startup records. Their renderer retains the native card/article classes consumed by the original theme.
|
||||
|
||||
## cards
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Current article cards linked to /post/slug |
|
||||
|
||||
Construct this query without effects. The serving application owns its database resource and actual request execution. Cards keep the original stable id order and use the existing summary/title/slug projection. Titles and summaries are escaped text, while the full body is intentionally reserved for detail. A publish through either mounted form becomes visible on the next request.
|
||||
|
||||
We **resource = [Describe the actual current article list](query.query(source="articles", order="id", link_prefix="/post/"))**.
|
||||
Return *[Place one request-time card responsibility](component.resource(value=`resource`, slot="articles"))*.
|
||||
|
||||
## detail
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | First article matching the actual captured slug, rendered with full Markdown body |
|
||||
|
||||
The declared /post/{slug} Document supplies the path parameter when the server resolves this query. A same-named query-string value cannot override that capture. The native renderer uses the body even when a summary is present, and it does not mutate the retained condition between requests. Missing database resources remain errors; a missing record remains an empty result under the existing query contract.
|
||||
|
||||
We **condition = [Keep a native record rather than a one-column list](table.put(in=None, at="slug", value="{slug}"))** and **resource = [Describe full-body slug detail](query.query(source="articles", where=`condition`, detail=True, limit=1))**.
|
||||
Return *[Place the actual requested article](component.resource(value=`resource`, slot="article"))*.
|
||||
@@ -0,0 +1,9 @@
|
||||
> about
|
||||
|
||||
# About
|
||||
|
||||
Documentation and the deployed site stay one .mq.md artifact. Layout and theme are GFM style tables in styles/shell.mq.md — structure without hand-written CSS or business JavaScript.
|
||||
|
||||
- docs = program
|
||||
- server-side rules
|
||||
- hands-on
|
||||
@@ -0,0 +1 @@
|
||||
[Site](/) · [Admin](/admin) · [Logout](/admin/logout)
|
||||
@@ -0,0 +1,9 @@
|
||||
> desk · you are in admin
|
||||
|
||||
# Admin
|
||||
|
||||
This is the management desk (login required): same articles schema as the public site, assembled as list + create form — not a separate SPA. Use Site in the topnav to return, or Logout to end the session.
|
||||
|
||||
- login-gated
|
||||
- table-declared
|
||||
- create + list
|
||||
@@ -0,0 +1 @@
|
||||
[Marqdo](https://www.marqdo.com/) · [Source](https://github.com/cflmy/marqdo)
|
||||
@@ -0,0 +1,13 @@
|
||||
> WWW demo · tables as the full stack
|
||||
|
||||
# Marqdo
|
||||
|
||||
One executable Markdown artifact declares routes, forms, admin pages, and styles — no hand-written business JavaScript, no author .css. Click a card for the full article, then try the three steps below.
|
||||
|
||||
- 0 author JS
|
||||
- 0 author .css
|
||||
- GFM tables
|
||||
|
||||
1. Click any card — /post/{slug} opens the detail page from the same articles table.
|
||||
2. Open [New](/new) and submit with an empty title (validation from a rule table).
|
||||
3. Open top-nav **Login** (admin / demo), then **Admin** — gated desk with create form + list.
|
||||
@@ -0,0 +1,5 @@
|
||||
> form · try validation
|
||||
|
||||
# New article
|
||||
|
||||
Leave Title empty and submit — the error comes from the rule table, not client JavaScript. Then fill title, slug, and summary to create a row shared with Admin and the card grid.
|
||||
@@ -0,0 +1 @@
|
||||
> article · table-bound detail
|
||||
@@ -1,30 +1,40 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: components/desk
|
||||
description: Admin desk chrome — brand reads Admin; no public side rail.
|
||||
title: Administration navigation and footer
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
The custom desk keeps its own brand and closing links, and omits the public side rail. Authentication remains the serving entry's responsibility. Neither constructing these nodes nor hiding their links can authorize a visitor to the administration route.
|
||||
|
||||
## nav
|
||||
|
||||
`nav` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Desk navigation using the real current session |
|
||||
|
||||
| front | back | style | media | when |
|
||||
|-------|------|-------|-------|------|
|
||||
| Admin | /admin | | | |
|
||||
| Site | / | | | |
|
||||
| New | /new | | | |
|
||||
| Logout | /admin/logout | | | auth |
|
||||
Construction needs no effects. The first link preserves Admin as the operator's current context, followed by Site, New and Logout. Only the logout link is conditional, matching the original navigation. The entire desk is separately gated, and the actual logout destination remains a native session route. Returned nodes keep their structured resource value so the parent can place them without HTML strings.
|
||||
|
||||
*`nav`*
|
||||
`items` =
|
||||
|
||||
| @ | label | href | when |
|
||||
|---|---|---|---|
|
||||
| 1 | Admin | /admin | |
|
||||
| 2 | Site | / | |
|
||||
| 3 | New | /new | |
|
||||
| 4 | Logout | /admin/logout | auth |
|
||||
|
||||
We **resource = [Describe the desk's current navigation](component.navigation(items=`items`))**.
|
||||
Return *[Keep the same navigation fragment slot](component.resource(value=`resource`, slot="nav"))*.
|
||||
|
||||
## foot
|
||||
|
||||
`foot` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Desk footer with terminal Markdown return and logout links |
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| Site | / | |
|
||||
| Admin | /admin | |
|
||||
| Logout | /admin/logout | |
|
||||
Read this leaf with fs.read under the site root. The route gate has already decided access before the renderer resolves this component. Site and Admin retain their return destinations, while Logout ends the session only when followed. The footer has one content responsibility and no internal layout to split further; the parent owns its placement and the original theme owns its appearance.
|
||||
|
||||
*`foot`*
|
||||
We **text = [Read the desk's terminal closing links](fs.read_text(path="components/content/desk-footer.md"))** and **leaf = [Retain ordinary Markdown content](component.markdown(text=`text`, slot="footer-content"))**.
|
||||
Return *[Place it in the semantic desk footer](component.wrap(children=`leaf`, kind="footer", slot="footer", style="foot"))*.
|
||||
@@ -1,15 +1,21 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Public footer Markdown leaf
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
The public footer is one simple set of project and source links. It has no independent internal columns, so its terminal Markdown is the stopping point for decomposition. The parent controls where it appears; the theme supplies its existing footer appearance.
|
||||
|
||||
## foot
|
||||
|
||||
`foot` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Semantic footer containing its terminal Markdown links |
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| Marqdo | https://www.marqdo.com/ | |
|
||||
| Source | https://github.com/cflmy/marqdo | |
|
||||
Read with fs.read relative to the granted site root. The leaf retains the original project and source destinations; it does not query business rows or expose session credentials. Changing wording belongs in content/footer.md, while changing layout belongs in the parent. This module never renders a child to HTML before composition.
|
||||
|
||||
*`foot`*
|
||||
We **text = [Read the terminal project links](fs.read_text(path="components/content/footer.md"))** and **leaf = [Keep the links in Markdown](component.markdown(text=`text`, slot="footer-content"))**.
|
||||
Return *[Preserve the footer's semantic region](component.wrap(children=`leaf`, kind="footer", slot="footer", style="foot"))*.
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: SEO, font and theme resource declarations
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
head: ext/web/head.mq.md
|
||||
---
|
||||
|
||||
This leaf preserves the original site metadata and Google Fonts resource addresses. It declares links, never fetches them during assembly. Theme CSS is explicitly generated from style tables by serve and mounted at the declared static path.
|
||||
|
||||
## nodes
|
||||
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| homepage | bool | False | Include the original home-only SEO rows |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Pure head resource for real SEO, fonts and the generated theme |
|
||||
|
||||
Use `homepage`=False without effects during page assembly. Only the home Document opts into its original SEO rows; fonts and the theme remain shared. Metadata remains key/value records and the links retain native rel/href/crossorigin fields. The renderer collects them into the actual head in both preview and HTTP output, deduplicating equal declarations. They do not become body placeholders or fragment markup.
|
||||
|
||||
Font delivery still depends on browser access to the external font service; the page uses its declared fallbacks when unavailable. Declaring the theme path does not build it or prove it exists. The serving workflow compiles and writes that exact file before opening a listener, while a static preview caller owns asset preparation.
|
||||
|
||||
`meta` =
|
||||
|
||||
| @ | key | value |
|
||||
|---|---|---|
|
||||
| 1 | description | Tables as the full stack — Marqdo Web demo with zero author business JavaScript. |
|
||||
| 2 | og:type | website |
|
||||
| 3 | og:title | Marqdo Web Site |
|
||||
|
||||
`links` =
|
||||
|
||||
| @ | rel | href | crossorigin |
|
||||
|---|---|---|---|
|
||||
| 1 | preconnect | https://fonts.googleapis.com | |
|
||||
| 2 | preconnect | https://fonts.gstatic.com | anonymous |
|
||||
| 3 | stylesheet | https://fonts.googleapis.com/css2?family=Great+Vibes&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;600&display=swap | |
|
||||
| 4 | stylesheet | /static/generated/theme.css | |
|
||||
|
||||
We **selected_meta = None** because non-home pages retain only their originally shared head links.
|
||||
1. `homepage`
|
||||
We **selected_meta = meta** to retain the original home-specific SEO.
|
||||
We **resource = [Retain actual metadata and native head links](head.resource(meta=`selected_meta`, links=`links`))**.
|
||||
Return *[Place one pure head resource alongside the layout](component.resource(value=`resource`, slot="document-head"))*.
|
||||
@@ -0,0 +1,37 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Public and desk layout entry
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
nav: nav.mq.md
|
||||
side: side.mq.md
|
||||
foot: foot.mq.md
|
||||
desk: desk.mq.md
|
||||
head: head.mq.md
|
||||
table: lib/table.mq.md
|
||||
---
|
||||
|
||||
This parent declares one site frame. The public tree has navigation, side/main and footer; the desk has its own navigation and footer with no public rail. Children own Markdown or typed request resources. Geometry is declared here and compiled from the original theme tables, never hidden inside a rendered HTML string.
|
||||
|
||||
## frame
|
||||
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| body | list | required | Page-owned main nodes, retaining nested resources |
|
||||
| management | bool | False | Select the gated custom desk frame without a public side rail |
|
||||
| homepage | bool | False | Keep original home SEO scoped to Home |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Recursive site structure and pure head resources |
|
||||
|
||||
Use `body`, `management`=False and `homepage`=False. Child navigation keeps its actual session conditions; this function does not authenticate or authorize a visitor. The desk route is separately gated in serve, so choosing its frame cannot grant access. Footer content is already a simple Markdown responsibility and needs no further internal layout.
|
||||
|
||||
The stable slots nav, sidebar, main and footer retain fragment identities. Native resource wrappers remain in the View tree; the theme transparently places their semantic children in the original grid. The class is-desk is local to this frame, replacing the old whole-body mutation. The theme projection keeps its original rules and values under that explicit scope. Pure head resources are collected into the real document head.
|
||||
|
||||
We **top = [Assemble public navigation](nav.nav())** and **rail = [Assemble the public side rail](side.side())** and **bottom = [Read the public Markdown footer](foot.foot())** and **classes = "site-layout has-sidebar"**.
|
||||
1. `management`
|
||||
We **top = [Use the desk's own navigation](desk.nav())** and **rail = [Keep the desk free of the public rail](table.empty_list())** and **bottom = [Read the desk return links](desk.foot())** and **classes = "site-layout no-sidebar is-desk"**.
|
||||
We **main = [Retain the supplied main responsibility](component.wrap(children=`body`, kind="section", slot="main", style="main"))** and **children = [Keep navigation before the public rail](table.concat(a=`top`, b=`rail`))** and **children = [Keep main content after navigation](table.concat(a=`children`, b=`main`))** and **children = [Finish with the selected footer](table.concat(a=`children`, b=`bottom`))**.
|
||||
We **frame = [Declare the shared named layout region](component.wrap(children=`children`, kind="section", slot="site", style=`classes`))** and **resources = [Retain actual SEO, fonts and compiled theme](head.nodes(homepage=`homepage`))**.
|
||||
Return *[Keep head declarations alongside the recursive frame](table.concat(a=`resources`, b=`frame`))*.
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Terminal introduction component
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
The introduction ends in one ordinary Markdown responsibility: category, title, explanation, feature bullets and reading steps. Markdown provides that hierarchy directly; the theme selects those semantic elements. Page geometry stays in the parent frame, and no content row uses an HTML shell or the removed intro-binding dialect.
|
||||
|
||||
## nodes
|
||||
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| name | text | required | Author-selected home, about, new, desk or post Markdown leaf |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | One semantic introduction region around the actual Markdown leaf |
|
||||
|
||||
Use `name` under the granted site root with fs.read. The relative leaf path is selected by the authored Document, never a request parameter. Missing leaves retain the native file diagnostic rather than displaying a copied fallback. Reading the leaf does not execute its emphasis or links as Marqdo statements; its content is data for the native Markdown renderer.
|
||||
|
||||
Each leaf is already simple enough for Markdown: blockquote category, heading, paragraphs, bullets and ordered steps. A change that adds independent internal geometry should split again. Style selectors preserve the original typography, badges and step panel while the page still reads as a document.
|
||||
|
||||
We **path = "components/content/" + name + ".md"** and **text = [Read this introduction's actual content](fs.read_text(path=`path`))** and **leaf = [Retain its simple Markdown hierarchy](component.markdown(text=`text`, slot="intro-content"))**.
|
||||
Return *[Keep the introduction as a semantic region](component.wrap(children=`leaf`, kind="section", slot="intro", style="main-intro"))*.
|
||||
@@ -1,20 +1,32 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Session-aware nav component
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
---
|
||||
|
||||
This module owns only the selected navigation responsibility. Its labels and destinations retain the original site order. The session-dependent rows are a typed navigation resource because their visibility must follow each request rather than a startup snapshot.
|
||||
|
||||
## nav
|
||||
|
||||
Brand first, then demo routes. Guest sees **Login**; signed-in sees **Admin** + **Logout**.
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | One typed navigation resource with stable fragment identity |
|
||||
|
||||
`nav` =
|
||||
Construction is pure and does not log in, log out or register a route. Empty when values keep links visible; guest and auth use the actual session supplied by the server. The resource renderer retains native navigation classes for the existing theme. Hiding Admin never protects its URL: the serving entry separately binds a real /admin role gate.
|
||||
|
||||
| front | back | style | media | when |
|
||||
|-------|------|-------|-------|------|
|
||||
| Marqdo | / | | | |
|
||||
| About | /about | | | |
|
||||
| New | /new | | | |
|
||||
| Login | /login | | | guest |
|
||||
| Admin | /admin | | | auth |
|
||||
| Logout | /admin/logout | | | auth |
|
||||
The parent places this region and owns its grid relationship. Edit labels here and update declared routes when changing a destination; do not concatenate an HTML navigation string or return an obsolete front/back binding table.
|
||||
|
||||
*`nav`*
|
||||
`items` =
|
||||
|
||||
| @ | label | href | when |
|
||||
|---|---|---|---|
|
||||
| 1 | Marqdo | / | |
|
||||
| 2 | About | /about | |
|
||||
| 3 | New | /new | |
|
||||
| 4 | Login | /login | guest |
|
||||
| 5 | Admin | /admin | auth |
|
||||
| 6 | Logout | /admin/logout | auth |
|
||||
|
||||
We **resource = [Describe current-session navigation](component.navigation(items=`items`, region="nav"))**.
|
||||
Return *[Keep this region as a typed View resource](component.resource(value=`resource`, slot="nav"))*.
|
||||
@@ -1,19 +1,31 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Session-aware sidebar component
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
---
|
||||
|
||||
This module owns only the selected navigation responsibility. Its labels and destinations retain the original site order. The session-dependent rows are a typed navigation resource because their visibility must follow each request rather than a startup snapshot.
|
||||
|
||||
## side
|
||||
|
||||
Hands-on demo checklist (links only — no JS).
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | One typed navigation resource with stable fragment identity |
|
||||
|
||||
`side` =
|
||||
Construction is pure and does not log in, log out or register a route. Empty when values keep links visible; guest and auth use the actual session supplied by the server. The resource renderer retains native navigation classes for the existing theme. Hiding Admin never protects its URL: the serving entry separately binds a real /admin role gate.
|
||||
|
||||
| front | back | style | media | when |
|
||||
|-------|------|-------|-------|------|
|
||||
| 1. Home | / | | | |
|
||||
| 2. New form | /new | | | |
|
||||
| 3. Login | /login | | | guest |
|
||||
| 3. Admin | /admin | | | auth |
|
||||
| About | /about | | | |
|
||||
The parent places this region and owns its grid relationship. Edit labels here and update declared routes when changing a destination; do not concatenate an HTML navigation string or return an obsolete front/back binding table.
|
||||
|
||||
*`side`*
|
||||
`items` =
|
||||
|
||||
| @ | label | href | when |
|
||||
|---|---|---|---|
|
||||
| 1 | 1. Home | / | |
|
||||
| 2 | 2. New form | /new | |
|
||||
| 3 | 3. Login | /login | guest |
|
||||
| 4 | 3. Admin | /admin | auth |
|
||||
| 5 | About | /about | |
|
||||
|
||||
We **resource = [Describe current-session navigation](component.navigation(items=`items`, region="sidebar"))**.
|
||||
Return *[Keep this region as a typed View resource](component.resource(value=`resource`, slot="sidebar"))*.
|
||||
@@ -1,36 +1,32 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Article schema and seed handbook
|
||||
import:
|
||||
document: lib/document.mq.md
|
||||
---
|
||||
|
||||
This file explains callable use; [articles.tables.md](articles.tables.md) holds the readable literal tables. Set --fs-root to the site directory and grant fs.read. Reading returns data without running prose, opening a database or changing a page.
|
||||
|
||||
## schema
|
||||
|
||||
`fields` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | any | Native table value, preserving literal types and column geometry |
|
||||
|
||||
| name | type | nullable |
|
||||
|------|------|----------|
|
||||
| id | integer | false |
|
||||
| title | text | false |
|
||||
| slug | text | false |
|
||||
| summary | text | true |
|
||||
| body | text | true |
|
||||
Declare article fields, native types and nullability. The initializer consumes this table to ensure structure; it must not guess a migration or erase existing rows.
|
||||
|
||||
*`fields`*
|
||||
Call independently with fs.read on the site root. The section must match exactly and uniquely. Malformed tables or dynamic expressions retain native document diagnostics. A returned style declaration still needs compilation; returned database data still needs an explicit initializer. This value is neither HTML nor an applied browser effect.
|
||||
|
||||
Return *[读取 schema 的实际字面表](document.read_table(path="db/articles.tables.md", title="schema"))*.
|
||||
|
||||
## seed
|
||||
|
||||
Longer demo rows — cards show summary; /post/{slug} shows full body (Markdown).
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | any | Native table value, preserving literal types and column geometry |
|
||||
|
||||
`rows` =
|
||||
Provide initial demonstration articles with their original ids, stable slugs and content. Insert only after the database initializer confirms an empty table; this reader never changes existing articles.
|
||||
|
||||
| id | title | slug | summary | body |
|
||||
|----|-------|------|---------|------|
|
||||
| 1 | Hello Marqdo | hello-marqdo | A runnable Markdown file is both the site docs and the deployed app — tables declare routes, forms, and styles. | "Marqdo treats an .mq.md file as an executable document. The narrative you read in the editor is the same artifact the server runs: GFM tables become schema, forms, navigation, and CSS. This demo shows that contract end-to-end — open New, trigger a rule-table validation error, then publish a row that appears on Home and Admin without any author JavaScript." |
|
||||
| 2 | Tables as the full stack | tables-full-stack | Schema, forms, routes, admin pages, and theme tokens share one tabular dialect instead of a JS/CSS split. | "Most stacks split concerns across languages: SQL or an ORM for data, a form library for input, a router for URLs, and a stylesheet for look. Marqdo collapses those surfaces into GFM tables with the same geometry authors already use for documentation. Field tables, rule tables, bind tables, and style tables are not metaphors — they are the runtime. The result is a site you can skim as prose and execute as a program." |
|
||||
| 3 | Zero author JS and CSS | zero-author-js-css | Business logic stays in Markdown; appearance is style tables plus the host shell — no hand-written business JS or author .css. | "Author business JavaScript is zero by construction: validation runs from rule tables on the server, and list/detail pages are bind tables rendered by the host. Author .css files are also unnecessary when theme tokens live in property/value tables assembled by make_style. The demo turns shell_css=off so only those declared styles paint the page — proving the claim for a conference audience." |
|
||||
| 4 | Card to detail in one bind | card-to-detail | List cards bind href to slug; a /post/{slug} route plus detail=True opens the full article. | "Click any card on the home page. The list bind exposes href from articles.slug, and link_prefix prefixes /post/. The detail page reuses the same table with a query slug = {slug} and page.detail so the first row renders as a full article — title and Markdown body — instead of a card grid. That is the same pattern used by larger Marqdo sites such as 求道量子." |
|
||||
| 5 | Style tables not stylesheets | style-tables | Named style tables (kicker, intro_title, card_title) bind through the third column of every layout table. | "Intro, cards, and chrome all use the bind shape front/back/style. The style column points at a named property table in styles/shell.mq.md. When compose_intro or compose_main runs, those tables become CSS classes on the page. Authors never open a .css file to tweak the demo look — they edit readable Markdown tables that stay next to the copy they style." |
|
||||
| 6 | Forms from field and rule tables | forms-from-tables | Empty title on New fails from the rule table; a valid submit inserts a row shared with Admin. | "The New and Admin pages mount the same form object: a field table declares labels and types, a rule table declares required and max constraints with messages. Submit with an empty title and the error is server-side, not a client script. Fill a title and slug, submit again, and the row shows up in the card grid and under Admin — one schema, two surfaces, zero author JS." |
|
||||
| 7 | Seed data is documentation | seed-is-docs | These paragraphs were written as a GFM seed table — the demo content is part of the program. | "Seed rows live beside the schema in db/articles.mq.md. On first boot the host inserts them when the articles table is empty. That means the demo narrative is versioned with the code: longer summaries for cards, fuller bodies for detail pages, and slugs that make deep links stable. Reviewers can open the seed table and see exactly what the venue site will show." |
|
||||
| 8 | Why this Demo matters | why-demo-matters | WWW Demo needs a hands-on artifact reviewers can run, click, and compare to source in minutes. | "A Demo track asks for an implemented system, not a slide-only pitch. This sample is intentionally small: one SQLite table, a handful of routes, and a literary shell — yet it covers the paper claim (tables as the full stack) with a three-step script. Clone the repo, run the web-site sample, click a card, break a form, then open index.mq.md beside the browser. That loop is the publication." |
|
||||
Call independently with fs.read on the site root. The section must match exactly and uniquely. Malformed tables or dynamic expressions retain native document diagnostics. A returned style declaration still needs compilation; returned database data still needs an explicit initializer. This value is neither HTML nor an applied browser effect.
|
||||
|
||||
*`rows`*
|
||||
Return *[读取 seed 的实际字面表](document.read_table(path="db/articles.tables.md", title="seed"))*.
|
||||
@@ -0,0 +1,30 @@
|
||||
# Article data
|
||||
|
||||
Literal article schema and demonstration content. Reading these tables does not open a database or insert rows. Follow articles.mq.md for callable use; the database initializer decides whether seeding is appropriate.
|
||||
|
||||
## schema
|
||||
|
||||
Field definitions for the native database initializer; nullable values remain booleans.
|
||||
|
||||
| name | type | nullable |
|
||||
|------|------|----------|
|
||||
| id | integer | false |
|
||||
| title | text | false |
|
||||
| slug | text | false |
|
||||
| summary | text | true |
|
||||
| body | text | true |
|
||||
|
||||
## seed
|
||||
|
||||
Initial demonstration records in their original column-oriented shape; ids and stable slugs retain their meaning.
|
||||
|
||||
| id | title | slug | summary | body |
|
||||
|----|-------|------|---------|------|
|
||||
| 1 | Hello Marqdo | hello-marqdo | A runnable Markdown file is both the site docs and the deployed app — tables declare routes, forms, and styles. | "Marqdo treats an .mq.md file as an executable document. The narrative you read in the editor is the same artifact the server runs: GFM tables become schema, forms, navigation, and CSS. This demo shows that contract end-to-end — open New, trigger a rule-table validation error, then publish a row that appears on Home and Admin without any author JavaScript." |
|
||||
| 2 | Tables as the full stack | tables-full-stack | Schema, forms, routes, admin pages, and theme tokens share one tabular dialect instead of a JS/CSS split. | "Most stacks split concerns across languages: SQL or an ORM for data, a form library for input, a router for URLs, and a stylesheet for look. Marqdo collapses those surfaces into GFM tables with the same geometry authors already use for documentation. Field tables, rule tables, bind tables, and style tables are not metaphors — they are the runtime. The result is a site you can skim as prose and execute as a program." |
|
||||
| 3 | Zero author JS and CSS | zero-author-js-css | Business logic stays in Markdown; appearance is style tables plus the host shell — no hand-written business JS or author .css. | "Author business JavaScript is zero by construction: validation runs from rule tables on the server, and list/detail pages are bind tables rendered by the host. Author .css files are also unnecessary when theme tokens live in property/value tables assembled by make_style. The demo turns shell_css=off so only those declared styles paint the page — proving the claim for a conference audience." |
|
||||
| 4 | Card to detail in one bind | card-to-detail | List cards bind href to slug; a /post/{slug} route plus detail=True opens the full article. | "Click any card on the home page. The list bind exposes href from articles.slug, and link_prefix prefixes /post/. The detail page reuses the same table with a query slug = {slug} and page.detail so the first row renders as a full article — title and Markdown body — instead of a card grid. That is the same pattern used by larger Marqdo sites such as 求道量子." |
|
||||
| 5 | Style tables not stylesheets | style-tables | Named style tables (kicker, intro_title, card_title) bind through the third column of every layout table. | "Intro, cards, and chrome all use the bind shape front/back/style. The style column points at a named property table in styles/shell.mq.md. When compose_intro or compose_main runs, those tables become CSS classes on the page. Authors never open a .css file to tweak the demo look — they edit readable Markdown tables that stay next to the copy they style." |
|
||||
| 6 | Forms from field and rule tables | forms-from-tables | Empty title on New fails from the rule table; a valid submit inserts a row shared with Admin. | "The New and Admin pages mount the same form object: a field table declares labels and types, a rule table declares required and max constraints with messages. Submit with an empty title and the error is server-side, not a client script. Fill a title and slug, submit again, and the row shows up in the card grid and under Admin — one schema, two surfaces, zero author JS." |
|
||||
| 7 | Seed data is documentation | seed-is-docs | These paragraphs were written as a GFM seed table — the demo content is part of the program. | "Seed rows live beside the schema in db/articles.mq.md. On first boot the host inserts them when the articles table is empty. That means the demo narrative is versioned with the code: longer summaries for cards, fuller bodies for detail pages, and slugs that make deep links stable. Reviewers can open the seed table and see exactly what the venue site will show." |
|
||||
| 8 | Why this Demo matters | why-demo-matters | WWW Demo needs a hands-on artifact reviewers can run, click, and compare to source in minutes. | "A Demo track asks for an implemented system, not a slide-only pitch. This sample is intentionally small: one SQLite table, a handful of routes, and a literary shell — yet it covers the paper claim (tables as the full stack) with a three-step script. Clone the repo, run the web-site sample, click a card, break a form, then open index.mq.md beside the browser. That loop is the publication." |
|
||||
@@ -1,22 +1,37 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: db/index
|
||||
description: Open sqlite, init articles, seed once.
|
||||
title: web-site database lifecycle
|
||||
import:
|
||||
web: ext/web/web.mq.md
|
||||
data: ext/data/db.mq.md
|
||||
articles: articles.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
text: lib/text.mq.md
|
||||
---
|
||||
|
||||
The database entry connects schema and literal seed leaves to the actual data resource. It no longer uses the removed web database constructor. Grant fs.write and plugin with the site directory as --fs-root; the SQLite path is resolved through that native root rather than the process working directory.
|
||||
|
||||
## open
|
||||
|
||||
**store = > web.db url="sqlite:data/site.db"**
|
||||
**fields = > articles.schema**
|
||||
> `store`.init name=articles fields=`fields`
|
||||
**rows = > store.select table="articles" limit=1**
|
||||
1. `rows`
|
||||
*store*
|
||||
2. *
|
||||
**seed = > articles.seed**
|
||||
> `store`.insert table=articles rows=`seed`
|
||||
*store*
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| url | any | None | None selects data/site.db under the site root; tests provide a disposable explicit URI |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | any | Initialized articles database resource with existing rows preserved |
|
||||
|
||||
Use `url`=None to open the site's local database. Create the default data directory through native file operations, then resolve the actual SQLite filename within the granted root. An explicit SQLite path goes through the same root and symlink checks before the native database resource receives it. Other supported database URIs retain their resource-specific backend contract; they are not sandboxed by filesystem permissions.
|
||||
|
||||
The schema reader preserves native field types and nullability. Initialization ensures the table exists, queries one row to distinguish an empty table, and inserts the original demonstration content only into an empty table. An existing or partly populated table is kept unchanged. This is not a column migrator, data repair tool or reason to delete a user's articles. A native connection, schema or insert diagnostic stops the caller before it starts serving.
|
||||
|
||||
For isolated verification choose a caller-owned temporary SQLite file and copy the article data leaf under that granted site root. Keep the returned resource in the same program for subsequent queries. Close the process before cleaning its owned directory; do not run tests against the example's existing data directory.
|
||||
|
||||
1. `url` == None
|
||||
We **[Create only the site's default data directory](fs.make_dirs(path="data"))** and **file = [Resolve its database filename](fs.resolve(path="data/site.db"))** and **url = "sqlite:" + file**.
|
||||
1. [The explicit or default URI selects SQLite](text.starts_with(text=`url`, prefix="sqlite:"))
|
||||
We **file = [Read the selected SQLite path](text.replace(text=`url`, old="sqlite:", new="", count=1))** and **file = [Apply the native file-root policy](fs.resolve(path=`file`))** and **url = "sqlite:" + file**.
|
||||
We **store = [Open the selected actual database resource](data.db(url=`url`))** and **fields = [Read the documented article schema](articles.schema())**.
|
||||
We **[Ensure the table without clearing it](> `store`.init name="articles" fields=`fields`)** and **existing = [Check whether business records already exist](> `store`.select table="articles" limit=1)**.
|
||||
1. not `existing`
|
||||
We **seed = [Read the original demonstration data](articles.seed())** and **[Seed only the empty article table](> `store`.insert table="articles" rows=`seed`)**.
|
||||
Once the selected database is ready, return *store* for the site's resource bindings.
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Shared article form and server validation
|
||||
import:
|
||||
form: ext/data/form.mq.md
|
||||
document: lib/document.mq.md
|
||||
---
|
||||
|
||||
New and Admin place the same article form reference. The serving entry mounts this resource once at article; rendering, validation and actual database submission therefore share field definitions and rules. The public creation path remains public as in the original demonstration, while direct access to the custom desk is role-gated.
|
||||
|
||||
## article
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | any | Insert form with title, slug, summary, Markdown body and original validation limits |
|
||||
|
||||
Grant plugin and fs.read on the site root before mounting. The adjacent literal leaf keeps field/rule data readable without turning the workflow into a data dump. Title and slug are required, with original maxima of 120 and 80 characters. Summary and body remain optional, limited to 500 and 8000 characters. These are server rules even if a caller bypasses browser constraints. Constructing the resource writes no rows and grants no authentication.
|
||||
|
||||
The field types remain text and textarea, retaining the original schema behavior. A rejected submission returns field messages and current CSRF for retry; success returns to the home list, where the current-query resource observes the new row. Keep every updated resource value before mounting; using an older value would lose attached fields or rules.
|
||||
|
||||
We **fields = [Read the actual literal field contract](document.read_table(path="forms.tables.md", title="fields"))** and **rules = [Read the actual literal validation rules](document.read_table(path="forms.tables.md", title="rules"))**.
|
||||
|
||||
We **selected = [Create the actual article insertion resource](form.form(table="articles"))** and **selected = [Attach the readable field records](> `selected`.fields fields=`fields`)** and **selected = [Attach the actual server rules](> `selected`.rules rules=`rules`)**.
|
||||
Return *[Keep submission copy and its successful return target](> `selected`.labels submit="Publish" cancel="Cancel" cancel_href="/")*.
|
||||
@@ -0,0 +1,27 @@
|
||||
# Article form data
|
||||
|
||||
The callable contract is forms.mq.md. These are literal records, not another program or a second submission implementation. Fields map to the existing articles schema; native rendering and server validation consume the same records.
|
||||
|
||||
## fields
|
||||
|
||||
Title and slug are required. Summary and body remain optional, with their original input types.
|
||||
|
||||
| @ | name | label | type | required |
|
||||
|---|---|---|---|---|
|
||||
| 1 | title | Title | text | True |
|
||||
| 2 | slug | Slug | text | True |
|
||||
| 3 | summary | Summary | textarea | False |
|
||||
| 4 | body | Body | textarea | False |
|
||||
|
||||
## rules
|
||||
|
||||
These are the original server rules and error messages; browser hints do not replace them.
|
||||
|
||||
| @ | field | rule | message |
|
||||
|---|---|---|---|
|
||||
| 1 | title | required | Title is required |
|
||||
| 2 | title | max:120 | Title is too long |
|
||||
| 3 | slug | required | Slug is required |
|
||||
| 4 | slug | max:80 | Slug is too long |
|
||||
| 5 | summary | max:500 | Summary is too long |
|
||||
| 6 | body | max:8000 | Body is too long |
|
||||
+41
-204
@@ -1,223 +1,60 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: web-site
|
||||
description: >-
|
||||
WWW Demo sample — GFM tables for shell, schema, forms, styles, and admin.
|
||||
Author business JavaScript: none. Author hand-written .css: none.
|
||||
type: web
|
||||
view: main
|
||||
route: /
|
||||
title: Marqdo Web Site
|
||||
import:
|
||||
layout: components/index.mq.md
|
||||
intro: components/intro.mq.md
|
||||
articles: components/articles.mq.md
|
||||
database: db/index.mq.md
|
||||
forms: forms.mq.md
|
||||
theme: styles/index.mq.md
|
||||
web: ext/web/web.mq.md
|
||||
shell: styles/shell.mq.md
|
||||
nav: components/nav.mq.md
|
||||
side: components/side.mq.md
|
||||
foot: components/foot.mq.md
|
||||
desk: components/desk.mq.md
|
||||
articles: db/articles.mq.md
|
||||
db: db/index.mq.md
|
||||
form: ext/data/form.mq.md
|
||||
auth: ext/security/auth.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
table: lib/table.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
This entry is the executable site handbook. Follow components/index for public and administration geometry, then Markdown leaves, current article resources, the form and database. Five declared Documents retain Home, About, New, Admin and slug detail. Session navigation and server access policy remain separate; the custom desk does not enable the unrelated native administration landing page.
|
||||
|
||||
This Markdown file is both the **site documentation** and the **running app**.
|
||||
Routes, forms, validation, admin pages, and look-and-feel are **GFM tables** —
|
||||
no hand-written business JavaScript and no author .css file.
|
||||
## main
|
||||
|
||||
`home` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Public frame containing the readable introduction and current article cards |
|
||||
|
||||
| src | style |
|
||||
|-----|-------|
|
||||
| nav.`nav` | shell.`topnav` |
|
||||
| side.`side` | shell.`side_panel` |
|
||||
| foot.`foot` | shell.`footer` |
|
||||
Startup assembly reads terminal Markdown and constructs a typed query, without querying or initializing a database. The retained application resource supplies current articles at request time. Shared layout preserves navigation, side rail, footer, SEO, fonts and the compiled literary theme. Follow each imported responsibility rather than rebuilding the complete page here.
|
||||
|
||||
Public shell (nav + side + foot). Desk shell drops the public side rail.
|
||||
We **introduction = [Read the terminal home introduction](intro.nodes(name="home"))** and **cards = [Describe the current article cards](articles.cards())** and **body = [Keep the introduction before the records](table.concat(a=`introduction`, b=`cards`))**.
|
||||
Return *[Place home inside the shared public frame](layout.frame(body=`body`, homepage=True))*.
|
||||
|
||||
`desk_shell` =
|
||||
## serve
|
||||
|
||||
| src | style |
|
||||
|-----|-------|
|
||||
| desk.`nav` | shell.`topnav` |
|
||||
| desk.`foot` | shell.`footer` |
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| root | text | "examples/web-site" | Explicit site discovery directory from the checkout |
|
||||
| port | number | 18081 | Loopback demonstration port |
|
||||
| url | any | None | None uses retained site-root SQLite; tests supply an owned URI |
|
||||
|
||||
List cards: summary + slug link (click through to detail).
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Blocking listener after real data, form, authentication and desk policy bindings |
|
||||
|
||||
`index` =
|
||||
Use `root`="examples/web-site", `port`=18081 and `url`=None from the checkout with --fs-root examples/web-site and plugin,fs.write,network.write. Database initialization preserves existing rows and seeds only an empty table. The original declaration leaves remain unchanged; styles/index projects their selectors onto the recursive View layout and restores the named style properties previously attached by removed compose APIs.
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| title | articles.`articles`.title | shell.`card_title` |
|
||||
| body | articles.`articles`.summary | shell.`card_body` |
|
||||
| href | articles.`articles`.slug | |
|
||||
Theme output is explicitly generated under public/generated before discovery. Preparation reads declared Documents but opens no listener. Mount the same public article form used by New and the desk, attach local fixture authentication, and protect the actual /admin path before listening. Keep every returned application. The admin/demo credentials are local demonstration data; replace the user store and network policy for a real deployment. Shutdown belongs to the supervising caller, not a hidden background process.
|
||||
|
||||
Detail bind for /post/{slug} (full Markdown body).
|
||||
We **store = [Initialize the retained article database](database.open(url=`url`))** and **css = [Compile the actual View theme projection](theme.css())** and **[Create only the explicit generated resource directory](fs.make_dirs(path="public/generated"))** and **[Write the compiled theme through native IO](fs.atomic_write(path="public/generated/theme.css", text=`css`))**.
|
||||
We **app = [Discover the five declared site Documents](web.prepare(root=`root`, host="127.0.0.1", port=`port`, db=`store`, static_dir="public"))** and **article = [Construct one shared server-validation resource](forms.article())** and **app = [Mount the public article submission explicitly](form.mount(app=`app`, id="article", form=`article`))**.
|
||||
|
||||
`detail` =
|
||||
`users` =
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| title | articles.`articles`.title | shell.`card_title` |
|
||||
| body | articles.`articles`.body | |
|
||||
| @ | username | password | role |
|
||||
|---|---|---|---|
|
||||
| 1 | admin | demo | admin |
|
||||
|
||||
`by_slug` =
|
||||
|
||||
| field | op | value |
|
||||
|-------|-----|-------|
|
||||
| slug | = | {slug} |
|
||||
|
||||
Home intro — same bind shape as main (front / back / style).
|
||||
|
||||
`home_intro` =
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| kicker | WWW demo · tables as the full stack | shell.`kicker` |
|
||||
| title | Marqdo | shell.`intro_title` |
|
||||
| lede | "One executable Markdown artifact declares routes, forms, admin pages, and styles — no hand-written business JavaScript, no author .css. Click a card for the full article, then try the three steps below." | shell.`lede` |
|
||||
| claim | 0 author JS | shell.`claim` |
|
||||
| claim | 0 author .css | shell.`claim` |
|
||||
| claim | GFM tables | shell.`claim` |
|
||||
| step | "Click any card — /post/{slug} opens the detail page from the same articles table." | shell.`step` |
|
||||
| step | "Open [New](/new) and submit with an empty title (validation from a rule table)." | shell.`step` |
|
||||
| step | "Open top-nav **Login** (admin / demo), then **Admin** — gated desk with create form + list." | shell.`step` |
|
||||
|
||||
`about_intro` =
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| kicker | about | shell.`kicker` |
|
||||
| title | About | shell.`intro_title` |
|
||||
| lede | "Documentation and the deployed site stay one .mq.md artifact. Layout and theme are GFM style tables in styles/shell.mq.md — structure without hand-written CSS or business JavaScript." | shell.`lede` |
|
||||
| claim | docs = program | shell.`claim` |
|
||||
| claim | server-side rules | shell.`claim` |
|
||||
| claim | hands-on | shell.`claim` |
|
||||
|
||||
`new_intro` =
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| kicker | form · try validation | shell.`kicker` |
|
||||
| title | New article | shell.`intro_title` |
|
||||
| lede | "Leave Title empty and submit — the error comes from the rule table, not client JavaScript. Then fill title, slug, and summary to create a row shared with Admin and the card grid." | shell.`lede` |
|
||||
|
||||
`admin_intro` =
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| kicker | desk · you are in admin | shell.`kicker` |
|
||||
| title | Admin | shell.`intro_title` |
|
||||
| lede | "This is the management desk (login required): same articles schema as the public site, assembled as list + create form — not a separate SPA. Use Site in the topnav to return, or Logout to end the session." | shell.`lede` |
|
||||
| claim | login-gated | shell.`claim` |
|
||||
| claim | table-declared | shell.`claim` |
|
||||
| claim | "create + list" | shell.`claim` |
|
||||
|
||||
`post_intro` =
|
||||
|
||||
| front | back | style |
|
||||
|-------|------|-------|
|
||||
| kicker | article · table-bound detail | shell.`kicker` |
|
||||
|
||||
Article create form: field table + rules table (server-side validation).
|
||||
|
||||
`article_fields` =
|
||||
|
||||
| name | label | type | required | default |
|
||||
|------|-------|------|----------|---------|
|
||||
| title | Title | text | true | |
|
||||
| slug | Slug | text | true | |
|
||||
| summary | Summary | textarea | false | |
|
||||
| body | Body | textarea | false | |
|
||||
|
||||
`article_rules` =
|
||||
|
||||
| field | rule | message |
|
||||
|-------|------|---------|
|
||||
| title | required | Title is required |
|
||||
| title | max:120 | Title is too long |
|
||||
| slug | required | Slug is required |
|
||||
| slug | max:80 | Slug is too long |
|
||||
| summary | max:500 | Summary is too long |
|
||||
| body | max:8000 | Body is too long |
|
||||
|
||||
SEO / Open Graph for the home page (still a table).
|
||||
|
||||
`home_meta` =
|
||||
|
||||
| key | value |
|
||||
|-----|-------|
|
||||
| description | Tables as the full stack — Marqdo Web demo with zero author business JavaScript. |
|
||||
| og:type | website |
|
||||
| og:title | Marqdo Web Site |
|
||||
|
||||
Neat CJK sans for body; Great Vibes for English display.
|
||||
|
||||
`fonts` =
|
||||
|
||||
| rel | href | crossorigin |
|
||||
|-----|------|-------------|
|
||||
| preconnect | https://fonts.googleapis.com | |
|
||||
| preconnect | https://fonts.gstatic.com | anonymous |
|
||||
| stylesheet | https://fonts.googleapis.com/css2?family=Great+Vibes&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;600&display=swap | |
|
||||
|
||||
**store = > db.open**
|
||||
**site_css = > shell.css**
|
||||
|
||||
**page = > web.page title="Marqdo Web Site" shell_css="off"**
|
||||
**page = > page.compose_intro intro=home_intro**
|
||||
**page = > page.meta meta=home_meta**
|
||||
**page = > page.head table=fonts**
|
||||
**page = > page.css css=site_css**
|
||||
**page = > page.compose_components components=home**
|
||||
**page = > page.compose_main main=index**
|
||||
**page = > page.link_prefix prefix="/post/"**
|
||||
|
||||
**about = > web.page title="About · Marqdo Web" shell_css="off"**
|
||||
**about = > about.compose_intro intro=about_intro**
|
||||
**about = > about.head table=fonts**
|
||||
**about = > about.css css=site_css**
|
||||
**about = > about.compose_components components=home**
|
||||
|
||||
**article_form = > web.form table="articles" action="insert"**
|
||||
**article_form = > article_form.fields fields=article_fields**
|
||||
**article_form = > article_form.rules rules=article_rules**
|
||||
|
||||
**new = > web.page title="New article · Marqdo Web" shell_css="off"**
|
||||
**new = > new.compose_intro intro=new_intro**
|
||||
**new = > new.head table=fonts**
|
||||
**new = > new.css css=site_css**
|
||||
**new = > new.compose_components components=home**
|
||||
**new = > new.compose_form id="article" form=article_form**
|
||||
|
||||
**desk = > web.page title="Admin · Marqdo Web" shell_css="off"**
|
||||
**desk = > desk.chrome body_class="is-desk"**
|
||||
**desk = > desk.compose_intro intro=admin_intro**
|
||||
**desk = > desk.head table=fonts**
|
||||
**desk = > desk.css css=site_css**
|
||||
**desk = > desk.compose_components components=desk_shell**
|
||||
**desk = > desk.compose_form id="article" form=article_form**
|
||||
**desk = > desk.compose_main main=index**
|
||||
**desk = > desk.link_prefix prefix="/post/"**
|
||||
|
||||
**post = > web.page title="Article · Marqdo Web" shell_css="off"**
|
||||
**post = > post.compose_intro intro=post_intro**
|
||||
**post = > post.head table=fonts**
|
||||
**post = > post.css css=site_css**
|
||||
**post = > post.compose_components components=home**
|
||||
**post = > post.compose_main main=detail**
|
||||
**post = > post.query query=by_slug**
|
||||
**post = > post.detail detail=True**
|
||||
|
||||
Demo credentials (table-declared users — host session auth, no author JS).
|
||||
|
||||
`admins` =
|
||||
|
||||
| username | password | role |
|
||||
|----------|----------|------|
|
||||
| admin | demo | admin |
|
||||
|
||||
**app = > web.app page=page db=store admin=False host="127.0.0.1" port=18081 shell_css="off" login_redirect="/admin" logout_redirect="/"**
|
||||
**app = > app.route path="/about" page=about**
|
||||
**app = > app.route path="/new" page=new**
|
||||
**app = > app.route path="/admin" page=desk**
|
||||
**app = > app.route path="/post/{slug}" page=post**
|
||||
**app = > app.auth users=admins session_ttl=3600 login_path="/login" login_redirect="/admin" logout_redirect="/"**
|
||||
**app = > app.gate path="/admin" roles="admin" match="prefix" on_deny="redirect" exclude="/login"**
|
||||
> `app`.listen
|
||||
We **app = [Attach native login sessions](auth.attach(app=`app`, users=`users`, login_path="/login", login_redirect="/admin", logout_redirect="/"))** and **app = [Protect direct requests to the custom desk](auth.gate(app=`app`, path="/admin", roles="admin", match="prefix", on_deny="redirect", exclude="/login"))**.
|
||||
Return *[Listen after actual resources and policy are ready](web.listen(app=`app`))*.
|
||||
@@ -0,0 +1,29 @@
|
||||
---
|
||||
markup: occlusion
|
||||
type: web
|
||||
view: main
|
||||
route: /about
|
||||
title: About · Marqdo Web
|
||||
import:
|
||||
layout: ../components/index.mq.md
|
||||
intro: ../components/intro.mq.md
|
||||
articles: ../components/articles.mq.md
|
||||
component: ext/web/component/index.mq.md
|
||||
form: ext/data/form.mq.md
|
||||
table: lib/table.mq.md
|
||||
---
|
||||
|
||||
This Document explicitly declares /about. Its introduction ends in a Markdown leaf and its frame is shared. Request resources retain their own data or submission responsibilities. No startup page function initializes the database or starts another listener.
|
||||
|
||||
## main
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Page-specific content and request resources within the shared frame |
|
||||
|
||||
Assembly reads Markdown with fs.read and creates pure descriptors. This explanation page requires no database query or form reference. Follow the layout imports to change one region without copying a page shell.
|
||||
|
||||
Page structure stays stable while request-dependent resources observe current data and identity. A missing required resource remains a diagnostic rather than a fake successful response.
|
||||
|
||||
We **body = [Read this page's terminal introduction](intro.nodes(name="about"))**.
|
||||
Return *[Place the page in its selected recursive frame](layout.frame(body=`body`, management=False))*.
|
||||
@@ -0,0 +1,31 @@
|
||||
---
|
||||
markup: occlusion
|
||||
type: web
|
||||
view: main
|
||||
route: /admin
|
||||
title: Admin · Marqdo Web
|
||||
import:
|
||||
layout: ../components/index.mq.md
|
||||
intro: ../components/intro.mq.md
|
||||
articles: ../components/articles.mq.md
|
||||
component: ext/web/component/index.mq.md
|
||||
form: ext/data/form.mq.md
|
||||
table: lib/table.mq.md
|
||||
---
|
||||
|
||||
This Document explicitly declares /admin. Its introduction ends in a Markdown leaf and its frame is shared. The serving entry enforces an actual admin role gate before the desk renders. No startup page function initializes the database or starts another listener.
|
||||
|
||||
## main
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Page-specific content and request resources within the shared frame |
|
||||
|
||||
Assembly reads Markdown with fs.read and creates pure descriptors. The server resolves the mounted form using actual session CSRF and return context. It does not embed a stale startup token or a separate copy of validation rules.
|
||||
|
||||
The desk keeps its own navigation and footer and has no public side rail. Its form intentionally shares the public article submission endpoint; gating presentation alone would not make that endpoint private, and the example does not claim otherwise.
|
||||
|
||||
We **body = [Read this page's terminal introduction](intro.nodes(name="desk"))**.
|
||||
We **selected = [Reference the same explicitly mounted article form](form.reference(id="article"))** and **controls = [Retain current request CSRF and validation context](component.resource(value=`selected`, slot="article-form"))** and **body = [Keep instructions before the actual form](table.concat(a=`body`, b=`controls`))**.
|
||||
We **records = [Describe the same current article list](articles.cards())** and **body = [Retain the actual record resource](table.concat(a=`body`, b=`records`))**.
|
||||
Return *[Place the page in its selected recursive frame](layout.frame(body=`body`, management=True))*.
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
markup: occlusion
|
||||
type: web
|
||||
view: main
|
||||
route: /new
|
||||
title: New article · Marqdo Web
|
||||
import:
|
||||
layout: ../components/index.mq.md
|
||||
intro: ../components/intro.mq.md
|
||||
articles: ../components/articles.mq.md
|
||||
component: ext/web/component/index.mq.md
|
||||
form: ext/data/form.mq.md
|
||||
table: lib/table.mq.md
|
||||
---
|
||||
|
||||
This Document explicitly declares /new. Its introduction ends in a Markdown leaf and its frame is shared. Request resources retain their own data or submission responsibilities. No startup page function initializes the database or starts another listener.
|
||||
|
||||
## main
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Page-specific content and request resources within the shared frame |
|
||||
|
||||
Assembly reads Markdown with fs.read and creates pure descriptors. The server resolves the mounted form using actual session CSRF and return context. It does not embed a stale startup token or a separate copy of validation rules.
|
||||
|
||||
Page structure stays stable while request-dependent resources observe current data and identity. A missing required resource remains a diagnostic rather than a fake successful response.
|
||||
|
||||
We **body = [Read this page's terminal introduction](intro.nodes(name="new"))**.
|
||||
We **selected = [Reference the same explicitly mounted article form](form.reference(id="article"))** and **controls = [Retain current request CSRF and validation context](component.resource(value=`selected`, slot="article-form"))** and **body = [Keep instructions before the actual form](table.concat(a=`body`, b=`controls`))**.
|
||||
Return *[Place the page in its selected recursive frame](layout.frame(body=`body`, management=False))*.
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
markup: occlusion
|
||||
type: web
|
||||
view: main
|
||||
route: /post/{slug}
|
||||
title: Article · Marqdo Web
|
||||
import:
|
||||
layout: ../components/index.mq.md
|
||||
intro: ../components/intro.mq.md
|
||||
articles: ../components/articles.mq.md
|
||||
component: ext/web/component/index.mq.md
|
||||
form: ext/data/form.mq.md
|
||||
table: lib/table.mq.md
|
||||
---
|
||||
|
||||
This Document explicitly declares /post/{slug}. Its introduction ends in a Markdown leaf and its frame is shared. Request resources retain their own data or submission responsibilities. No startup page function initializes the database or starts another listener.
|
||||
|
||||
## main
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Page-specific content and request resources within the shared frame |
|
||||
|
||||
Assembly reads Markdown with fs.read and creates pure descriptors. The actual path capture selects the current database record at request time; full Markdown body is separate from list summary, and query strings cannot replace the route slug.
|
||||
|
||||
Page structure stays stable while request-dependent resources observe current data and identity. A missing required resource remains a diagnostic rather than a fake successful response.
|
||||
|
||||
We **body = [Read this page's terminal introduction](intro.nodes(name="post"))**.
|
||||
We **records = [Describe the current full-body slug match](articles.detail())** and **body = [Retain the actual record resource](table.concat(a=`body`, b=`records`))**.
|
||||
Return *[Place the page in its selected recursive frame](layout.frame(body=`body`, management=False))*.
|
||||
@@ -0,0 +1,98 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Literary theme entry for recursive View Documents
|
||||
import:
|
||||
document: lib/document.mq.md
|
||||
web: ext/web/web.mq.md
|
||||
table: lib/table.mq.md
|
||||
text: lib/text.mq.md
|
||||
---
|
||||
|
||||
Read this entry before changing presentation. shell.tables.md retains every original declaration and shell.mq.md can still compile the original CSS. This entry projects only selectors onto the explicit View tree, restores the named property tables formerly attached by compose, and adds the bounded wrapper geometry in view.tables.md. Colors, property values, media conditions, particles and keyframe bodies remain the original data.
|
||||
|
||||
## _selector
|
||||
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| selector | text | required | One original author-controlled selector |
|
||||
| mappings | list | required | Explicit old/new structural addresses read from view.tables.md |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | text | Equivalent selector scoped to the explicit recursive site frame |
|
||||
|
||||
Use `selector` and `mappings` from the actual retained theme and migration leaf. The old body-level sidebar and desk classes now belong to site-layout, while the main region is a section. The mappings preserve Markdown's actual heading, category, badge list and reading steps rather than restoring a private intro-binding dialect.
|
||||
|
||||
Global document backgrounds, root tokens, selection styling, resets and keyframes stay global. Local selectors gain site scope so basic View defaults cannot override the deliberate theme. This is the fixed migration of this known site tree, not a generic CSS parser or visitor-controlled rewrite. The caller reads mappings once per area and passes those rows here, keeping this helper pure and avoiding repeated filesystem reads.
|
||||
|
||||
- [Apply this site's explicit structural address mappings](for mappings as mapping)
|
||||
We **selector = [Replace only the known selector address](text.replace(text=`selector`, old=access(mapping, "old"), new=access(mapping, "new")))**.
|
||||
1. `selector` == "*" or `selector` == "::selection" or text.starts_with(text=`selector`, prefix="body") or text.starts_with(text=`selector`, prefix="html") or text.starts_with(text=`selector`, prefix=":root") or text.starts_with(text=`selector`, prefix="@")
|
||||
Return *selector* because document-level rules and keyframes keep their existing scope.
|
||||
1. text.starts_with(text=`selector`, prefix=".site-layout")
|
||||
Return *[Scope the layout-state selector once](".mq-document " + selector)*.
|
||||
Return *[Keep region selectors within this site's own frame](".mq-document .site-layout " + selector)*.
|
||||
|
||||
|
||||
## _table
|
||||
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| name | text | required | Original vars, motion, layout, responsive, chrome or widgets section |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Original declaration rows with only their selector field projected |
|
||||
|
||||
Use `name` with fs.read under the site root. Native Markdown reading preserves the original table and typed cells; from_columns converts its aligned columns to row records. Every row keeps the same property, value, optional media and original position. Only selector changes, and immutable updates preserve the retained source table.
|
||||
|
||||
This function does not compile or write CSS. Keeping the projected rows callable makes migration evidence inspectable: compare them to the original native table, including keyframe values and media, before looking at browser output. A missing section, ragged column or unsupported literal remains a real diagnostic rather than silently dropping a style. The mapping applies to this known site tree, not arbitrary CSS supplied by a visitor.
|
||||
|
||||
We **mappings = [Read the fixed structural migration table](document.read_table(path="styles/view.tables.md", title="selectors"))**.
|
||||
We **columns = [Read the unchanged declaration leaf](document.read_table(path="styles/shell.tables.md", title=`name`))** and **rows = [Keep each original declaration as a record](table.from_columns(columns=`columns`))** and **projected = [Start the selector projection](table.empty_list())**.
|
||||
- [Retain every declaration in its original position](for rows as row)
|
||||
We **selector = [Project only this row's structural address](_selector(selector=access(row, "selector"), mappings=`mappings`))** and **record = [Keep every other declaration field unchanged](table.put(in=`row`, at="selector", value=`selector`))** and **projected = [Retain this original property and value](table.append(list=`projected`, item=`record`))**.
|
||||
Return *projected* for actual compilation or independent comparison.
|
||||
|
||||
## _property
|
||||
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| name | text | required | Original named property/value section |
|
||||
| selector | text | required | Known semantic target in the new View tree, without leading dot |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | text | Compiled original properties at their explicit new target |
|
||||
|
||||
Use `name` and `selector` with fs.read and plugin. Removed compose operations used to attach these named properties to generated fields. The same declarations now target the native navigation, side/footer, current card classes and terminal Markdown elements. Their values do not change, and they are not inferred from user content.
|
||||
|
||||
The selector is authored by the theme entry and begins with mq-document so the native style compiler supplies its leading class dot. The explicit target makes old property tables useful without restoring an obsolete page-binding dialect. Compilation returns text only; the serving workflow owns the selected generated path and native write.
|
||||
|
||||
We **properties = [Read the original named property declaration](document.read_table(path="styles/shell.tables.md", title=`name`))**.
|
||||
Return *[Compile the known semantic target](web.make_style(name=`selector`, table=`properties`))*.
|
||||
|
||||
## css
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | text | Full View theme with original values, explicit selector projection and wrapper geometry |
|
||||
|
||||
Call with fs.read and plugin on the selected site root. Tokens and keyframes keep their original order, followed by layout, responsive, chrome and widget rules. Named property declarations restore the typography and region surfaces that the old compose calls attached separately. The generated CSS contains no replacement palette or abbreviated theme.
|
||||
|
||||
The final geometry table only adapts the existing runtime wrappers: it removes the basic preview width/font defaults, lets native navigation resources participate in the shared grid, and preserves the explicit sidebar/desk class relationship. Markdown feature bullets become the original flex badge group, and the first explanatory paragraph uses the original lede properties. This keeps the content leaf readable without a hidden HTML template.
|
||||
|
||||
Compilation neither writes the stylesheet nor claims browser acceptance. The serving workflow writes the result once before discovery. Verify the real computed colors, type sizes, wide sidebar, narrow stacked order, current cards and gated desk. If a selector no longer reaches its intended node, repair that mapping rather than deleting the original visual capability.
|
||||
|
||||
We **areas = [Read the preserved theme area order](document.read_table(path="styles/view.tables.md", title="areas"))**.
|
||||
|
||||
We **parts = [Start the actual ordered theme](table.empty_list())**.
|
||||
- [Compile every original theme area](for areas as name)
|
||||
We **rows = [Retain all original values and media](_table(name=`name`))** and **compiled = [Compile the actual projected declarations](web.make_style(name=`name`, table=`rows`))** and **parts = [Keep the original cascade order](table.append(list=`parts`, item=`compiled`))**.
|
||||
|
||||
We **properties = [Read the actual named-property targets](document.read_table(path="styles/view.tables.md", title="properties"))**.
|
||||
|
||||
- [Restore each originally bound property group](for properties as property)
|
||||
We **compiled = [Compile its explicit semantic target](_property(name=access(property, "name"), selector=access(property, "selector")))** and **parts = [Retain that real property group](table.append(list=`parts`, item=`compiled`))**.
|
||||
We **geometry = [Read the bounded View-wrapper adaptation](document.read_table(path="styles/view.tables.md", title="geometry"))** and **compiled = [Compile native geometry adaptation](web.make_style(name="view", table=`geometry`))** and **parts = [Finish with the explicit wrapper rules](table.append(list=`parts`, item=`compiled`))**.
|
||||
Return *[Keep actual compiled sections in order](text.str_join(xs=`parts`, sep=""))*.
|
||||
@@ -1,677 +1,277 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: styles/shell
|
||||
description: >-
|
||||
Literary dark theme for examples/web-site — ink / wine / gold after the
|
||||
anlian.cyou Zhang Ailing topic. GFM tables only; no author .css.
|
||||
title: Retained literary theme declarations
|
||||
import:
|
||||
document: lib/document.mq.md
|
||||
web: ext/web/web.mq.md
|
||||
table: lib/table.mq.md
|
||||
text: lib/text.mq.md
|
||||
---
|
||||
|
||||
Authors style the site with **GFM tables** only. App pages use `shell_css=off`
|
||||
so host defaults do not fight this theme. Palette mirrors
|
||||
[海上花开](https://www.anlian.cyou/topics/author-zhangailing/): night ink,
|
||||
wine, cold gold, serif display.
|
||||
This file retains original declaration readers and original CSS compilation for migration comparison. The current site uses styles/index.mq.md for the actual View projection. Do not mistake an unchanged original hash for proof that new selectors reach their intended nodes. Each literal section remains independently callable.
|
||||
|
||||
## vars
|
||||
|
||||
`vars` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| :root | --ink | #0a0809 |
|
||||
| :root | --ink-lift | #141012 |
|
||||
| :root | --wine | #6b1e3a |
|
||||
| :root | --wine-soft | rgba(107,30,58,0.35) |
|
||||
| :root | --gold | #d4af37 |
|
||||
| :root | --gold-dim | rgba(212,175,55,0.45) |
|
||||
| :root | --gold-soft | rgba(212,175,55,0.12) |
|
||||
| :root | --paper | rgba(255,248,240,0.92) |
|
||||
| :root | --paper-dim | rgba(255,248,240,0.72) |
|
||||
| :root | --paper-faint | rgba(255,248,240,0.48) |
|
||||
| :root | --glass | rgba(20,12,18,0.72) |
|
||||
| :root | --glass-strong | rgba(20,12,18,0.88) |
|
||||
| :root | --border | rgba(212,175,55,0.22) |
|
||||
| :root | --border-soft | rgba(212,175,55,0.12) |
|
||||
| :root | --danger | #e8a0a8 |
|
||||
| :root | --radius | 4px |
|
||||
| :root | --radius-sm | 2px |
|
||||
| :root | --space-2 | 8px |
|
||||
| :root | --space-3 | 12px |
|
||||
| :root | --space-4 | 16px |
|
||||
| :root | --space-5 | 20px |
|
||||
| :root | --space-6 | 24px |
|
||||
| :root | --space-8 | 32px |
|
||||
| :root | --text | 16px |
|
||||
| :root | --leading | "1.75" |
|
||||
| :root | --shadow | "0 24px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06)" |
|
||||
| :root | --shadow-card | "0 12px 40px rgba(107,30,58,.35)" |
|
||||
| :root | --ring | "0 0 0 2px rgba(212,175,55,.35)" |
|
||||
| :root | --serif | "'Noto Serif SC', 'Source Serif 4', Georgia, serif" |
|
||||
| :root | --sans | "'Noto Sans SC', 'IBM Plex Sans', system-ui, sans-serif" |
|
||||
| :root | --display | "'Great Vibes', 'Allura', cursive" |
|
||||
| :root | --mono | "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" |
|
||||
| ::selection | background | rgba(212,175,55,0.35) |
|
||||
| ::selection | color | var(--paper) |
|
||||
Root palette, typefaces, spacing and elevation tokens.
|
||||
|
||||
*`vars`*
|
||||
Compile these declarations before rules that reference their custom properties. The selection-color rows remain global alongside :root; neither the View migration nor a caller should scope those tokens inside one card. Editing a value changes the shared theme, so compare real compiled CSS and browser colors rather than renaming a property locally.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="vars"))*.
|
||||
|
||||
## motion
|
||||
|
||||
`motion` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| @keyframes rise 0% | opacity | "0" |
|
||||
| @keyframes rise 0% | transform | translateY(14px) |
|
||||
| @keyframes rise 100% | opacity | "1" |
|
||||
| @keyframes rise 100% | transform | translateY(0) |
|
||||
| @keyframes float 0% | transform | translateY(0) |
|
||||
| @keyframes float 0% | opacity | "0.7" |
|
||||
| @keyframes float 50% | transform | translateY(6px) |
|
||||
| @keyframes float 50% | opacity | "1" |
|
||||
| @keyframes float 100% | transform | translateY(0) |
|
||||
| @keyframes float 100% | opacity | "0.7" |
|
||||
| @keyframes goldPulse 0% | text-shadow | "0 0 24px rgba(212,175,55,.2)" |
|
||||
| @keyframes goldPulse 50% | text-shadow | "0 0 48px rgba(212,175,55,.45)" |
|
||||
| @keyframes goldPulse 100% | text-shadow | "0 0 24px rgba(212,175,55,.2)" |
|
||||
| @keyframes particleDrift 0% | transform | translate3d(0,0,0) |
|
||||
| @keyframes particleDrift 50% | transform | translate3d(-2.5vw, 1.5vh, 0) |
|
||||
| @keyframes particleDrift 100% | transform | translate3d(0,0,0) |
|
||||
| @keyframes particleDrift2 0% | transform | translate3d(0,0,0) |
|
||||
| @keyframes particleDrift2 50% | transform | translate3d(2vw, -2vh, 0) |
|
||||
| @keyframes particleDrift2 100% | transform | translate3d(0,0,0) |
|
||||
| @keyframes nebulaPulse 0% | opacity | "0.55" |
|
||||
| @keyframes nebulaPulse 50% | opacity | "0.9" |
|
||||
| @keyframes nebulaPulse 100% | opacity | "0.55" |
|
||||
Original entrance, floating, particle and glow keyframes.
|
||||
|
||||
*`motion`*
|
||||
Keyframe selectors and their property values remain global and in their original order. Animation timing belongs to the consuming rule. Reading this data does not schedule an animation; the browser applies the compiled stylesheet. The View projection must not prefix these addresses with a component class.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="motion"))*.
|
||||
|
||||
## layout
|
||||
|
||||
`layout` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| * | box-sizing | border-box |
|
||||
| html | scroll-behavior | smooth |
|
||||
| html | -webkit-text-size-adjust | 100% |
|
||||
| body | margin | "0" |
|
||||
| body | min-height | 100vh |
|
||||
| body | font-family | var(--sans) |
|
||||
| body | font-weight | "400" |
|
||||
| body | font-size | var(--text) |
|
||||
| body | line-height | var(--leading) |
|
||||
| body | color | var(--paper) |
|
||||
| body | background | var(--ink) |
|
||||
| body | background-image | "radial-gradient(ellipse 90% 55% at 50% -15%, rgba(107,30,58,.5), transparent 58%), radial-gradient(ellipse 55% 45% at 92% 75%, rgba(212,175,55,.14), transparent 55%), radial-gradient(ellipse 40% 35% at 8% 70%, rgba(107,30,58,.22), transparent 60%), linear-gradient(180deg, #0a0809 0%, #120c10 45%, #0a0809 100%)" |
|
||||
| body | background-attachment | fixed |
|
||||
| body | display | grid |
|
||||
| body | grid-template-rows | "auto 1fr auto" |
|
||||
| body | -webkit-font-smoothing | antialiased |
|
||||
| body | position | relative |
|
||||
| body | overflow-x | hidden |
|
||||
| body::before | content | '""' |
|
||||
| body::before | position | fixed |
|
||||
| body::before | inset | "0" |
|
||||
| body::before | z-index | "1" |
|
||||
| body::before | pointer-events | none |
|
||||
| body::before | opacity | "0.1" |
|
||||
| body::before | background-image | "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")" |
|
||||
| html::before | content | '""' |
|
||||
| html::before | position | fixed |
|
||||
| html::before | inset | "0" |
|
||||
| html::before | z-index | "0" |
|
||||
| html::before | pointer-events | none |
|
||||
| html::before | background-image | "radial-gradient(ellipse 50% 40% at 15% 30%, rgba(107,30,58,.35), transparent 70%), radial-gradient(ellipse 45% 35% at 85% 60%, rgba(212,175,55,.12), transparent 65%), radial-gradient(ellipse 40% 30% at 50% 90%, rgba(107,30,58,.25), transparent 70%)" |
|
||||
| html::before | animation | "nebulaPulse 12s ease-in-out infinite" |
|
||||
| body::after | content | '""' |
|
||||
| body::after | position | fixed |
|
||||
| body::after | top | "0" |
|
||||
| body::after | left | "0" |
|
||||
| body::after | width | "2px" |
|
||||
| body::after | height | "2px" |
|
||||
| body::after | z-index | "2" |
|
||||
| body::after | pointer-events | none |
|
||||
| body::after | border-radius | 50% |
|
||||
| body::after | background | transparent |
|
||||
| body::after | box-shadow | "82vw 15vh 0px 0px rgba(212,175,55,0.55),29vw 18vh 0px 1px rgba(212,175,55,0.25),95vw 70vh 1px 0px rgba(212,175,55,0.55),4vw 12vh 0px 1px rgba(212,175,55,0.35),78vw 4vh 0px 1px rgba(245,230,200,0.5),84vw 90vh 1px 0px rgba(245,230,200,0.5),58vw 76vh 0px 0px rgba(255,248,240,0.4),90vw 55vh 0px 0px rgba(255,248,240,0.4),28vw 98vh 0px 0px rgba(255,248,240,0.4),49vw 13vh 0px 1px rgba(255,248,240,0.4),34vw 6vh 1px 1px rgba(212,175,55,0.25),16vw 49vh 0px 1px rgba(212,175,55,0.55),80vw 47vh 0px 1px rgba(245,230,200,0.5),9vw 6vh 0px 0px rgba(212,175,55,0.25),11vw 30vh 1px 0px rgba(212,175,55,0.55),59vw 82vh 0px 0px rgba(255,248,240,0.4),46vw 27vh 0px 1px rgba(212,175,55,0.25),88vw 83vh 0px 1px rgba(212,175,55,0.55),94vw 32vh 1px 0px rgba(212,175,55,0.35),35vw 82vh 0px 1px rgba(212,175,55,0.25),42vw 99vh 0px 0px rgba(212,175,55,0.55),41vw 52vh 0px 0px rgba(255,248,240,0.4),73vw 92vh 0px 1px rgba(255,248,240,0.4),64vw 51vh 1px 0px rgba(212,175,55,0.25),34vw 18vh 0px 1px rgba(212,175,55,0.35),75vw 55vh 1px 0px rgba(245,230,200,0.5),29vw 18vh 1px 0px rgba(245,230,200,0.5),97vw 7vh 0px 1px rgba(212,175,55,0.55),21vw 88vh 0px 0px rgba(107,30,58,0.45),49vw 77vh 0px 1px rgba(107,30,58,0.45),2vw 88vh 0px 1px rgba(212,175,55,0.25),69vw 97vh 0px 0px rgba(255,248,240,0.4),38vw 56vh 1px 0px rgba(212,175,55,0.35),93vw 93vh 0px 1px rgba(255,248,240,0.4),14vw 81vh 0px 0px rgba(255,248,240,0.4),48vw 98vh 0px 1px rgba(212,175,55,0.35),42vw 63vh 0px 0px rgba(212,175,55,0.55),40vw 31vh 0px 1px rgba(212,175,55,0.55),11vw 11vh 1px 0px rgba(212,175,55,0.25),98vw 69vh 0px 1px rgba(212,175,55,0.35),61vw 71vh 0px 1px rgba(212,175,55,0.35),78vw 55vh 0px 1px rgba(212,175,55,0.35),40vw 52vh 0px 0px rgba(212,175,55,0.25),67vw 58vh 0px 0px rgba(212,175,55,0.55),9vw 44vh 0px 1px rgba(212,175,55,0.55),29vw 1vh 0px 0px rgba(212,175,55,0.55),9vw 5vh 0px 1px rgba(255,248,240,0.4),31vw 36vh 1px 0px rgba(212,175,55,0.25),70vw 17vh 1px 0px rgba(212,175,55,0.25),61vw 53vh 0px 0px rgba(212,175,55,0.35),85vw 56vh 1px 0px rgba(255,248,240,0.4),60vw 94vh 0px 0px rgba(212,175,55,0.55),52vw 94vh 0px 0px rgba(255,248,240,0.4),25vw 25vh 1px 0px rgba(245,230,200,0.5),55vw 24vh 1px 0px rgba(255,248,240,0.4),10vw 57vh 0px 0px rgba(245,230,200,0.5),84vw 70vh 0px 0px rgba(212,175,55,0.55),22vw 53vh 1px 0px rgba(107,30,58,0.45),52vw 8vh 1px 0px rgba(212,175,55,0.35),50vw 34vh 0px 0px rgba(107,30,58,0.45),90vw 94vh 1px 0px rgba(245,230,200,0.5),25vw 38vh 0px 1px rgba(212,175,55,0.35),95vw 70vh 0px 0px rgba(212,175,55,0.55),7vw 75vh 0px 0px rgba(107,30,58,0.45),66vw 11vh 0px 1px rgba(212,175,55,0.35),9vw 87vh 1px 0px rgba(212,175,55,0.35),73vw 32vh 0px 1px rgba(245,230,200,0.5),11vw 54vh 0px 0px rgba(212,175,55,0.25),27vw 86vh 0px 0px rgba(212,175,55,0.25),34vw 51vh 0px 0px rgba(212,175,55,0.35),41vw 97vh 0px 0px rgba(212,175,55,0.55),80vw 73vh 0px 1px rgba(212,175,55,0.55)" |
|
||||
| body::after | animation | "particleDrift 48s ease-in-out infinite" |
|
||||
| html::after | content | '""' |
|
||||
| html::after | position | fixed |
|
||||
| html::after | top | "0" |
|
||||
| html::after | left | "0" |
|
||||
| html::after | width | "1px" |
|
||||
| html::after | height | "1px" |
|
||||
| html::after | z-index | "2" |
|
||||
| html::after | pointer-events | none |
|
||||
| html::after | border-radius | 50% |
|
||||
| html::after | background | transparent |
|
||||
| html::after | box-shadow | "28vw 65vh 0 0 rgba(255,248,240,0.25),17vw 45vh 0 0 rgba(212,175,55,0.3),32vw 48vh 0 0 rgba(255,248,240,0.25),21vw 57vh 0 0 rgba(107,30,58,0.3),91vw 39vh 0 0 rgba(107,30,58,0.3),84vw 68vh 0 0 rgba(212,175,55,0.3),86vw 71vh 0 0 rgba(255,248,240,0.25),85vw 14vh 0 0 rgba(212,175,55,0.3),34vw 15vh 0 0 rgba(212,175,55,0.3),96vw 71vh 0 0 rgba(212,175,55,0.3),35vw 37vh 0 0 rgba(107,30,58,0.3),27vw 92vh 0 0 rgba(255,248,240,0.25),27vw 88vh 0 0 rgba(107,30,58,0.3),34vw 65vh 0 0 rgba(255,248,240,0.25),33vw 7vh 0 0 rgba(212,175,55,0.3),82vw 55vh 0 0 rgba(255,248,240,0.25),6vw 1vh 0 0 rgba(255,248,240,0.25),99vw 17vh 0 0 rgba(107,30,58,0.3),34vw 21vh 0 0 rgba(107,30,58,0.3),57vw 71vh 0 0 rgba(107,30,58,0.3),55vw 72vh 0 0 rgba(212,175,55,0.3),15vw 10vh 0 0 rgba(107,30,58,0.3),20vw 70vh 0 0 rgba(212,175,55,0.3),48vw 75vh 0 0 rgba(107,30,58,0.3),19vw 56vh 0 0 rgba(212,175,55,0.3),6vw 40vh 0 0 rgba(255,248,240,0.25),6vw 46vh 0 0 rgba(212,175,55,0.3),88vw 32vh 0 0 rgba(107,30,58,0.3),14vw 46vh 0 0 rgba(107,30,58,0.3),53vw 80vh 0 0 rgba(107,30,58,0.3),20vw 31vh 0 0 rgba(212,175,55,0.3),23vw 53vh 0 0 rgba(212,175,55,0.3),23vw 95vh 0 0 rgba(255,248,240,0.25),53vw 86vh 0 0 rgba(107,30,58,0.3),32vw 35vh 0 0 rgba(212,175,55,0.3),90vw 14vh 0 0 rgba(255,248,240,0.25),5vw 61vh 0 0 rgba(212,175,55,0.3),26vw 59vh 0 0 rgba(255,248,240,0.25),40vw 30vh 0 0 rgba(212,175,55,0.3),4vw 85vh 0 0 rgba(212,175,55,0.3),52vw 43vh 0 0 rgba(255,248,240,0.25),9vw 99vh 0 0 rgba(255,248,240,0.25),45vw 83vh 0 0 rgba(107,30,58,0.3),52vw 87vh 0 0 rgba(107,30,58,0.3),43vw 4vh 0 0 rgba(212,175,55,0.3),34vw 23vh 0 0 rgba(107,30,58,0.3),34vw 5vh 0 0 rgba(212,175,55,0.3),77vw 56vh 0 0 rgba(255,248,240,0.25)" |
|
||||
| html::after | animation | "particleDrift2 64s ease-in-out infinite" |
|
||||
| body.has-sidebar | grid-template-columns | "14rem minmax(0, 1fr)" |
|
||||
| body.has-sidebar | grid-template-areas | '"top top" "side main" "foot foot"' |
|
||||
| body.no-sidebar | grid-template-areas | '"top" "main" "foot"' |
|
||||
| body.layout-stacked | grid-template-areas | '"top" "main" "foot"' |
|
||||
| body.is-desk | grid-template-areas | '"top" "main" "foot"' |
|
||||
| header.topnav | grid-area | top |
|
||||
| aside.side | grid-area | side |
|
||||
| main.main | grid-area | main |
|
||||
| footer.foot | grid-area | foot |
|
||||
| header.topnav | position | relative |
|
||||
| header.topnav | z-index | "20" |
|
||||
| aside.side | position | relative |
|
||||
| aside.side | z-index | "10" |
|
||||
| main.main | position | relative |
|
||||
| main.main | z-index | "10" |
|
||||
| footer.foot | position | relative |
|
||||
| footer.foot | z-index | "10" |
|
||||
| main.main | width | "100%" |
|
||||
| main.main | max-width | "min(78rem, 100%)" |
|
||||
| main.main | padding | "var(--space-8) var(--space-6) 4rem" |
|
||||
| main.main | animation | "rise .8s cubic-bezier(.22,1,.36,1) both" |
|
||||
| a | color | var(--gold) |
|
||||
| a | text-decoration | none |
|
||||
| a | transition | color 0.25s ease |
|
||||
| a:hover | color | #f5e6c8 |
|
||||
| code | font-family | var(--mono) |
|
||||
| code | font-size | "0.82em" |
|
||||
| code | font-weight | "400" |
|
||||
| code | background | rgba(0,0,0,0.35) |
|
||||
| code | border | 1px solid var(--border-soft) |
|
||||
| code | padding | "0.12em 0.45em" |
|
||||
| code | border-radius | var(--radius-sm) |
|
||||
| code | color | var(--gold) |
|
||||
Document background, typography and original region-grid declarations.
|
||||
|
||||
*`layout`*
|
||||
The original body layout classes describe the old page shell. Current View use projects those known addresses to the explicit site-layout region through styles/index; their property values remain unchanged. Keep document-level backgrounds and particle layers global, and compare actual wide/narrow geometry after any edit.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="layout"))*.
|
||||
|
||||
## responsive
|
||||
|
||||
`responsive` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| media | selector | property | value |
|
||||
|-------|----------|----------|-------|
|
||||
| (max-width: 860px) | body.has-sidebar | grid-template-columns | 1fr |
|
||||
| (max-width: 860px) | body.has-sidebar | grid-template-areas | '"top" "main" "side" "foot"' |
|
||||
| (max-width: 860px) | aside.side | border-right | "0" |
|
||||
| (max-width: 860px) | aside.side | border-top | 1px solid var(--border-soft) |
|
||||
| (max-width: 860px) | main.main | padding | "var(--space-6) var(--space-4) var(--space-8)" |
|
||||
| (max-width: 860px) | .content.cards | grid-template-columns | 1fr |
|
||||
| (max-width: 860px) | .site-form form | grid-template-columns | 1fr |
|
||||
| (max-width: 860px) | .site-form label:nth-child(1) | grid-column | "1 / -1" |
|
||||
| (max-width: 860px) | .site-form label:nth-child(2) | grid-column | "1 / -1" |
|
||||
| (max-width: 860px) | header.topnav | padding | "0.85rem var(--space-4)" |
|
||||
| (max-width: 860px) | .intro_title | font-size | "2.4rem" |
|
||||
| (prefers-reduced-motion: reduce) | main.main | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | .kicker | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | article.card | transition | none |
|
||||
| (prefers-reduced-motion: reduce) | body::after | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | html::after | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | html::before | animation | none |
|
||||
Original media-conditioned layout and reduced-motion rows.
|
||||
|
||||
*`responsive`*
|
||||
These rows retain media text as a separate column. Width conditions collapse the public grid and change padding; prefers-reduced-motion disables selected animation without deleting its keyframes. Preserve row ordering and media alongside the value, rather than checking only that a selector name still appears in CSS.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="responsive"))*.
|
||||
|
||||
## topnav
|
||||
|
||||
`topnav` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| position | sticky |
|
||||
| top | "0" |
|
||||
| z-index | "40" |
|
||||
| display | flex |
|
||||
| align-items | center |
|
||||
| justify-content | flex-start |
|
||||
| gap | var(--space-4) |
|
||||
| padding | "1rem var(--space-6)" |
|
||||
| background | "linear-gradient(180deg, rgba(10,8,9,.92) 0%, rgba(10,8,9,.55) 70%, transparent 100%)" |
|
||||
| backdrop-filter | blur(10px) |
|
||||
| -webkit-backdrop-filter | blur(10px) |
|
||||
| border-bottom | 1px solid var(--border-soft) |
|
||||
Named property/value declarations for the top navigation surface.
|
||||
|
||||
*`topnav`*
|
||||
The original sticky positioning, gradient, blur, spacing and border are still applied to the native topnav class. Links and their current-session conditions belong to the navigation resource. A property table cannot authenticate a visitor or make a route exist, and compiling it does not mount a stylesheet.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="topnav"))*.
|
||||
|
||||
## side_panel
|
||||
|
||||
`side_panel` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| background | "rgba(10,8,9,.55)" |
|
||||
| padding | "var(--space-6) var(--space-4)" |
|
||||
| border-right | 1px solid var(--border-soft) |
|
||||
Named property/value declarations for the public side rail.
|
||||
|
||||
*`side_panel`*
|
||||
The side rail's background, padding and separator distinguish task links from article content. Its external grid position belongs to the parent frame, and the desk intentionally omits it. Keep this visual responsibility separate from the link table and from the native session policy.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="side_panel"))*.
|
||||
|
||||
## footer
|
||||
|
||||
`footer` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| color | var(--paper-faint) |
|
||||
| font-size | "0.8rem" |
|
||||
| letter-spacing | "0.08em" |
|
||||
| padding | "var(--space-5) var(--space-6)" |
|
||||
| border-top | 1px solid var(--border-soft) |
|
||||
| background | "rgba(10,8,9,.75)" |
|
||||
Named property/value declarations for the closing region.
|
||||
|
||||
*`footer`*
|
||||
These values retain the original footer color, type size, spacing, border and background. The Markdown footer owns actual destinations; this table neither creates links nor starts logout. The same surface properties can style public and desk footers while their terminal content stays separate.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="footer"))*.
|
||||
|
||||
## card_title
|
||||
|
||||
`card_title` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| font-family | var(--serif) |
|
||||
| font-size | "1.15rem" |
|
||||
| font-weight | "600" |
|
||||
| margin | "0 0 var(--space-2)" |
|
||||
| color | var(--gold) |
|
||||
| letter-spacing | "0.02em" |
|
||||
| line-height | "1.35" |
|
||||
Named property/value typography for article-card headings.
|
||||
|
||||
*`card_title`*
|
||||
The current-query renderer escapes article titles and retains its native h2 structure. The View theme targets that structure with these original properties, rather than returning to front/back page bindings. This reader does not query articles, truncate titles or modify their stored text.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="card_title"))*.
|
||||
|
||||
## card_body
|
||||
|
||||
`card_body` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| color | var(--paper-dim) |
|
||||
| margin | "0" |
|
||||
| line-height | "1.65" |
|
||||
| font-size | "0.9rem" |
|
||||
| font-weight | "400" |
|
||||
| display | "-webkit-box" |
|
||||
| -webkit-box-orient | vertical |
|
||||
| -webkit-line-clamp | "3" |
|
||||
| overflow | hidden |
|
||||
Named property/value typography for card summaries.
|
||||
|
||||
*`card_body`*
|
||||
Summary data belongs to the current article query, and full Markdown body remains reserved for detail. These properties affect only appearance; they do not choose or replace content. After changing the selector target, verify that both escaped summaries and full article bodies keep their separate behavior.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="card_body"))*.
|
||||
|
||||
## chrome
|
||||
|
||||
Panel + claim/steps group layout (field look comes from named bind styles).
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
`chrome` =
|
||||
Original introduction panels, badge container, reading steps and full-article rules.
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| .main-intro | background | var(--glass) |
|
||||
| .main-intro | border | 1px solid var(--border) |
|
||||
| .main-intro | border-radius | var(--radius) |
|
||||
| .main-intro | padding | "2.25rem 1.75rem 1.85rem" |
|
||||
| .main-intro | box-shadow | var(--shadow) |
|
||||
| .main-intro | backdrop-filter | blur(16px) |
|
||||
| .main-intro | -webkit-backdrop-filter | blur(16px) |
|
||||
| .main-intro | margin-bottom | var(--space-8) |
|
||||
| .main-intro > .claim | display | flex |
|
||||
| .main-intro > .claim | flex-wrap | wrap |
|
||||
| .main-intro > .claim | gap | var(--space-2) |
|
||||
| .main-intro > .claim | margin | "0 0 var(--space-6)" |
|
||||
| .main-intro > .steps | margin | "0" |
|
||||
| .main-intro > .steps | padding | "var(--space-5) var(--space-5) var(--space-5) 1.5rem" |
|
||||
| .main-intro > .steps | color | var(--paper-dim) |
|
||||
| .main-intro > .steps | background | "rgba(0,0,0,.35)" |
|
||||
| .main-intro > .steps | border | 1px solid var(--border-soft) |
|
||||
| .main-intro > .steps | border-left | 2px solid var(--gold-dim) |
|
||||
| .main-intro > .steps | border-radius | var(--radius) |
|
||||
| .main-intro > .steps | font-size | "0.95rem" |
|
||||
| .main-intro > .steps | letter-spacing | "0.02em" |
|
||||
| .main-intro > .steps a | color | var(--gold) |
|
||||
| .main-intro > .steps a | font-weight | "500" |
|
||||
| .main-intro > .steps a:hover | color | #f5e6c8 |
|
||||
| .article | background | var(--glass) |
|
||||
| .article | border | 1px solid var(--border) |
|
||||
| .article | border-radius | var(--radius) |
|
||||
| .article | padding | "2rem 1.75rem" |
|
||||
| .article | box-shadow | var(--shadow) |
|
||||
| .article | backdrop-filter | blur(16px) |
|
||||
| .article | -webkit-backdrop-filter | blur(16px) |
|
||||
| .article-title | font-family | var(--serif) |
|
||||
| .article-title | font-size | "clamp(1.75rem, 4vw, 2.35rem)" |
|
||||
| .article-title | font-weight | "600" |
|
||||
| .article-title | color | var(--gold) |
|
||||
| .article-title | letter-spacing | "0.04em" |
|
||||
| .article-title | margin | "0 0 var(--space-5)" |
|
||||
| .article-title | line-height | "1.25" |
|
||||
| .article-body | color | var(--paper-dim) |
|
||||
| .article-body | font-family | var(--sans) |
|
||||
| .article-body | font-size | "1.02rem" |
|
||||
| .article-body | line-height | "1.85" |
|
||||
| .article-body.md p | margin | "0 0 1.1rem" |
|
||||
| .article-body.md a | color | var(--gold) |
|
||||
| article.card | cursor | pointer |
|
||||
| a.card-link | color | inherit |
|
||||
| a.card-link | text-decoration | none |
|
||||
| a.card-link:hover | color | inherit |
|
||||
Current introductions are terminal Markdown, so the View mapping addresses real headings, bullets and ordered lists. Article selectors continue to match the native detail renderer. Keep those mappings explicit and retain the original values; do not hide layout inside authored HTML to recover an old selector.
|
||||
|
||||
*`chrome`*
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="chrome"))*.
|
||||
|
||||
## kicker
|
||||
|
||||
`kicker` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| letter-spacing | "0.32em" |
|
||||
| text-transform | uppercase |
|
||||
| font-size | "0.72rem" |
|
||||
| color | var(--gold-dim) |
|
||||
| margin | "0 0 var(--space-4)" |
|
||||
| font-weight | "400" |
|
||||
| font-family | var(--sans) |
|
||||
| animation | "float 2.8s ease-in-out infinite" |
|
||||
Named property/value typography for the introduction category.
|
||||
|
||||
*`kicker`*
|
||||
The original letter spacing, color, small type and floating animation target the Markdown blockquote used for the category. Its content remains an ordinary readable line in the leaf. Compiling these properties does not create that content or make the browser fetch a font.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="kicker"))*.
|
||||
|
||||
## intro_title
|
||||
|
||||
`intro_title` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| font-family | var(--display) |
|
||||
| font-size | "clamp(3rem, 10vw, 4.8rem)" |
|
||||
| font-weight | "400" |
|
||||
| line-height | "1.15" |
|
||||
| letter-spacing | "0.04em" |
|
||||
| margin | "0 0 var(--space-4)" |
|
||||
| color | transparent |
|
||||
| background | "linear-gradient(135deg, #f5e6c8 0%, var(--gold) 42%, var(--wine) 100%)" |
|
||||
| -webkit-background-clip | text |
|
||||
| background-clip | text |
|
||||
| animation | "goldPulse 4.5s ease-in-out infinite" |
|
||||
Named property/value typography for the primary introduction heading.
|
||||
|
||||
*`intro_title`*
|
||||
These declarations retain the display font, responsive size, gradient text and glow animation. The View theme applies them to the actual Markdown h1, avoiding an extra heading-size multiplier on a wrapper. Browser validation checks the computed font family and size; reading this table alone cannot prove rendering.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="intro_title"))*.
|
||||
|
||||
## lede
|
||||
|
||||
`lede` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| color | var(--paper-dim) |
|
||||
| max-width | "34rem" |
|
||||
| line-height | "1.85" |
|
||||
| margin | "0 0 var(--space-5)" |
|
||||
| font-size | "1.05rem" |
|
||||
| letter-spacing | "0.02em" |
|
||||
| font-weight | "400" |
|
||||
| font-family | var(--sans) |
|
||||
Named property/value typography for supporting introduction prose.
|
||||
|
||||
*`lede`*
|
||||
The original width, line height, color, spacing and typeface target the leaf's explanatory paragraph. It remains separate from claim bullets and numbered steps. Keep the selector on the real paragraph rather than styling a wrapper and relying on browser default margins to approximate the old appearance.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="lede"))*.
|
||||
|
||||
## claim
|
||||
|
||||
`claim` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| display | inline-flex |
|
||||
| align-items | center |
|
||||
| padding | "0.2rem 0.65rem" |
|
||||
| border-radius | var(--radius-sm) |
|
||||
| background | var(--wine-soft) |
|
||||
| color | #f0c9d4 |
|
||||
| font-size | "0.68rem" |
|
||||
| font-weight | "500" |
|
||||
| letter-spacing | "0.14em" |
|
||||
| border | 1px solid rgba(107,30,58,0.5) |
|
||||
Named property/value declarations for each short feature badge.
|
||||
|
||||
*`claim`*
|
||||
The Markdown bullet list is the original flex badge container, while each item receives these original inline badge properties. The container's gap and wrapping belong to the chrome section. This distinction preserves both readable list content and the actual visual grouping without another binding-table language.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="claim"))*.
|
||||
|
||||
## step
|
||||
|
||||
`step` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| margin | "0.55rem 0" |
|
||||
Original margin declaration for one guided-reading step.
|
||||
|
||||
*`step`*
|
||||
This section has a single property row, so its native result contains scalar cells rather than aligned lists. The same style compiler accepts that shape. The ordered Markdown list owns step numbering and links; this value only supplies the original per-item spacing and does not reorder the reading sequence.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="step"))*.
|
||||
|
||||
## widgets
|
||||
|
||||
`widgets` =
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Original selector/property/value and optional media table, retaining column or single-row scalar shape |
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| ul.nav | display | flex |
|
||||
| ul.nav | flex-wrap | wrap |
|
||||
| ul.nav | align-items | center |
|
||||
| ul.nav | gap | "0.35rem 1rem" |
|
||||
| ul.nav | list-style | none |
|
||||
| ul.nav | margin | "0" |
|
||||
| ul.nav | padding | "0" |
|
||||
| ul.nav a | display | inline-flex |
|
||||
| ul.nav a | align-items | center |
|
||||
| ul.nav a | text-decoration | none |
|
||||
| ul.nav a | color | var(--paper-dim) |
|
||||
| ul.nav a | padding | "0.35rem 0" |
|
||||
| ul.nav a | border-radius | "0" |
|
||||
| ul.nav a | font-weight | "400" |
|
||||
| ul.nav a | font-size | "0.8rem" |
|
||||
| ul.nav a | letter-spacing | "0.14em" |
|
||||
| ul.nav a | transition | color 0.25s ease |
|
||||
| ul.nav a:hover | background | transparent |
|
||||
| ul.nav a:hover | color | var(--gold) |
|
||||
| ul.nav a:hover | text-decoration | none |
|
||||
| ul.nav a[href="/admin"] | color | var(--gold) |
|
||||
| ul.nav a[href="/admin"] | letter-spacing | "0.18em" |
|
||||
| ul.nav a[href="/admin"] | border-bottom | 1px solid var(--gold-dim) |
|
||||
| ul.side-nav a[href="/admin"] | color | var(--gold) |
|
||||
| body.is-desk header.topnav | border-bottom | 1px solid rgba(107,30,58,0.55) |
|
||||
| body.is-desk header.topnav | box-shadow | "0 12px 40px rgba(107,30,58,.18)" |
|
||||
| body.is-desk .main-intro | border-left | 3px solid var(--wine) |
|
||||
| body.is-desk .site-form | border-color | rgba(107,30,58,0.45) |
|
||||
| body.is-desk .site-form | box-shadow | "0 0 0 1px rgba(212,175,55,.12), 0 18px 48px rgba(0,0,0,.35)" |
|
||||
| body.is-desk .content.cards | margin-top | var(--space-6) |
|
||||
| ul.nav li:first-child a | font-family | var(--display) |
|
||||
| ul.nav li:first-child a | font-weight | "400" |
|
||||
| ul.nav li:first-child a | color | var(--gold) |
|
||||
| ul.nav li:first-child a | font-size | "1.85rem" |
|
||||
| ul.nav li:first-child a | letter-spacing | "0.06em" |
|
||||
| ul.nav li:first-child a | padding | "0.1rem 0.2rem 0.1rem 0" |
|
||||
| ul.nav li:first-child a:hover | background | transparent |
|
||||
| ul.nav li:first-child a:hover | color | #f5e6c8 |
|
||||
| .side-label | display | block |
|
||||
| .side-label | font-size | "0" |
|
||||
| .side-label | margin | "0 0 var(--space-4)" |
|
||||
| .side-label::before | content | '"Path"' |
|
||||
| .side-label::before | display | block |
|
||||
| .side-label::before | font-size | "0.68rem" |
|
||||
| .side-label::before | letter-spacing | "0.28em" |
|
||||
| .side-label::before | text-transform | uppercase |
|
||||
| .side-label::before | color | var(--gold-dim) |
|
||||
| .side-label::before | font-weight | "400" |
|
||||
| ul.side-nav | list-style | none |
|
||||
| ul.side-nav | margin | "0" |
|
||||
| ul.side-nav | padding | "0" |
|
||||
| ul.side-nav | display | grid |
|
||||
| ul.side-nav | gap | "2px" |
|
||||
| ul.side-nav | border-left | 1px solid var(--border) |
|
||||
| ul.side-nav | padding-left | "0.85rem" |
|
||||
| ul.side-nav | margin-left | "0.25rem" |
|
||||
| ul.side-nav a | display | block |
|
||||
| ul.side-nav a | text-decoration | none |
|
||||
| ul.side-nav a | color | var(--paper-dim) |
|
||||
| ul.side-nav a | padding | "0.45rem 0.35rem" |
|
||||
| ul.side-nav a | border-radius | "0" |
|
||||
| ul.side-nav a | font-weight | "400" |
|
||||
| ul.side-nav a | font-size | "0.88rem" |
|
||||
| ul.side-nav a | letter-spacing | "0.06em" |
|
||||
| ul.side-nav a | border | "0" |
|
||||
| ul.side-nav a | position | relative |
|
||||
| ul.side-nav a:hover | background | transparent |
|
||||
| ul.side-nav a:hover | border-color | transparent |
|
||||
| ul.side-nav a:hover | color | var(--gold) |
|
||||
| ul.side-nav a:hover | text-decoration | none |
|
||||
| ul.side-nav a:hover | box-shadow | none |
|
||||
| ul.foot-nav | display | flex |
|
||||
| ul.foot-nav | gap | var(--space-4) |
|
||||
| ul.foot-nav | list-style | none |
|
||||
| ul.foot-nav | margin | "0" |
|
||||
| ul.foot-nav | padding | "0" |
|
||||
| ul.foot-nav a | color | var(--paper-faint) |
|
||||
| ul.foot-nav a | font-weight | "400" |
|
||||
| ul.foot-nav a | letter-spacing | "0.1em" |
|
||||
| ul.foot-nav a | font-size | "0.78rem" |
|
||||
| ul.foot-nav a:hover | color | var(--gold) |
|
||||
| .content.cards | display | grid |
|
||||
| .content.cards | gap | var(--space-4) |
|
||||
| .content.cards | margin-top | "0" |
|
||||
| .content.cards | grid-template-columns | "repeat(auto-fill, minmax(16rem, 1fr))" |
|
||||
| article.card | background | "rgba(0,0,0,.35)" |
|
||||
| article.card | border | 1px solid var(--border-soft) |
|
||||
| article.card | border-radius | var(--radius-sm) |
|
||||
| article.card | padding | "1.35rem 1.15rem" |
|
||||
| article.card | box-shadow | none |
|
||||
| article.card | transition | "border-color .35s ease, box-shadow .35s ease, transform .35s ease" |
|
||||
| article.card:hover | transform | "translateY(-3px)" |
|
||||
| article.card:hover | box-shadow | var(--shadow-card) |
|
||||
| article.card:hover | border-color | var(--gold-dim) |
|
||||
| .site-form | background | var(--glass) |
|
||||
| .site-form | border | 1px solid var(--border) |
|
||||
| .site-form | border-radius | var(--radius) |
|
||||
| .site-form | padding | "var(--space-6) var(--space-6) var(--space-7, 1.75rem)" |
|
||||
| .site-form | margin | "0 0 var(--space-6)" |
|
||||
| .site-form | max-width | "100%" |
|
||||
| .site-form | width | "100%" |
|
||||
| .site-form | box-shadow | var(--shadow) |
|
||||
| .site-form | backdrop-filter | blur(16px) |
|
||||
| .site-form | -webkit-backdrop-filter | blur(16px) |
|
||||
| .site-form .meta | display | none |
|
||||
| .site-form form | display | grid |
|
||||
| .site-form form | grid-template-columns | "minmax(0, 1fr) minmax(0, 1fr)" |
|
||||
| .site-form form | column-gap | var(--space-5) |
|
||||
| .site-form form | row-gap | var(--space-5) |
|
||||
| .site-form form | gap | var(--space-5) |
|
||||
| .site-form form | margin | "0" |
|
||||
| .site-form form | width | "100%" |
|
||||
| .site-form form | max-width | "100%" |
|
||||
| .site-form label | display | grid |
|
||||
| .site-form label | gap | var(--space-2) |
|
||||
| .site-form label | margin | "0" |
|
||||
| .site-form label | min-width | "0" |
|
||||
| .site-form label | font-weight | "400" |
|
||||
| .site-form label | color | var(--gold) |
|
||||
| .site-form label | font-size | "0.78rem" |
|
||||
| .site-form label | letter-spacing | "0.16em" |
|
||||
| .site-form label | text-transform | uppercase |
|
||||
| .site-form label:nth-child(1) | grid-column | "1" |
|
||||
| .site-form label:nth-child(2) | grid-column | "2" |
|
||||
| .site-form label:nth-child(n+3) | grid-column | "1 / -1" |
|
||||
| .site-form .actions | grid-column | "1 / -1" |
|
||||
| .site-form input | -webkit-appearance | none |
|
||||
| .site-form textarea | -webkit-appearance | none |
|
||||
| .site-form input | appearance | none |
|
||||
| .site-form textarea | appearance | none |
|
||||
| .site-form input | box-sizing | border-box |
|
||||
| .site-form textarea | box-sizing | border-box |
|
||||
| .site-form input | display | block |
|
||||
| .site-form textarea | display | block |
|
||||
| .site-form input | width | "100%" |
|
||||
| .site-form textarea | width | "100%" |
|
||||
| .site-form input | height | "2.75rem" |
|
||||
| .site-form textarea | min-height | "10rem" |
|
||||
| .site-form label:nth-child(4) textarea | min-height | "14rem" |
|
||||
| .site-form textarea | resize | vertical |
|
||||
| .site-form input | padding | "0 0.9rem" |
|
||||
| .site-form textarea | padding | "0.75rem 0.9rem" |
|
||||
| .site-form input | border | 1px solid var(--border) |
|
||||
| .site-form textarea | border | 1px solid var(--border) |
|
||||
| .site-form input | border-radius | var(--radius-sm) |
|
||||
| .site-form textarea | border-radius | var(--radius-sm) |
|
||||
| .site-form input | background | "rgba(0,0,0,.4)" |
|
||||
| .site-form textarea | background | "rgba(0,0,0,.4)" |
|
||||
| .site-form input | color | var(--paper) |
|
||||
| .site-form textarea | color | var(--paper) |
|
||||
| .site-form input | font | inherit |
|
||||
| .site-form textarea | font | inherit |
|
||||
| .site-form input | font-size | "0.95rem" |
|
||||
| .site-form textarea | font-size | "0.95rem" |
|
||||
| .site-form input | line-height | "1.4" |
|
||||
| .site-form textarea | line-height | "1.65" |
|
||||
| .site-form input | transition | "border-color .2s ease, box-shadow .2s ease" |
|
||||
| .site-form textarea | transition | "border-color .2s ease, box-shadow .2s ease" |
|
||||
| .site-form input:hover | border-color | var(--gold-dim) |
|
||||
| .site-form textarea:hover | border-color | var(--gold-dim) |
|
||||
| .site-form input:focus | outline | none |
|
||||
| .site-form textarea:focus | outline | none |
|
||||
| .site-form input:focus | border-color | var(--gold) |
|
||||
| .site-form textarea:focus | border-color | var(--gold) |
|
||||
| .site-form input:focus | box-shadow | var(--ring) |
|
||||
| .site-form textarea:focus | box-shadow | var(--ring) |
|
||||
| .site-form input[readonly] | background | "rgba(0,0,0,.25)" |
|
||||
| .site-form input[readonly] | color | var(--paper-faint) |
|
||||
| .site-form .err | color | var(--danger) |
|
||||
| .site-form .err | font-size | "0.8rem" |
|
||||
| .site-form .err | font-weight | "500" |
|
||||
| .site-form .err | letter-spacing | "0.04em" |
|
||||
| .site-form .actions | display | flex |
|
||||
| .site-form .actions | align-items | center |
|
||||
| .site-form .actions | gap | var(--space-4) |
|
||||
| .site-form .actions | margin-top | var(--space-2) |
|
||||
| .site-form .actions | flex-wrap | wrap |
|
||||
| .site-form button | -webkit-appearance | none |
|
||||
| .site-form button | appearance | none |
|
||||
| .site-form button | height | "2.75rem" |
|
||||
| .site-form button | padding | "0 1.35rem" |
|
||||
| .site-form button | background | "linear-gradient(135deg, #f5e6c8, var(--gold))" |
|
||||
| .site-form button | color | var(--ink) |
|
||||
| .site-form button | border | "0" |
|
||||
| .site-form button | border-radius | 999px |
|
||||
| .site-form button | font-weight | "600" |
|
||||
| .site-form button | font-size | "0.85rem" |
|
||||
| .site-form button | letter-spacing | "0.12em" |
|
||||
| .site-form button | cursor | pointer |
|
||||
| .site-form button | box-shadow | "0 8px 28px rgba(212,175,55,.28)" |
|
||||
| .site-form button | transition | "transform .2s ease, box-shadow .2s ease, filter .2s ease" |
|
||||
| .site-form button:hover | filter | brightness(1.06) |
|
||||
| .site-form button:hover | transform | "translateY(-1px)" |
|
||||
| .site-form button:hover | box-shadow | "0 12px 36px rgba(212,175,55,.4)" |
|
||||
| .site-form .actions a | color | var(--paper-faint) |
|
||||
| .site-form .actions a | font-weight | "400" |
|
||||
| .site-form .actions a | text-decoration | none |
|
||||
| .site-form .actions a | font-size | "0.85rem" |
|
||||
| .site-form .actions a | letter-spacing | "0.08em" |
|
||||
| .site-form .actions a:hover | color | var(--gold) |
|
||||
| .flash.err | color | var(--danger) |
|
||||
| .flash.err | font-weight | "500" |
|
||||
Original card, form, flash and administration state declarations.
|
||||
|
||||
*`widgets`*
|
||||
Hover and focus rules, field widths, action rows and desk-specific styles remain in their original order. The native form resource owns validation and submission. Theme projection changes only structural addresses; a visual form error is not proof that a server rejected data, so keep real failed and successful submissions in acceptance.
|
||||
|
||||
Grant fs.read on the site root. The exact section must be unique; missing or unsupported content remains a native diagnostic. The result is data, not a written stylesheet, running animation or business query.
|
||||
|
||||
Return *[Read this section's actual original literal table](document.read_table(path="styles/shell.tables.md", title="widgets"))*.
|
||||
|
||||
|
||||
## _compile
|
||||
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| name | text | required | Exact original section in shell.tables.md |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | text | One theme section compiled at its original selectors |
|
||||
|
||||
Use `name` with fs.read and plugin on the site root. Native reading preserves original values and geometry; the style compiler handles selectors, media and keyframes. This retained helper intentionally keeps old-shell addresses for migration comparison. Current serving uses styles/index for explicit View targets. A missing section remains diagnostic, and returned text neither writes a file nor proves the new structure is styled.
|
||||
|
||||
We **declarations = [Read this section's actual original declarations](document.read_table(path="styles/shell.tables.md", title=`name`))**.
|
||||
Return *[Compile original addresses for retained comparison](web.make_style(name=`name`, table=`declarations`))*.
|
||||
|
||||
## css
|
||||
|
||||
**v = > vars**
|
||||
**m = > motion**
|
||||
**l = > layout**
|
||||
**r = > responsive**
|
||||
**c = > chrome**
|
||||
**w = > widgets**
|
||||
**css_v = > web.make_style name="vars" table=v**
|
||||
**css_m = > web.make_style name="motion" table=m**
|
||||
**css_l = > web.make_style name="layout" table=l**
|
||||
**css_r = > web.make_style name="responsive" table=r**
|
||||
**css_c = > web.make_style name="chrome" table=c**
|
||||
**css_w = > web.make_style name="widgets" table=w**
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | text | Baseline CSS preserving the six original areas and cascade |
|
||||
|
||||
`parts` =
|
||||
Grant fs.read and plugin on the site root. Compile tokens, keyframes, layout, responsive, chrome and widgets in their original order and concatenate them exactly as before. Named properties remain independently readable but are not added to this baseline, which would change its original cascade; the View entry restores them at actual semantic targets.
|
||||
|
||||
| css |
|
||||
|-----|
|
||||
| `css_v` |
|
||||
| `css_m` |
|
||||
| `css_l` |
|
||||
| `css_r` |
|
||||
| `css_c` |
|
||||
| `css_w` |
|
||||
The current site loads styles/index output rather than this old-shell baseline. Equal hashes prove retained compilation, not selector reach, font delivery or mobile geometry. Pair verify's actual row comparison with browser acceptance, and let the serving workflow explicitly write the actual projected theme.
|
||||
|
||||
**out = > text.str_join xs=`parts` sep=""**
|
||||
*out*
|
||||
`names` =
|
||||
|
||||
| name |
|
||||
|---|
|
||||
| vars |
|
||||
| motion |
|
||||
| layout |
|
||||
| responsive |
|
||||
| chrome |
|
||||
| widgets |
|
||||
|
||||
We **parts = [Start the ordered compiled sections](table.empty_list())**.
|
||||
- [Compile each area in the declared cascade order](for names as name)
|
||||
We **css = [Compile the selected theme area](_compile(name=`name`))** and **parts = [Preserve its original position](table.append(list=`parts`, item=`css`))**.
|
||||
Return *[Join the compiled sections without changing separators](text.str_join(xs=`parts`, sep=""))*.
|
||||
@@ -0,0 +1,602 @@
|
||||
# Theme declarations
|
||||
|
||||
Literal theme declarations. Callable use and CSS assembly are documented next to this file in shell.mq.md. Each section preserves one native table, including its column names and literal types.
|
||||
|
||||
## vars
|
||||
|
||||
Palette, typefaces, spacing and elevation tokens used by every region.
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| :root | --ink | #0a0809 |
|
||||
| :root | --ink-lift | #141012 |
|
||||
| :root | --wine | #6b1e3a |
|
||||
| :root | --wine-soft | rgba(107,30,58,0.35) |
|
||||
| :root | --gold | #d4af37 |
|
||||
| :root | --gold-dim | rgba(212,175,55,0.45) |
|
||||
| :root | --gold-soft | rgba(212,175,55,0.12) |
|
||||
| :root | --paper | rgba(255,248,240,0.92) |
|
||||
| :root | --paper-dim | rgba(255,248,240,0.72) |
|
||||
| :root | --paper-faint | rgba(255,248,240,0.48) |
|
||||
| :root | --glass | rgba(20,12,18,0.72) |
|
||||
| :root | --glass-strong | rgba(20,12,18,0.88) |
|
||||
| :root | --border | rgba(212,175,55,0.22) |
|
||||
| :root | --border-soft | rgba(212,175,55,0.12) |
|
||||
| :root | --danger | #e8a0a8 |
|
||||
| :root | --radius | 4px |
|
||||
| :root | --radius-sm | 2px |
|
||||
| :root | --space-2 | 8px |
|
||||
| :root | --space-3 | 12px |
|
||||
| :root | --space-4 | 16px |
|
||||
| :root | --space-5 | 20px |
|
||||
| :root | --space-6 | 24px |
|
||||
| :root | --space-8 | 32px |
|
||||
| :root | --text | 16px |
|
||||
| :root | --leading | "1.75" |
|
||||
| :root | --shadow | "0 24px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06)" |
|
||||
| :root | --shadow-card | "0 12px 40px rgba(107,30,58,.35)" |
|
||||
| :root | --ring | "0 0 0 2px rgba(212,175,55,.35)" |
|
||||
| :root | --serif | "'Noto Serif SC', 'Source Serif 4', Georgia, serif" |
|
||||
| :root | --sans | "'Noto Sans SC', 'IBM Plex Sans', system-ui, sans-serif" |
|
||||
| :root | --display | "'Great Vibes', 'Allura', cursive" |
|
||||
| :root | --mono | "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" |
|
||||
| ::selection | background | rgba(212,175,55,0.35) |
|
||||
| ::selection | color | var(--paper) |
|
||||
|
||||
## motion
|
||||
|
||||
Entrance, floating, particle and glow keyframes; animation timings remain in consuming selectors.
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| @keyframes rise 0% | opacity | "0" |
|
||||
| @keyframes rise 0% | transform | translateY(14px) |
|
||||
| @keyframes rise 100% | opacity | "1" |
|
||||
| @keyframes rise 100% | transform | translateY(0) |
|
||||
| @keyframes float 0% | transform | translateY(0) |
|
||||
| @keyframes float 0% | opacity | "0.7" |
|
||||
| @keyframes float 50% | transform | translateY(6px) |
|
||||
| @keyframes float 50% | opacity | "1" |
|
||||
| @keyframes float 100% | transform | translateY(0) |
|
||||
| @keyframes float 100% | opacity | "0.7" |
|
||||
| @keyframes goldPulse 0% | text-shadow | "0 0 24px rgba(212,175,55,.2)" |
|
||||
| @keyframes goldPulse 50% | text-shadow | "0 0 48px rgba(212,175,55,.45)" |
|
||||
| @keyframes goldPulse 100% | text-shadow | "0 0 24px rgba(212,175,55,.2)" |
|
||||
| @keyframes particleDrift 0% | transform | translate3d(0,0,0) |
|
||||
| @keyframes particleDrift 50% | transform | translate3d(-2.5vw, 1.5vh, 0) |
|
||||
| @keyframes particleDrift 100% | transform | translate3d(0,0,0) |
|
||||
| @keyframes particleDrift2 0% | transform | translate3d(0,0,0) |
|
||||
| @keyframes particleDrift2 50% | transform | translate3d(2vw, -2vh, 0) |
|
||||
| @keyframes particleDrift2 100% | transform | translate3d(0,0,0) |
|
||||
| @keyframes nebulaPulse 0% | opacity | "0.55" |
|
||||
| @keyframes nebulaPulse 50% | opacity | "0.9" |
|
||||
| @keyframes nebulaPulse 100% | opacity | "0.55" |
|
||||
|
||||
## layout
|
||||
|
||||
Page grid, background, typography, navigation and main content rules.
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| * | box-sizing | border-box |
|
||||
| html | scroll-behavior | smooth |
|
||||
| html | -webkit-text-size-adjust | 100% |
|
||||
| body | margin | "0" |
|
||||
| body | min-height | 100vh |
|
||||
| body | font-family | var(--sans) |
|
||||
| body | font-weight | "400" |
|
||||
| body | font-size | var(--text) |
|
||||
| body | line-height | var(--leading) |
|
||||
| body | color | var(--paper) |
|
||||
| body | background | var(--ink) |
|
||||
| body | background-image | "radial-gradient(ellipse 90% 55% at 50% -15%, rgba(107,30,58,.5), transparent 58%), radial-gradient(ellipse 55% 45% at 92% 75%, rgba(212,175,55,.14), transparent 55%), radial-gradient(ellipse 40% 35% at 8% 70%, rgba(107,30,58,.22), transparent 60%), linear-gradient(180deg, #0a0809 0%, #120c10 45%, #0a0809 100%)" |
|
||||
| body | background-attachment | fixed |
|
||||
| body | display | grid |
|
||||
| body | grid-template-rows | "auto 1fr auto" |
|
||||
| body | -webkit-font-smoothing | antialiased |
|
||||
| body | position | relative |
|
||||
| body | overflow-x | hidden |
|
||||
| body::before | content | '""' |
|
||||
| body::before | position | fixed |
|
||||
| body::before | inset | "0" |
|
||||
| body::before | z-index | "1" |
|
||||
| body::before | pointer-events | none |
|
||||
| body::before | opacity | "0.1" |
|
||||
| body::before | background-image | "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")" |
|
||||
| html::before | content | '""' |
|
||||
| html::before | position | fixed |
|
||||
| html::before | inset | "0" |
|
||||
| html::before | z-index | "0" |
|
||||
| html::before | pointer-events | none |
|
||||
| html::before | background-image | "radial-gradient(ellipse 50% 40% at 15% 30%, rgba(107,30,58,.35), transparent 70%), radial-gradient(ellipse 45% 35% at 85% 60%, rgba(212,175,55,.12), transparent 65%), radial-gradient(ellipse 40% 30% at 50% 90%, rgba(107,30,58,.25), transparent 70%)" |
|
||||
| html::before | animation | "nebulaPulse 12s ease-in-out infinite" |
|
||||
| body::after | content | '""' |
|
||||
| body::after | position | fixed |
|
||||
| body::after | top | "0" |
|
||||
| body::after | left | "0" |
|
||||
| body::after | width | "2px" |
|
||||
| body::after | height | "2px" |
|
||||
| body::after | z-index | "2" |
|
||||
| body::after | pointer-events | none |
|
||||
| body::after | border-radius | 50% |
|
||||
| body::after | background | transparent |
|
||||
| body::after | box-shadow | "82vw 15vh 0px 0px rgba(212,175,55,0.55),29vw 18vh 0px 1px rgba(212,175,55,0.25),95vw 70vh 1px 0px rgba(212,175,55,0.55),4vw 12vh 0px 1px rgba(212,175,55,0.35),78vw 4vh 0px 1px rgba(245,230,200,0.5),84vw 90vh 1px 0px rgba(245,230,200,0.5),58vw 76vh 0px 0px rgba(255,248,240,0.4),90vw 55vh 0px 0px rgba(255,248,240,0.4),28vw 98vh 0px 0px rgba(255,248,240,0.4),49vw 13vh 0px 1px rgba(255,248,240,0.4),34vw 6vh 1px 1px rgba(212,175,55,0.25),16vw 49vh 0px 1px rgba(212,175,55,0.55),80vw 47vh 0px 1px rgba(245,230,200,0.5),9vw 6vh 0px 0px rgba(212,175,55,0.25),11vw 30vh 1px 0px rgba(212,175,55,0.55),59vw 82vh 0px 0px rgba(255,248,240,0.4),46vw 27vh 0px 1px rgba(212,175,55,0.25),88vw 83vh 0px 1px rgba(212,175,55,0.55),94vw 32vh 1px 0px rgba(212,175,55,0.35),35vw 82vh 0px 1px rgba(212,175,55,0.25),42vw 99vh 0px 0px rgba(212,175,55,0.55),41vw 52vh 0px 0px rgba(255,248,240,0.4),73vw 92vh 0px 1px rgba(255,248,240,0.4),64vw 51vh 1px 0px rgba(212,175,55,0.25),34vw 18vh 0px 1px rgba(212,175,55,0.35),75vw 55vh 1px 0px rgba(245,230,200,0.5),29vw 18vh 1px 0px rgba(245,230,200,0.5),97vw 7vh 0px 1px rgba(212,175,55,0.55),21vw 88vh 0px 0px rgba(107,30,58,0.45),49vw 77vh 0px 1px rgba(107,30,58,0.45),2vw 88vh 0px 1px rgba(212,175,55,0.25),69vw 97vh 0px 0px rgba(255,248,240,0.4),38vw 56vh 1px 0px rgba(212,175,55,0.35),93vw 93vh 0px 1px rgba(255,248,240,0.4),14vw 81vh 0px 0px rgba(255,248,240,0.4),48vw 98vh 0px 1px rgba(212,175,55,0.35),42vw 63vh 0px 0px rgba(212,175,55,0.55),40vw 31vh 0px 1px rgba(212,175,55,0.55),11vw 11vh 1px 0px rgba(212,175,55,0.25),98vw 69vh 0px 1px rgba(212,175,55,0.35),61vw 71vh 0px 1px rgba(212,175,55,0.35),78vw 55vh 0px 1px rgba(212,175,55,0.35),40vw 52vh 0px 0px rgba(212,175,55,0.25),67vw 58vh 0px 0px rgba(212,175,55,0.55),9vw 44vh 0px 1px rgba(212,175,55,0.55),29vw 1vh 0px 0px rgba(212,175,55,0.55),9vw 5vh 0px 1px rgba(255,248,240,0.4),31vw 36vh 1px 0px rgba(212,175,55,0.25),70vw 17vh 1px 0px rgba(212,175,55,0.25),61vw 53vh 0px 0px rgba(212,175,55,0.35),85vw 56vh 1px 0px rgba(255,248,240,0.4),60vw 94vh 0px 0px rgba(212,175,55,0.55),52vw 94vh 0px 0px rgba(255,248,240,0.4),25vw 25vh 1px 0px rgba(245,230,200,0.5),55vw 24vh 1px 0px rgba(255,248,240,0.4),10vw 57vh 0px 0px rgba(245,230,200,0.5),84vw 70vh 0px 0px rgba(212,175,55,0.55),22vw 53vh 1px 0px rgba(107,30,58,0.45),52vw 8vh 1px 0px rgba(212,175,55,0.35),50vw 34vh 0px 0px rgba(107,30,58,0.45),90vw 94vh 1px 0px rgba(245,230,200,0.5),25vw 38vh 0px 1px rgba(212,175,55,0.35),95vw 70vh 0px 0px rgba(212,175,55,0.55),7vw 75vh 0px 0px rgba(107,30,58,0.45),66vw 11vh 0px 1px rgba(212,175,55,0.35),9vw 87vh 1px 0px rgba(212,175,55,0.35),73vw 32vh 0px 1px rgba(245,230,200,0.5),11vw 54vh 0px 0px rgba(212,175,55,0.25),27vw 86vh 0px 0px rgba(212,175,55,0.25),34vw 51vh 0px 0px rgba(212,175,55,0.35),41vw 97vh 0px 0px rgba(212,175,55,0.55),80vw 73vh 0px 1px rgba(212,175,55,0.55)" |
|
||||
| body::after | animation | "particleDrift 48s ease-in-out infinite" |
|
||||
| html::after | content | '""' |
|
||||
| html::after | position | fixed |
|
||||
| html::after | top | "0" |
|
||||
| html::after | left | "0" |
|
||||
| html::after | width | "1px" |
|
||||
| html::after | height | "1px" |
|
||||
| html::after | z-index | "2" |
|
||||
| html::after | pointer-events | none |
|
||||
| html::after | border-radius | 50% |
|
||||
| html::after | background | transparent |
|
||||
| html::after | box-shadow | "28vw 65vh 0 0 rgba(255,248,240,0.25),17vw 45vh 0 0 rgba(212,175,55,0.3),32vw 48vh 0 0 rgba(255,248,240,0.25),21vw 57vh 0 0 rgba(107,30,58,0.3),91vw 39vh 0 0 rgba(107,30,58,0.3),84vw 68vh 0 0 rgba(212,175,55,0.3),86vw 71vh 0 0 rgba(255,248,240,0.25),85vw 14vh 0 0 rgba(212,175,55,0.3),34vw 15vh 0 0 rgba(212,175,55,0.3),96vw 71vh 0 0 rgba(212,175,55,0.3),35vw 37vh 0 0 rgba(107,30,58,0.3),27vw 92vh 0 0 rgba(255,248,240,0.25),27vw 88vh 0 0 rgba(107,30,58,0.3),34vw 65vh 0 0 rgba(255,248,240,0.25),33vw 7vh 0 0 rgba(212,175,55,0.3),82vw 55vh 0 0 rgba(255,248,240,0.25),6vw 1vh 0 0 rgba(255,248,240,0.25),99vw 17vh 0 0 rgba(107,30,58,0.3),34vw 21vh 0 0 rgba(107,30,58,0.3),57vw 71vh 0 0 rgba(107,30,58,0.3),55vw 72vh 0 0 rgba(212,175,55,0.3),15vw 10vh 0 0 rgba(107,30,58,0.3),20vw 70vh 0 0 rgba(212,175,55,0.3),48vw 75vh 0 0 rgba(107,30,58,0.3),19vw 56vh 0 0 rgba(212,175,55,0.3),6vw 40vh 0 0 rgba(255,248,240,0.25),6vw 46vh 0 0 rgba(212,175,55,0.3),88vw 32vh 0 0 rgba(107,30,58,0.3),14vw 46vh 0 0 rgba(107,30,58,0.3),53vw 80vh 0 0 rgba(107,30,58,0.3),20vw 31vh 0 0 rgba(212,175,55,0.3),23vw 53vh 0 0 rgba(212,175,55,0.3),23vw 95vh 0 0 rgba(255,248,240,0.25),53vw 86vh 0 0 rgba(107,30,58,0.3),32vw 35vh 0 0 rgba(212,175,55,0.3),90vw 14vh 0 0 rgba(255,248,240,0.25),5vw 61vh 0 0 rgba(212,175,55,0.3),26vw 59vh 0 0 rgba(255,248,240,0.25),40vw 30vh 0 0 rgba(212,175,55,0.3),4vw 85vh 0 0 rgba(212,175,55,0.3),52vw 43vh 0 0 rgba(255,248,240,0.25),9vw 99vh 0 0 rgba(255,248,240,0.25),45vw 83vh 0 0 rgba(107,30,58,0.3),52vw 87vh 0 0 rgba(107,30,58,0.3),43vw 4vh 0 0 rgba(212,175,55,0.3),34vw 23vh 0 0 rgba(107,30,58,0.3),34vw 5vh 0 0 rgba(212,175,55,0.3),77vw 56vh 0 0 rgba(255,248,240,0.25)" |
|
||||
| html::after | animation | "particleDrift2 64s ease-in-out infinite" |
|
||||
| body.has-sidebar | grid-template-columns | "14rem minmax(0, 1fr)" |
|
||||
| body.has-sidebar | grid-template-areas | '"top top" "side main" "foot foot"' |
|
||||
| body.no-sidebar | grid-template-areas | '"top" "main" "foot"' |
|
||||
| body.layout-stacked | grid-template-areas | '"top" "main" "foot"' |
|
||||
| body.is-desk | grid-template-areas | '"top" "main" "foot"' |
|
||||
| header.topnav | grid-area | top |
|
||||
| aside.side | grid-area | side |
|
||||
| main.main | grid-area | main |
|
||||
| footer.foot | grid-area | foot |
|
||||
| header.topnav | position | relative |
|
||||
| header.topnav | z-index | "20" |
|
||||
| aside.side | position | relative |
|
||||
| aside.side | z-index | "10" |
|
||||
| main.main | position | relative |
|
||||
| main.main | z-index | "10" |
|
||||
| footer.foot | position | relative |
|
||||
| footer.foot | z-index | "10" |
|
||||
| main.main | width | "100%" |
|
||||
| main.main | max-width | "min(78rem, 100%)" |
|
||||
| main.main | padding | "var(--space-8) var(--space-6) 4rem" |
|
||||
| main.main | animation | "rise .8s cubic-bezier(.22,1,.36,1) both" |
|
||||
| a | color | var(--gold) |
|
||||
| a | text-decoration | none |
|
||||
| a | transition | color 0.25s ease |
|
||||
| a:hover | color | #f5e6c8 |
|
||||
| code | font-family | var(--mono) |
|
||||
| code | font-size | "0.82em" |
|
||||
| code | font-weight | "400" |
|
||||
| code | background | rgba(0,0,0,0.35) |
|
||||
| code | border | 1px solid var(--border-soft) |
|
||||
| code | padding | "0.12em 0.45em" |
|
||||
| code | border-radius | var(--radius-sm) |
|
||||
| code | color | var(--gold) |
|
||||
|
||||
## responsive
|
||||
|
||||
Media conditions that collapse the side panel and card grid on small screens.
|
||||
|
||||
| media | selector | property | value |
|
||||
|-------|----------|----------|-------|
|
||||
| (max-width: 860px) | body.has-sidebar | grid-template-columns | 1fr |
|
||||
| (max-width: 860px) | body.has-sidebar | grid-template-areas | '"top" "main" "side" "foot"' |
|
||||
| (max-width: 860px) | aside.side | border-right | "0" |
|
||||
| (max-width: 860px) | aside.side | border-top | 1px solid var(--border-soft) |
|
||||
| (max-width: 860px) | main.main | padding | "var(--space-6) var(--space-4) var(--space-8)" |
|
||||
| (max-width: 860px) | .content.cards | grid-template-columns | 1fr |
|
||||
| (max-width: 860px) | .site-form form | grid-template-columns | 1fr |
|
||||
| (max-width: 860px) | .site-form label:nth-child(1) | grid-column | "1 / -1" |
|
||||
| (max-width: 860px) | .site-form label:nth-child(2) | grid-column | "1 / -1" |
|
||||
| (max-width: 860px) | header.topnav | padding | "0.85rem var(--space-4)" |
|
||||
| (max-width: 860px) | .intro_title | font-size | "2.4rem" |
|
||||
| (prefers-reduced-motion: reduce) | main.main | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | .kicker | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | article.card | transition | none |
|
||||
| (prefers-reduced-motion: reduce) | body::after | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | html::after | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | html::before | animation | none |
|
||||
|
||||
## topnav
|
||||
|
||||
Property/value style attached to the top navigation binding.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| position | sticky |
|
||||
| top | "0" |
|
||||
| z-index | "40" |
|
||||
| display | flex |
|
||||
| align-items | center |
|
||||
| justify-content | flex-start |
|
||||
| gap | var(--space-4) |
|
||||
| padding | "1rem var(--space-6)" |
|
||||
| background | "linear-gradient(180deg, rgba(10,8,9,.92) 0%, rgba(10,8,9,.55) 70%, transparent 100%)" |
|
||||
| backdrop-filter | blur(10px) |
|
||||
| -webkit-backdrop-filter | blur(10px) |
|
||||
| border-bottom | 1px solid var(--border-soft) |
|
||||
|
||||
## side_panel
|
||||
|
||||
Property/value style for the secondary navigation and explanatory panel.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| background | "rgba(10,8,9,.55)" |
|
||||
| padding | "var(--space-6) var(--space-4)" |
|
||||
| border-right | 1px solid var(--border-soft) |
|
||||
|
||||
## footer
|
||||
|
||||
Property/value style for the closing navigation and attribution.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| color | var(--paper-faint) |
|
||||
| font-size | "0.8rem" |
|
||||
| letter-spacing | "0.08em" |
|
||||
| padding | "var(--space-5) var(--space-6)" |
|
||||
| border-top | 1px solid var(--border-soft) |
|
||||
| background | "rgba(10,8,9,.75)" |
|
||||
|
||||
## card_title
|
||||
|
||||
Property/value typography for a linked article title.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| font-family | var(--serif) |
|
||||
| font-size | "1.15rem" |
|
||||
| font-weight | "600" |
|
||||
| margin | "0 0 var(--space-2)" |
|
||||
| color | var(--gold) |
|
||||
| letter-spacing | "0.02em" |
|
||||
| line-height | "1.35" |
|
||||
|
||||
## card_body
|
||||
|
||||
Property/value typography for an article's summary.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| color | var(--paper-dim) |
|
||||
| margin | "0" |
|
||||
| line-height | "1.65" |
|
||||
| font-size | "0.9rem" |
|
||||
| font-weight | "400" |
|
||||
| display | "-webkit-box" |
|
||||
| -webkit-box-orient | vertical |
|
||||
| -webkit-line-clamp | "3" |
|
||||
| overflow | hidden |
|
||||
|
||||
## chrome
|
||||
|
||||
Grouped selectors for introduction panels, claims, reading steps and full article content.
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| .main-intro | background | var(--glass) |
|
||||
| .main-intro | border | 1px solid var(--border) |
|
||||
| .main-intro | border-radius | var(--radius) |
|
||||
| .main-intro | padding | "2.25rem 1.75rem 1.85rem" |
|
||||
| .main-intro | box-shadow | var(--shadow) |
|
||||
| .main-intro | backdrop-filter | blur(16px) |
|
||||
| .main-intro | -webkit-backdrop-filter | blur(16px) |
|
||||
| .main-intro | margin-bottom | var(--space-8) |
|
||||
| .main-intro > .claim | display | flex |
|
||||
| .main-intro > .claim | flex-wrap | wrap |
|
||||
| .main-intro > .claim | gap | var(--space-2) |
|
||||
| .main-intro > .claim | margin | "0 0 var(--space-6)" |
|
||||
| .main-intro > .steps | margin | "0" |
|
||||
| .main-intro > .steps | padding | "var(--space-5) var(--space-5) var(--space-5) 1.5rem" |
|
||||
| .main-intro > .steps | color | var(--paper-dim) |
|
||||
| .main-intro > .steps | background | "rgba(0,0,0,.35)" |
|
||||
| .main-intro > .steps | border | 1px solid var(--border-soft) |
|
||||
| .main-intro > .steps | border-left | 2px solid var(--gold-dim) |
|
||||
| .main-intro > .steps | border-radius | var(--radius) |
|
||||
| .main-intro > .steps | font-size | "0.95rem" |
|
||||
| .main-intro > .steps | letter-spacing | "0.02em" |
|
||||
| .main-intro > .steps a | color | var(--gold) |
|
||||
| .main-intro > .steps a | font-weight | "500" |
|
||||
| .main-intro > .steps a:hover | color | #f5e6c8 |
|
||||
| .article | background | var(--glass) |
|
||||
| .article | border | 1px solid var(--border) |
|
||||
| .article | border-radius | var(--radius) |
|
||||
| .article | padding | "2rem 1.75rem" |
|
||||
| .article | box-shadow | var(--shadow) |
|
||||
| .article | backdrop-filter | blur(16px) |
|
||||
| .article | -webkit-backdrop-filter | blur(16px) |
|
||||
| .article-title | font-family | var(--serif) |
|
||||
| .article-title | font-size | "clamp(1.75rem, 4vw, 2.35rem)" |
|
||||
| .article-title | font-weight | "600" |
|
||||
| .article-title | color | var(--gold) |
|
||||
| .article-title | letter-spacing | "0.04em" |
|
||||
| .article-title | margin | "0 0 var(--space-5)" |
|
||||
| .article-title | line-height | "1.25" |
|
||||
| .article-body | color | var(--paper-dim) |
|
||||
| .article-body | font-family | var(--sans) |
|
||||
| .article-body | font-size | "1.02rem" |
|
||||
| .article-body | line-height | "1.85" |
|
||||
| .article-body.md p | margin | "0 0 1.1rem" |
|
||||
| .article-body.md a | color | var(--gold) |
|
||||
| article.card | cursor | pointer |
|
||||
| a.card-link | color | inherit |
|
||||
| a.card-link | text-decoration | none |
|
||||
| a.card-link:hover | color | inherit |
|
||||
|
||||
## kicker
|
||||
|
||||
Property/value typography for the small introductory category label.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| letter-spacing | "0.32em" |
|
||||
| text-transform | uppercase |
|
||||
| font-size | "0.72rem" |
|
||||
| color | var(--gold-dim) |
|
||||
| margin | "0 0 var(--space-4)" |
|
||||
| font-weight | "400" |
|
||||
| font-family | var(--sans) |
|
||||
| animation | "float 2.8s ease-in-out infinite" |
|
||||
|
||||
## intro_title
|
||||
|
||||
Property/value typography and responsive size for the main introduction heading.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| font-family | var(--display) |
|
||||
| font-size | "clamp(3rem, 10vw, 4.8rem)" |
|
||||
| font-weight | "400" |
|
||||
| line-height | "1.15" |
|
||||
| letter-spacing | "0.04em" |
|
||||
| margin | "0 0 var(--space-4)" |
|
||||
| color | transparent |
|
||||
| background | "linear-gradient(135deg, #f5e6c8 0%, var(--gold) 42%, var(--wine) 100%)" |
|
||||
| -webkit-background-clip | text |
|
||||
| background-clip | text |
|
||||
| animation | "goldPulse 4.5s ease-in-out infinite" |
|
||||
|
||||
## lede
|
||||
|
||||
Property/value typography for the supporting introduction paragraph.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| color | var(--paper-dim) |
|
||||
| max-width | "34rem" |
|
||||
| line-height | "1.85" |
|
||||
| margin | "0 0 var(--space-5)" |
|
||||
| font-size | "1.05rem" |
|
||||
| letter-spacing | "0.02em" |
|
||||
| font-weight | "400" |
|
||||
| font-family | var(--sans) |
|
||||
|
||||
## claim
|
||||
|
||||
Property/value style used by the short feature claims.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| display | inline-flex |
|
||||
| align-items | center |
|
||||
| padding | "0.2rem 0.65rem" |
|
||||
| border-radius | var(--radius-sm) |
|
||||
| background | var(--wine-soft) |
|
||||
| color | #f0c9d4 |
|
||||
| font-size | "0.68rem" |
|
||||
| font-weight | "500" |
|
||||
| letter-spacing | "0.14em" |
|
||||
| border | 1px solid rgba(107,30,58,0.5) |
|
||||
|
||||
## step
|
||||
|
||||
Initial demonstration records in their original column-oriented shape; ids and stable slugs retain their meaning.
|
||||
|
||||
| property | value |
|
||||
|----------|-------|
|
||||
| margin | "0.55rem 0" |
|
||||
|
||||
## widgets
|
||||
|
||||
Cards, forms, flash messages and administration controls, including hover and focus states.
|
||||
|
||||
| selector | property | value |
|
||||
|----------|----------|-------|
|
||||
| ul.nav | display | flex |
|
||||
| ul.nav | flex-wrap | wrap |
|
||||
| ul.nav | align-items | center |
|
||||
| ul.nav | gap | "0.35rem 1rem" |
|
||||
| ul.nav | list-style | none |
|
||||
| ul.nav | margin | "0" |
|
||||
| ul.nav | padding | "0" |
|
||||
| ul.nav a | display | inline-flex |
|
||||
| ul.nav a | align-items | center |
|
||||
| ul.nav a | text-decoration | none |
|
||||
| ul.nav a | color | var(--paper-dim) |
|
||||
| ul.nav a | padding | "0.35rem 0" |
|
||||
| ul.nav a | border-radius | "0" |
|
||||
| ul.nav a | font-weight | "400" |
|
||||
| ul.nav a | font-size | "0.8rem" |
|
||||
| ul.nav a | letter-spacing | "0.14em" |
|
||||
| ul.nav a | transition | color 0.25s ease |
|
||||
| ul.nav a:hover | background | transparent |
|
||||
| ul.nav a:hover | color | var(--gold) |
|
||||
| ul.nav a:hover | text-decoration | none |
|
||||
| ul.nav a[href="/admin"] | color | var(--gold) |
|
||||
| ul.nav a[href="/admin"] | letter-spacing | "0.18em" |
|
||||
| ul.nav a[href="/admin"] | border-bottom | 1px solid var(--gold-dim) |
|
||||
| ul.side-nav a[href="/admin"] | color | var(--gold) |
|
||||
| body.is-desk header.topnav | border-bottom | 1px solid rgba(107,30,58,0.55) |
|
||||
| body.is-desk header.topnav | box-shadow | "0 12px 40px rgba(107,30,58,.18)" |
|
||||
| body.is-desk .main-intro | border-left | 3px solid var(--wine) |
|
||||
| body.is-desk .site-form | border-color | rgba(107,30,58,0.45) |
|
||||
| body.is-desk .site-form | box-shadow | "0 0 0 1px rgba(212,175,55,.12), 0 18px 48px rgba(0,0,0,.35)" |
|
||||
| body.is-desk .content.cards | margin-top | var(--space-6) |
|
||||
| ul.nav li:first-child a | font-family | var(--display) |
|
||||
| ul.nav li:first-child a | font-weight | "400" |
|
||||
| ul.nav li:first-child a | color | var(--gold) |
|
||||
| ul.nav li:first-child a | font-size | "1.85rem" |
|
||||
| ul.nav li:first-child a | letter-spacing | "0.06em" |
|
||||
| ul.nav li:first-child a | padding | "0.1rem 0.2rem 0.1rem 0" |
|
||||
| ul.nav li:first-child a:hover | background | transparent |
|
||||
| ul.nav li:first-child a:hover | color | #f5e6c8 |
|
||||
| .side-label | display | block |
|
||||
| .side-label | font-size | "0" |
|
||||
| .side-label | margin | "0 0 var(--space-4)" |
|
||||
| .side-label::before | content | '"Path"' |
|
||||
| .side-label::before | display | block |
|
||||
| .side-label::before | font-size | "0.68rem" |
|
||||
| .side-label::before | letter-spacing | "0.28em" |
|
||||
| .side-label::before | text-transform | uppercase |
|
||||
| .side-label::before | color | var(--gold-dim) |
|
||||
| .side-label::before | font-weight | "400" |
|
||||
| ul.side-nav | list-style | none |
|
||||
| ul.side-nav | margin | "0" |
|
||||
| ul.side-nav | padding | "0" |
|
||||
| ul.side-nav | display | grid |
|
||||
| ul.side-nav | gap | "2px" |
|
||||
| ul.side-nav | border-left | 1px solid var(--border) |
|
||||
| ul.side-nav | padding-left | "0.85rem" |
|
||||
| ul.side-nav | margin-left | "0.25rem" |
|
||||
| ul.side-nav a | display | block |
|
||||
| ul.side-nav a | text-decoration | none |
|
||||
| ul.side-nav a | color | var(--paper-dim) |
|
||||
| ul.side-nav a | padding | "0.45rem 0.35rem" |
|
||||
| ul.side-nav a | border-radius | "0" |
|
||||
| ul.side-nav a | font-weight | "400" |
|
||||
| ul.side-nav a | font-size | "0.88rem" |
|
||||
| ul.side-nav a | letter-spacing | "0.06em" |
|
||||
| ul.side-nav a | border | "0" |
|
||||
| ul.side-nav a | position | relative |
|
||||
| ul.side-nav a:hover | background | transparent |
|
||||
| ul.side-nav a:hover | border-color | transparent |
|
||||
| ul.side-nav a:hover | color | var(--gold) |
|
||||
| ul.side-nav a:hover | text-decoration | none |
|
||||
| ul.side-nav a:hover | box-shadow | none |
|
||||
| ul.foot-nav | display | flex |
|
||||
| ul.foot-nav | gap | var(--space-4) |
|
||||
| ul.foot-nav | list-style | none |
|
||||
| ul.foot-nav | margin | "0" |
|
||||
| ul.foot-nav | padding | "0" |
|
||||
| ul.foot-nav a | color | var(--paper-faint) |
|
||||
| ul.foot-nav a | font-weight | "400" |
|
||||
| ul.foot-nav a | letter-spacing | "0.1em" |
|
||||
| ul.foot-nav a | font-size | "0.78rem" |
|
||||
| ul.foot-nav a:hover | color | var(--gold) |
|
||||
| .content.cards | display | grid |
|
||||
| .content.cards | gap | var(--space-4) |
|
||||
| .content.cards | margin-top | "0" |
|
||||
| .content.cards | grid-template-columns | "repeat(auto-fill, minmax(16rem, 1fr))" |
|
||||
| article.card | background | "rgba(0,0,0,.35)" |
|
||||
| article.card | border | 1px solid var(--border-soft) |
|
||||
| article.card | border-radius | var(--radius-sm) |
|
||||
| article.card | padding | "1.35rem 1.15rem" |
|
||||
| article.card | box-shadow | none |
|
||||
| article.card | transition | "border-color .35s ease, box-shadow .35s ease, transform .35s ease" |
|
||||
| article.card:hover | transform | "translateY(-3px)" |
|
||||
| article.card:hover | box-shadow | var(--shadow-card) |
|
||||
| article.card:hover | border-color | var(--gold-dim) |
|
||||
| .site-form | background | var(--glass) |
|
||||
| .site-form | border | 1px solid var(--border) |
|
||||
| .site-form | border-radius | var(--radius) |
|
||||
| .site-form | padding | "var(--space-6) var(--space-6) var(--space-7, 1.75rem)" |
|
||||
| .site-form | margin | "0 0 var(--space-6)" |
|
||||
| .site-form | max-width | "100%" |
|
||||
| .site-form | width | "100%" |
|
||||
| .site-form | box-shadow | var(--shadow) |
|
||||
| .site-form | backdrop-filter | blur(16px) |
|
||||
| .site-form | -webkit-backdrop-filter | blur(16px) |
|
||||
| .site-form .meta | display | none |
|
||||
| .site-form form | display | grid |
|
||||
| .site-form form | grid-template-columns | "minmax(0, 1fr) minmax(0, 1fr)" |
|
||||
| .site-form form | column-gap | var(--space-5) |
|
||||
| .site-form form | row-gap | var(--space-5) |
|
||||
| .site-form form | gap | var(--space-5) |
|
||||
| .site-form form | margin | "0" |
|
||||
| .site-form form | width | "100%" |
|
||||
| .site-form form | max-width | "100%" |
|
||||
| .site-form label | display | grid |
|
||||
| .site-form label | gap | var(--space-2) |
|
||||
| .site-form label | margin | "0" |
|
||||
| .site-form label | min-width | "0" |
|
||||
| .site-form label | font-weight | "400" |
|
||||
| .site-form label | color | var(--gold) |
|
||||
| .site-form label | font-size | "0.78rem" |
|
||||
| .site-form label | letter-spacing | "0.16em" |
|
||||
| .site-form label | text-transform | uppercase |
|
||||
| .site-form label:nth-child(1) | grid-column | "1" |
|
||||
| .site-form label:nth-child(2) | grid-column | "2" |
|
||||
| .site-form label:nth-child(n+3) | grid-column | "1 / -1" |
|
||||
| .site-form .actions | grid-column | "1 / -1" |
|
||||
| .site-form input | -webkit-appearance | none |
|
||||
| .site-form textarea | -webkit-appearance | none |
|
||||
| .site-form input | appearance | none |
|
||||
| .site-form textarea | appearance | none |
|
||||
| .site-form input | box-sizing | border-box |
|
||||
| .site-form textarea | box-sizing | border-box |
|
||||
| .site-form input | display | block |
|
||||
| .site-form textarea | display | block |
|
||||
| .site-form input | width | "100%" |
|
||||
| .site-form textarea | width | "100%" |
|
||||
| .site-form input | height | "2.75rem" |
|
||||
| .site-form textarea | min-height | "10rem" |
|
||||
| .site-form label:nth-child(4) textarea | min-height | "14rem" |
|
||||
| .site-form textarea | resize | vertical |
|
||||
| .site-form input | padding | "0 0.9rem" |
|
||||
| .site-form textarea | padding | "0.75rem 0.9rem" |
|
||||
| .site-form input | border | 1px solid var(--border) |
|
||||
| .site-form textarea | border | 1px solid var(--border) |
|
||||
| .site-form input | border-radius | var(--radius-sm) |
|
||||
| .site-form textarea | border-radius | var(--radius-sm) |
|
||||
| .site-form input | background | "rgba(0,0,0,.4)" |
|
||||
| .site-form textarea | background | "rgba(0,0,0,.4)" |
|
||||
| .site-form input | color | var(--paper) |
|
||||
| .site-form textarea | color | var(--paper) |
|
||||
| .site-form input | font | inherit |
|
||||
| .site-form textarea | font | inherit |
|
||||
| .site-form input | font-size | "0.95rem" |
|
||||
| .site-form textarea | font-size | "0.95rem" |
|
||||
| .site-form input | line-height | "1.4" |
|
||||
| .site-form textarea | line-height | "1.65" |
|
||||
| .site-form input | transition | "border-color .2s ease, box-shadow .2s ease" |
|
||||
| .site-form textarea | transition | "border-color .2s ease, box-shadow .2s ease" |
|
||||
| .site-form input:hover | border-color | var(--gold-dim) |
|
||||
| .site-form textarea:hover | border-color | var(--gold-dim) |
|
||||
| .site-form input:focus | outline | none |
|
||||
| .site-form textarea:focus | outline | none |
|
||||
| .site-form input:focus | border-color | var(--gold) |
|
||||
| .site-form textarea:focus | border-color | var(--gold) |
|
||||
| .site-form input:focus | box-shadow | var(--ring) |
|
||||
| .site-form textarea:focus | box-shadow | var(--ring) |
|
||||
| .site-form input[readonly] | background | "rgba(0,0,0,.25)" |
|
||||
| .site-form input[readonly] | color | var(--paper-faint) |
|
||||
| .site-form .err | color | var(--danger) |
|
||||
| .site-form .err | font-size | "0.8rem" |
|
||||
| .site-form .err | font-weight | "500" |
|
||||
| .site-form .err | letter-spacing | "0.04em" |
|
||||
| .site-form .actions | display | flex |
|
||||
| .site-form .actions | align-items | center |
|
||||
| .site-form .actions | gap | var(--space-4) |
|
||||
| .site-form .actions | margin-top | var(--space-2) |
|
||||
| .site-form .actions | flex-wrap | wrap |
|
||||
| .site-form button | -webkit-appearance | none |
|
||||
| .site-form button | appearance | none |
|
||||
| .site-form button | height | "2.75rem" |
|
||||
| .site-form button | padding | "0 1.35rem" |
|
||||
| .site-form button | background | "linear-gradient(135deg, #f5e6c8, var(--gold))" |
|
||||
| .site-form button | color | var(--ink) |
|
||||
| .site-form button | border | "0" |
|
||||
| .site-form button | border-radius | 999px |
|
||||
| .site-form button | font-weight | "600" |
|
||||
| .site-form button | font-size | "0.85rem" |
|
||||
| .site-form button | letter-spacing | "0.12em" |
|
||||
| .site-form button | cursor | pointer |
|
||||
| .site-form button | box-shadow | "0 8px 28px rgba(212,175,55,.28)" |
|
||||
| .site-form button | transition | "transform .2s ease, box-shadow .2s ease, filter .2s ease" |
|
||||
| .site-form button:hover | filter | brightness(1.06) |
|
||||
| .site-form button:hover | transform | "translateY(-1px)" |
|
||||
| .site-form button:hover | box-shadow | "0 12px 36px rgba(212,175,55,.4)" |
|
||||
| .site-form .actions a | color | var(--paper-faint) |
|
||||
| .site-form .actions a | font-weight | "400" |
|
||||
| .site-form .actions a | text-decoration | none |
|
||||
| .site-form .actions a | font-size | "0.85rem" |
|
||||
| .site-form .actions a | letter-spacing | "0.08em" |
|
||||
| .site-form .actions a:hover | color | var(--gold) |
|
||||
| .flash.err | color | var(--danger) |
|
||||
| .flash.err | font-weight | "500" |
|
||||
@@ -0,0 +1,71 @@
|
||||
# View geometry adaptation
|
||||
|
||||
These are literal declarations for the explicit View wrappers. The original palette, motion, typography and component properties remain in shell.tables.md. The callable theme entry explains how these small geometry rules connect the recursive frame to that preserved data.
|
||||
|
||||
## geometry
|
||||
|
||||
The basic preview wrapper should inherit this site's own fonts and full width. Resource placeholders remain structural values but their native semantic children participate in the original named grid. Lists use Markdown rather than a private intro binding table.
|
||||
|
||||
| selector | property | value |
|
||||
|---|---|---|
|
||||
| .mq-document .mq-view | max-width | none |
|
||||
| .mq-document .mq-view | margin | 0 |
|
||||
| .mq-document .mq-view | padding | 0 |
|
||||
| .mq-document .mq-view | line-height | inherit |
|
||||
| .mq-document .mq-view | font-family | inherit |
|
||||
| .mq-document .site-layout | display | grid |
|
||||
| .mq-document .site-layout | grid-template-rows | auto 1fr auto |
|
||||
| .mq-document .site-layout | min-height | 100vh |
|
||||
| .mq-document .site-layout > .slot-nav | display | contents |
|
||||
| .mq-document .site-layout > .slot-sidebar | display | contents |
|
||||
| .mq-document .site-layout .main-intro ul | padding | 0 |
|
||||
| .mq-document .site-layout .main-intro ul | list-style | none |
|
||||
| .mq-document .site-layout .main-intro li > p | margin | 0 |
|
||||
| .mq-document .site-layout .main-intro blockquote > p | margin | 0 |
|
||||
|
||||
## selectors
|
||||
|
||||
Only these structural addresses change. The original property, value, media and order remain untouched; this is a site migration table, not a new page language.
|
||||
|
||||
| @ | old | new |
|
||||
|---|---|---|
|
||||
| 1 | body.has-sidebar | .site-layout.has-sidebar |
|
||||
| 2 | body.no-sidebar | .site-layout.no-sidebar |
|
||||
| 3 | body.layout-stacked | .site-layout.layout-stacked |
|
||||
| 4 | body.is-desk | .site-layout.is-desk |
|
||||
| 5 | main.main | section.main |
|
||||
| 6 | .main-intro > .claim | .main-intro ul |
|
||||
| 7 | .main-intro > .steps | .main-intro ol |
|
||||
| 8 | .intro_title | .main-intro h1 |
|
||||
| 9 | .kicker | .main-intro blockquote |
|
||||
|
||||
## areas
|
||||
|
||||
Compile these original sections in the same cascade order.
|
||||
|
||||
| name |
|
||||
|---|
|
||||
| vars |
|
||||
| motion |
|
||||
| layout |
|
||||
| responsive |
|
||||
| chrome |
|
||||
| widgets |
|
||||
|
||||
|
||||
## properties
|
||||
|
||||
Restore every originally attached named property table at its actual semantic target. The native style compiler adds the leading class dot to each selected name.
|
||||
|
||||
| @ | name | selector |
|
||||
|---|---|---|
|
||||
| 1 | topnav | mq-document .site-layout .topnav |
|
||||
| 2 | side_panel | mq-document .site-layout .side |
|
||||
| 3 | footer | mq-document .site-layout .foot |
|
||||
| 4 | card_title | mq-document .site-layout .content.cards h2 |
|
||||
| 5 | card_body | mq-document .site-layout .content.cards p |
|
||||
| 6 | kicker | mq-document .site-layout .main-intro blockquote |
|
||||
| 7 | intro_title | mq-document .site-layout .main-intro h1 |
|
||||
| 8 | lede | mq-document .site-layout .main-intro .slot-intro-content > p |
|
||||
| 9 | claim | mq-document .site-layout .main-intro ul > li |
|
||||
| 10 | step | mq-document .site-layout .main-intro ol > li |
|
||||
@@ -0,0 +1,58 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Executable theme migration evidence
|
||||
import:
|
||||
document: lib/document.mq.md
|
||||
table: lib/table.mq.md
|
||||
hash: lib/hash.mq.md
|
||||
result: lib/result.mq.md
|
||||
theme: styles/index.mq.md
|
||||
original: styles/shell.mq.md
|
||||
---
|
||||
|
||||
This verification reads actual source declarations and compiles both the retained original and the View projection. It neither certifies the whole site nor replaces HTTP and browser tests. Call theme_values with plugin,fs.read and --fs-root examples/web-site; use an owned copy when validating other site operations.
|
||||
|
||||
## theme_values
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | map | Result containing verified original row count and real CSS identities |
|
||||
|
||||
Each of the six original areas is read through the native Markdown table reader. Compare every projected record to its original after removing only selector: values, media, properties, ordering and row count must match. Tokens and keyframe selectors themselves must remain unchanged. A mismatch returns an actual failed Result before claiming preservation.
|
||||
|
||||
The original and projected CSS hashes identify actual compiled outputs; a different View hash is expected because its semantic addresses and wrapper geometry changed. They are not a visual acceptance certificate. Browser tests separately inspect the real palette, title typography, grid, form flow and current records. This tool makes the preserved declarations reviewable without hiding the implementation in another language.
|
||||
|
||||
`areas` =
|
||||
|
||||
| name |
|
||||
|---|
|
||||
| vars |
|
||||
| motion |
|
||||
| layout |
|
||||
| responsive |
|
||||
| chrome |
|
||||
| widgets |
|
||||
|
||||
We **count = 0**.
|
||||
- [Compare each actual original area to its projection](for areas as name)
|
||||
We **columns = [Read the source declaration leaf](document.read_table(path="styles/shell.tables.md", title=`name`))** and **rows = [Retain original row order](table.from_columns(columns=`columns`))** and **projected = [Run the actual selector projection](theme._table(name=`name`))**.
|
||||
1. len(`rows`) != len(`projected`)
|
||||
Return *[Keep a dropped declaration visible](result.error(code="site.theme_rows", message=`name`, operation="theme_values"))*.
|
||||
We **position = 0**.
|
||||
- [Compare original property, value and media for every row](for rows as row)
|
||||
We **actual = [Read the same projected position](table.at(xs=`projected`, i=`position`))** and **before = [Set aside only the original selector](table.delete(map=`row`, key="selector"))** and **after = [Set aside only the projected selector](table.delete(map=`actual`, key="selector"))**.
|
||||
1. `before` != `after`
|
||||
Return *[Keep any changed declaration payload visible](result.error(code="site.theme_value", message=`name`, operation="theme_values"))*.
|
||||
1. `name` == "vars" or `name` == "motion"
|
||||
1. access(`row`, "selector") != access(`actual`, "selector")
|
||||
Return *[Keep global token/keyframe addresses unchanged](result.error(code="site.theme_global", message=`name`, operation="theme_values"))*.
|
||||
We **position = position + 1** and **count = count + 1**.
|
||||
We **old_css = [Compile the retained original theme](original.css())** and **view_css = [Compile the actual View theme](theme.css())** and **original_sha256 = [Identify real original CSS bytes](hash.sha256(text=`old_css`))** and **view_sha256 = [Identify real projected CSS bytes](hash.sha256(text=`view_css`))**.
|
||||
|
||||
`evidence` =
|
||||
|
||||
| preserved_rows | original_sha256 | view_sha256 |
|
||||
|---|---|---|
|
||||
| `count` | `original_sha256` | `view_sha256` |
|
||||
|
||||
Return *[Expose real preservation and compilation evidence](result.ok(value=`evidence`))*.
|
||||
Reference in new issue
Block a user