Files
marqdo/examples/web-net-site/styles/shell.mq.md
T
cflmy 9331af78e2 release(2.8.0): 合入 CHANGELOG/README/发版说明/skills prove 任务;CI 链接指向 doc/releases
- CHANGELOG.md:v2.8.0 条目(中英双语);
- README.md:版本行 2.7.1→2.8.0 + 愿景第 6 条(知识可证明);
- doc/releases/v2.8.0.md:双语发版说明(亮点/用法/已知限制);
- skills/marqdo-dev/index.mq.md:新增 prove 任务(路径/目录模式/
  require_lean/json;参数用 + 行声明升参,check 与 narrative-ratio 通过);
- 设计文档 §12.5 标记已合入;发版链接统一指向 doc/releases/v2.8.0.md。
2026-11-18 10:29:26 +08:00

2.9 KiB
Executable File

markup, import
markup import
occlusion
web text
ext/web/web.mq.md lib/text.mq.md

topnav

返回 类型 说明
result any The value explicitly returned below; conditional returns follow the selected branch

topnav =

属性 值
background #ffffff
border-bottom 1px solid #e7e5e4

After these steps, return topnav.

side_panel

返回 类型 说明
result any The value explicitly returned below; conditional returns follow the selected branch

side_panel =

属性 值
background #f5f5f4

After these steps, return side_panel.

card_title

返回 类型 说明
result any The value explicitly returned below; conditional returns follow the selected branch

card_title =

属性 值
font-size 1.15rem
margin 0 0 0.35rem

After these steps, return card_title.

card_body

返回 类型 说明
result any The value explicitly returned below; conditional returns follow the selected branch

card_body =

属性 值
color #57534e
margin 0

After these steps, return card_body.

css

返回 类型 说明
result text CSS compiled from the original four declarative property tables

Call with plugin before discovery. This task preserves the original top navigation background/border, side-panel background, card title size/spacing and card body color/spacing. The selector names target the native components and query-card markup directly. The property functions remain independently callable, so changing one region does not require editing a raw CSS string.

The server writes the returned text through native filesystem IO into its explicit generated resource path. Compilation itself neither writes that file nor mounts static content. These four sections keep their original order; the general View runtime still owns responsive row geometry. A compiler diagnostic stops serving instead of substituting an old stylesheet.

We nav = Read the original navigation declarations and side = Read the original side-panel declarations and title = Read the original title declarations and body = Read the original summary declarations. We nav_css = [Compile the navigation selector](web.make_style(name="topnav", table=nav)) and side_css = [Compile the side selector](web.make_style(name="side", table=side)) and title_css = [Compile the native card title selector](web.make_style(name="content.cards h2", table=title)) and body_css = [Compile the native card body selector](web.make_style(name="content.cards p", table=body)).

parts =

css
nav_css
side_css
title_css
body_css

Return [Keep the compiled sections in order](text.str_join(xs=parts, sep="\n")).