jekyll-theme-modootoday 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +141 -1
  3. data/README.ko.md +38 -11
  4. data/README.md +38 -11
  5. data/RULES.md +27 -12
  6. data/_includes/footer-custom.html +4 -5
  7. data/_includes/modootoday/assets/imports.html +14 -0
  8. data/_includes/modootoday/assets/preload.html +11 -0
  9. data/_includes/modootoday/assets/registry.html +89 -0
  10. data/_includes/modootoday/assets/scripts.html +36 -0
  11. data/_includes/modootoday/assets/sheets.html +25 -0
  12. data/_includes/modootoday/assets/site-scripts.html +20 -0
  13. data/_includes/modootoday/assets/site-sheets.html +10 -0
  14. data/_includes/modootoday/assets/url.html +5 -0
  15. data/_includes/modootoday/blog/home-list.html +26 -0
  16. data/_includes/modootoday/blog/home-posts.html +6 -0
  17. data/_includes/modootoday/breadcrumb.html +9 -10
  18. data/_includes/modootoday/chrome/footer.html +16 -0
  19. data/_includes/modootoday/chrome/nav-sheet.html +13 -0
  20. data/_includes/modootoday/config.html +17 -15
  21. data/_includes/modootoday/detail/page.html +28 -0
  22. data/_includes/modootoday/directory/item.html +4 -2
  23. data/_includes/modootoday/directory/items.html +7 -2
  24. data/_includes/modootoday/directory/jsonld.html +2 -2
  25. data/_includes/modootoday/directory/list.html +4 -2
  26. data/_includes/modootoday/directory/self.html +8 -0
  27. data/_includes/modootoday/doc/pagination.html +1 -1
  28. data/_includes/modootoday/doc/sidebar.html +1 -1
  29. data/_includes/modootoday/doc/twin.html +5 -4
  30. data/_includes/modootoday/docs-extra/jsonld.html +7 -7
  31. data/_includes/modootoday/docs-extra/packages.html +3 -3
  32. data/_includes/modootoday/filter/controls.html +4 -0
  33. data/_includes/modootoday/head-meta.html +7 -7
  34. data/_includes/modootoday/home-url.html +1 -1
  35. data/_includes/modootoday/i18n/ar.html +1 -1
  36. data/_includes/modootoday/i18n/de.html +1 -1
  37. data/_includes/modootoday/i18n/el.html +1 -1
  38. data/_includes/modootoday/i18n/es.html +1 -1
  39. data/_includes/modootoday/i18n/fa.html +1 -1
  40. data/_includes/modootoday/i18n/fr.html +1 -1
  41. data/_includes/modootoday/i18n/id.html +1 -1
  42. data/_includes/modootoday/i18n/it.html +1 -1
  43. data/_includes/modootoday/i18n/ja.html +1 -1
  44. data/_includes/modootoday/i18n/ko.html +1 -1
  45. data/_includes/modootoday/i18n/ml.html +1 -1
  46. data/_includes/modootoday/i18n/pl.html +1 -1
  47. data/_includes/modootoday/i18n/pt-BR.html +1 -1
  48. data/_includes/modootoday/i18n/ro.html +1 -1
  49. data/_includes/modootoday/i18n/ru.html +1 -1
  50. data/_includes/modootoday/i18n/th.html +1 -1
  51. data/_includes/modootoday/i18n/tr.html +1 -1
  52. data/_includes/modootoday/i18n/uk.html +1 -1
  53. data/_includes/modootoday/i18n/ur-Latn.html +1 -1
  54. data/_includes/modootoday/i18n/vi.html +1 -1
  55. data/_includes/modootoday/i18n/zh-CN.html +1 -1
  56. data/_includes/modootoday/i18n/zh-TW.html +1 -1
  57. data/_includes/modootoday/i18n.html +126 -123
  58. data/_includes/modootoday/jsonld/author.html +6 -7
  59. data/_includes/modootoday/jsonld/breadcrumb.html +4 -4
  60. data/_includes/modootoday/jsonld/graph.html +1 -1
  61. data/_includes/modootoday/jsonld/profile.html +3 -2
  62. data/_includes/modootoday/jsonld/props.html +2 -2
  63. data/_includes/modootoday/jsonld/schema/defined-term.html +8 -0
  64. data/_includes/modootoday/jsonld/schema/faq.html +19 -0
  65. data/_includes/modootoday/jsonld/schema/learning.html +11 -0
  66. data/_includes/modootoday/jsonld/type.html +10 -3
  67. data/_includes/modootoday/jsonld/webpage.html +1 -0
  68. data/_includes/modootoday/lang-switch.html +1 -1
  69. data/_includes/modootoday/links/content.html +4 -2
  70. data/_includes/modootoday/lookup/crumbs.html +13 -0
  71. data/_includes/modootoday/lookup/page.html +9 -0
  72. data/_includes/modootoday/lookup/urls.html +3 -0
  73. data/_includes/modootoday/markdown/c/faq.html +1 -1
  74. data/_includes/modootoday/markdown/c/params.html +3 -2
  75. data/_includes/modootoday/markdown/code.html +19 -0
  76. data/_includes/modootoday/markdown/components.html +8 -9
  77. data/_includes/modootoday/markdown/llms-pages.html +2 -2
  78. data/_includes/modootoday/markdown/packages.html +22 -0
  79. data/_includes/modootoday/markdown/raw-body.html +10 -2
  80. data/_includes/modootoday/markdown/sections.html +10 -4
  81. data/_includes/modootoday/markdown/split.html +3 -2
  82. data/_includes/modootoday/markdown/visual.html +6 -0
  83. data/_includes/modootoday/meta/byline.html +7 -8
  84. data/_includes/modootoday/meta/share.html +1 -1
  85. data/_includes/modootoday/nav.html +6 -6
  86. data/_includes/modootoday/news/notes.html +1 -1
  87. data/_includes/modootoday/pages/error.html +4 -2
  88. data/_includes/modootoday/pages/hero/poster.html +10 -0
  89. data/_includes/modootoday/pages/search-form.html +6 -4
  90. data/_includes/modootoday/pages/title.html +6 -0
  91. data/_includes/modootoday/profile/name.html +8 -0
  92. data/_includes/modootoday/records/body.html +3 -0
  93. data/_includes/modootoday/records/card.html +5 -0
  94. data/_includes/modootoday/records/facts.html +14 -0
  95. data/_includes/modootoday/records/lookup.html +8 -0
  96. data/_includes/modootoday/ref-url.html +7 -1
  97. data/_includes/modootoday/render/math.html +2 -2
  98. data/_includes/modootoday/render/mermaid.html +2 -2
  99. data/_includes/modootoday/search/record.html +13 -0
  100. data/_includes/modootoday/search.json +14 -7
  101. data/_includes/modootoday/site/author.html +18 -0
  102. data/_includes/modootoday/site/nav-auto.html +22 -0
  103. data/_includes/modootoday/site/nav.html +17 -0
  104. data/_includes/modootoday/stylesheets.html +25 -21
  105. data/_includes/modootoday/t.html +1 -1
  106. data/_includes/modootoday/theme-color.html +3 -3
  107. data/_includes/modootoday/version.html +2 -0
  108. data/_layouts/blog.html +2 -0
  109. data/_layouts/default.html +7 -32
  110. data/_layouts/detail.html +2 -26
  111. data/_layouts/directory.html +9 -3
  112. data/_layouts/doc.html +5 -4
  113. data/_layouts/download.html +2 -2
  114. data/_layouts/events.html +1 -0
  115. data/_layouts/feed.html +3 -3
  116. data/_layouts/home.html +4 -1
  117. data/_layouts/integrations.html +1 -0
  118. data/_layouts/jobs.html +1 -0
  119. data/_layouts/llms-full.html +2 -2
  120. data/_layouts/llms.html +8 -5
  121. data/_layouts/page.html +5 -0
  122. data/_layouts/portfolio.html +1 -0
  123. data/_layouts/reference.html +4 -2
  124. data/_layouts/resume.html +3 -2
  125. data/_layouts/search.html +2 -2
  126. data/_layouts/sponsors.html +1 -0
  127. data/_layouts/team.html +1 -0
  128. data/_layouts/twin.html +5 -2
  129. data/_sass/modootoday/_access.scss +6 -6
  130. data/_sass/modootoday/_core.scss +9 -4
  131. data/_sass/modootoday/_settings.scss +3 -0
  132. data/_sass/modootoday/_sheet.scss +4 -0
  133. data/_sass/modootoday/_site.scss +3 -0
  134. data/_sass/modootoday/base/_code.scss +21 -12
  135. data/_sass/modootoday/base/_prose.scss +18 -12
  136. data/_sass/modootoday/base/_table.scss +3 -6
  137. data/_sass/modootoday/blog/_article.scss +8 -3
  138. data/_sass/modootoday/blog/_cards.scss +13 -12
  139. data/_sass/modootoday/blog/_index.scss +2 -0
  140. data/_sass/modootoday/blog/_news.scss +1 -1
  141. data/_sass/modootoday/blog/_post.scss +1 -1
  142. data/_sass/modootoday/components/core/chrome/_breadcrumb.scss +7 -3
  143. data/_sass/modootoday/components/core/chrome/_header.scss +26 -0
  144. data/_sass/modootoday/components/core/chrome/_nav.scss +15 -20
  145. data/_sass/modootoday/components/core/chrome/_pagination.scss +12 -4
  146. data/_sass/modootoday/components/core/chrome/_theme-toggle.scss +2 -2
  147. data/_sass/modootoday/components/core/inline/_badge.scss +10 -6
  148. data/_sass/modootoday/components/core/inline/_callout.scss +5 -5
  149. data/_sass/modootoday/components/core/inline/_code-copy.scss +34 -8
  150. data/_sass/modootoday/components/core/inline/_code.scss +7 -5
  151. data/_sass/modootoday/components/core/inline/_cta.scss +6 -6
  152. data/_sass/modootoday/components/core/inline/_embed.scss +1 -1
  153. data/_sass/modootoday/components/core/inline/_figure.scss +5 -4
  154. data/_sass/modootoday/components/core/inline/_hero.scss +9 -5
  155. data/_sass/modootoday/components/core/inline/_kbd.scss +1 -1
  156. data/_sass/modootoday/components/core/inline/_reveal.scss +3 -1
  157. data/_sass/modootoday/components/doc/_sidebar.scss +29 -12
  158. data/_sass/modootoday/components/doc/_toc.scss +5 -4
  159. data/_sass/modootoday/components/figure/_figure-svg.scss +1 -1
  160. data/_sass/modootoday/components/filter/_filter.scss +14 -0
  161. data/_sass/modootoday/components/footer/_footer.scss +13 -0
  162. data/_sass/modootoday/components/search/_search.scss +23 -14
  163. data/_sass/modootoday/components/section/showcase/_card.scss +20 -11
  164. data/_sass/modootoday/components/section/showcase/_cta.scss +5 -3
  165. data/_sass/modootoday/components/section/showcase/_linkcards.scss +11 -7
  166. data/_sass/modootoday/components/section/showcase/_pricing.scss +19 -9
  167. data/_sass/modootoday/components/section/showcase/_quote.scss +4 -3
  168. data/_sass/modootoday/components/section/structure/_accordion.scss +7 -1
  169. data/_sass/modootoday/components/section/structure/_params.scss +1 -2
  170. data/_sass/modootoday/components/section/structure/_steps.scss +1 -1
  171. data/_sass/modootoday/components/section/structure/_tabs.scss +14 -6
  172. data/_sass/modootoday/components/section/structure/_timeline.scss +7 -1
  173. data/_sass/modootoday/components/table/_table.scss +65 -0
  174. data/_sass/modootoday/components/table-stack/_table-stack.scss +22 -0
  175. data/_sass/modootoday/components/visual/_visual.scss +9 -0
  176. data/_sass/modootoday/detail/_index.scss +3 -0
  177. data/_sass/modootoday/detail/_page.scss +2 -0
  178. data/_sass/modootoday/directory/_grid.scss +7 -0
  179. data/_sass/modootoday/directory/_index.scss +3 -0
  180. data/_sass/modootoday/docs-extra/_index.scss +3 -0
  181. data/_sass/modootoday/docs-extra/_page.scss +15 -10
  182. data/_sass/modootoday/hero/_index.scss +2 -0
  183. data/_sass/modootoday/hero/_layout.scss +10 -7
  184. data/_sass/modootoday/kit/_button.scss +5 -5
  185. data/_sass/modootoday/kit/_measure.scss +5 -0
  186. data/_sass/modootoday/layout/_shell.scss +7 -21
  187. data/_sass/modootoday/marketing/_index.scss +3 -0
  188. data/_sass/modootoday/marketing/_page.scss +11 -7
  189. data/_sass/modootoday/marketing/_pricing.scss +6 -5
  190. data/_sass/modootoday/pages/_actions.scss +5 -4
  191. data/_sass/modootoday/pages/_error.scss +7 -3
  192. data/_sass/modootoday/pages/_index.scss +3 -0
  193. data/_sass/modootoday/pages/_legal.scss +3 -3
  194. data/_sass/modootoday/pages/_search.scss +3 -1
  195. data/_sass/modootoday/registry/_hooks.scss +13 -0
  196. data/_sass/modootoday/resume/_index.scss +3 -0
  197. data/_sass/modootoday/resume/_page.scss +1 -1
  198. data/_sass/modootoday/tokens/_code-presets.scss +17 -0
  199. data/_sass/modootoday/tokens/_fonts.scss +17 -0
  200. data/_sass/modootoday/tokens/_merge.scss +4 -0
  201. data/_sass/modootoday/tokens/_primitive.scss +4 -2
  202. data/_sass/modootoday/tokens/_scale.scss +9 -0
  203. data/_sass/modootoday/tokens/_semantic.scss +18 -11
  204. data/_sass/modootoday/tools/_functions.scss +9 -0
  205. data/_sass/modootoday.scss +6 -2
  206. data/assets/css/modootoday/chrome/banner.scss +8 -0
  207. data/assets/css/modootoday/chrome/doc-nav.scss +8 -0
  208. data/assets/css/modootoday/chrome/footer.scss +8 -0
  209. data/assets/css/modootoday/{search.scss → chrome/search.scss} +1 -2
  210. data/assets/css/modootoday/{terminal.scss → chrome/terminal.scss} +1 -2
  211. data/assets/css/modootoday/content/code.scss +8 -0
  212. data/assets/css/modootoday/content/extras.scss +8 -0
  213. data/assets/css/modootoday/content/inline.scss +8 -0
  214. data/assets/css/modootoday/{lists.scss → content/lists.scss} +1 -2
  215. data/assets/css/modootoday/{loading.scss → content/loading.scss} +1 -2
  216. data/assets/css/modootoday/data/filter.scss +7 -0
  217. data/assets/css/modootoday/data/table-stack.scss +7 -0
  218. data/assets/css/modootoday/data/table.scss +7 -0
  219. data/assets/css/modootoday/docs/doc.scss +7 -0
  220. data/assets/css/modootoday/marketing/hero.scss +8 -0
  221. data/assets/css/modootoday/media/figure.scss +8 -0
  222. data/assets/css/modootoday/media/visual.scss +7 -0
  223. data/assets/css/modootoday/{bleed.scss → structure/bleed.scss} +1 -2
  224. data/assets/css/modootoday.scss +3 -2
  225. data/assets/js/modootoday/blog/share.js +34 -0
  226. data/assets/js/modootoday/chrome/menu.js +51 -0
  227. data/assets/js/modootoday/chrome/search-keys.js +56 -0
  228. data/assets/js/modootoday/chrome/search.js +112 -0
  229. data/assets/js/modootoday/chrome/theme-toggle.js +36 -0
  230. data/assets/js/modootoday/content/code-copy.js +59 -0
  231. data/assets/js/modootoday/content/scroll-region.js +27 -0
  232. data/assets/js/modootoday/data/filter-chips.js +30 -0
  233. data/assets/js/modootoday/data/filter.js +62 -0
  234. data/assets/js/modootoday/data/table-stack.js +60 -0
  235. data/assets/js/modootoday/dom/config.js +32 -0
  236. data/assets/js/modootoday/structure/accordion.js +25 -0
  237. data/assets/js/modootoday/structure/tabs.js +51 -0
  238. data/assets/js/modootoday/text/normalize.js +28 -0
  239. data/assets/js/modootoday/theme/current.js +38 -0
  240. data/exe/modootoday-stubs +7 -0
  241. data/i18n/ar.yml +2 -1
  242. data/i18n/de.yml +2 -1
  243. data/i18n/el.yml +2 -1
  244. data/i18n/en.yml +2 -1
  245. data/i18n/es.yml +2 -1
  246. data/i18n/fa.yml +2 -1
  247. data/i18n/fr.yml +2 -1
  248. data/i18n/id.yml +2 -1
  249. data/i18n/it.yml +2 -1
  250. data/i18n/ja.yml +3 -2
  251. data/i18n/ko.yml +3 -2
  252. data/i18n/languages.yml +2 -1
  253. data/i18n/ml.yml +2 -1
  254. data/i18n/pl.yml +2 -1
  255. data/i18n/pt-BR.yml +2 -1
  256. data/i18n/ro.yml +2 -1
  257. data/i18n/ru.yml +2 -1
  258. data/i18n/th.yml +2 -1
  259. data/i18n/tr.yml +2 -1
  260. data/i18n/uk.yml +2 -1
  261. data/i18n/ur-Latn.yml +2 -1
  262. data/i18n/vi.yml +2 -1
  263. data/i18n/zh-CN.yml +3 -2
  264. data/i18n/zh-TW.yml +3 -2
  265. data/lib/jekyll-theme-modootoday.rb +14 -6
  266. data/lib/modootoday/check/build/aliases.rb +79 -0
  267. data/lib/modootoday/check/{build_output.rb → build/build_output.rb} +13 -3
  268. data/lib/modootoday/check/build/byte_exact.rb +55 -0
  269. data/lib/modootoday/check/build/records.rb +39 -0
  270. data/lib/modootoday/check/build/site_assets.rb +59 -0
  271. data/lib/modootoday/check/{structured_data.rb → build/structured_data.rb} +10 -1
  272. data/lib/modootoday/check/build/term_sets.rb +46 -0
  273. data/lib/modootoday/check/build/third_party.rb +33 -0
  274. data/lib/modootoday/check/build/twins.rb +98 -0
  275. data/lib/modootoday/check/cli.rb +7 -5
  276. data/lib/modootoday/check/config/keys/appearance/chrome.rb +13 -0
  277. data/lib/modootoday/check/config/keys/appearance/color_scheme.rb +10 -0
  278. data/lib/modootoday/check/config/keys/appearance/components.rb +13 -0
  279. data/lib/modootoday/check/config/keys/appearance/switches.rb +15 -0
  280. data/lib/modootoday/check/config/keys/appearance/tokens.rb +31 -0
  281. data/lib/modootoday/check/config/keys/pages/content.rb +25 -0
  282. data/lib/modootoday/check/config/keys/pages/edit_url.rb +10 -0
  283. data/lib/modootoday/check/config/keys/pages/languages.rb +17 -0
  284. data/lib/modootoday/check/config/keys/pages/search.rb +47 -0
  285. data/lib/modootoday/check/config/keys/pages/twins.rb +30 -0
  286. data/lib/modootoday/check/config/keys/serving/csp.rb +9 -0
  287. data/lib/modootoday/check/config/keys/serving/delivery.rb +59 -0
  288. data/lib/modootoday/check/config/keys.rb +18 -0
  289. data/lib/modootoday/check/{renderers.rb → config/renderers.rb} +2 -51
  290. data/lib/modootoday/check/config/schema.rb +23 -0
  291. data/lib/modootoday/check/config/site_config.rb +25 -0
  292. data/lib/modootoday/check/config/source_mode.rb +18 -0
  293. data/lib/modootoday/check/config/validate.rb +47 -0
  294. data/lib/modootoday/check/context.rb +11 -5
  295. data/lib/modootoday/check/layouts/directory.rb +10 -2
  296. data/lib/modootoday/check/layouts/docs_extra.rb +3 -3
  297. data/lib/modootoday/check/layouts/profile.rb +21 -0
  298. data/lib/modootoday/check/layouts/shells.rb +2 -0
  299. data/lib/modootoday/check/layouts.rb +5 -1
  300. data/lib/modootoday/check/native/collections.rb +47 -0
  301. data/lib/modootoday/check/native/layouts.rb +43 -0
  302. data/lib/modootoday/check/native/sources.rb +27 -0
  303. data/lib/modootoday/check/{a11y → page/a11y}/new_window.rb +2 -3
  304. data/lib/modootoday/check/{component_rules.rb → page/component_rules.rb} +1 -1
  305. data/lib/modootoday/check/page/filter.rb +63 -0
  306. data/lib/modootoday/check/page/hero_script.rb +39 -0
  307. data/lib/modootoday/check/page/math_notation.rb +36 -0
  308. data/lib/modootoday/check/{page_sections.rb → page/page_sections.rb} +5 -3
  309. data/lib/modootoday/check/{page_syntax.rb → page/page_syntax.rb} +4 -1
  310. data/lib/modootoday/check/{pages.rb → page/pages.rb} +11 -0
  311. data/lib/modootoday/check/{i18n.rb → registry/i18n.rb} +8 -30
  312. data/lib/modootoday/check/registry/i18n_pages.rb +80 -0
  313. data/lib/modootoday/check/{registry.rb → registry/registry.rb} +1 -1
  314. data/lib/modootoday/check/source/site_hook.rb +65 -0
  315. data/lib/modootoday/check.rb +29 -15
  316. data/lib/modootoday/i18n/page_lang.rb +56 -0
  317. data/lib/modootoday/i18n/source_rev.rb +26 -0
  318. data/lib/modootoday/i18n.rb +6 -0
  319. data/lib/modootoday/markdown.rb +46 -0
  320. data/lib/modootoday/schema/compat/minima.yml +8 -0
  321. data/lib/modootoday/schema/compat/minimal-mistakes.yml +16 -0
  322. data/lib/modootoday/schema/rules.rb +1 -0
  323. data/lib/modootoday/stubs/aliases.rb +61 -0
  324. data/lib/modootoday/stubs/cli.rb +77 -0
  325. data/lib/modootoday/stubs/page.rb +19 -0
  326. data/lib/modootoday/stubs/plan.rb +43 -0
  327. data/lib/modootoday/stubs/records.rb +101 -0
  328. data/lib/modootoday/stubs/report.rb +31 -0
  329. data/lib/modootoday/stubs/source.rb +87 -0
  330. data/lib/modootoday/stubs/twins.rb +40 -0
  331. data/lib/modootoday/stubs/writer.rb +19 -0
  332. data/lib/modootoday/stubs.rb +24 -0
  333. metadata +158 -43
  334. data/assets/css/modootoday/doc.scss +0 -10
  335. data/assets/css/modootoday/figure.scss +0 -8
  336. data/assets/js/modootoday/accordion.js +0 -13
  337. data/assets/js/modootoday/code-copy.js +0 -29
  338. data/assets/js/modootoday/menu.js +0 -19
  339. data/assets/js/modootoday/scroll-region.js +0 -14
  340. data/assets/js/modootoday/search-keys.js +0 -18
  341. data/assets/js/modootoday/search.js +0 -31
  342. data/assets/js/modootoday/share.js +0 -16
  343. data/assets/js/modootoday/tabs.js +0 -26
  344. data/assets/js/modootoday/theme-toggle.js +0 -17
  345. data/lib/modootoday/check/markdown.rb +0 -39
  346. data/lib/modootoday/check/site_config.rb +0 -88
  347. data/lib/modootoday/check/twins.rb +0 -69
  348. /data/assets/js/modootoday/{theme-init.js → chrome/theme-init.js} +0 -0
  349. /data/lib/modootoday/check/{built_parts.rb → build/built_parts.rb} +0 -0
  350. /data/lib/modootoday/check/{blog.rb → layouts/blog.rb} +0 -0
  351. /data/lib/modootoday/check/{a11y → page/a11y}/content.rb +0 -0
  352. /data/lib/modootoday/check/{a11y → page/a11y}/illustration.rb +0 -0
  353. /data/lib/modootoday/check/{page_values.rb → page/page_values.rb} +0 -0
  354. /data/lib/modootoday/check/{slots.rb → page/slots.rb} +0 -0
  355. /data/lib/modootoday/check/{gh_render.rb → source/gh_render.rb} +0 -0
  356. /data/lib/modootoday/check/{github_pages.rb → source/github_pages.rb} +0 -0
  357. /data/lib/modootoday/check/{stylesheets.rb → source/stylesheets.rb} +0 -0
@@ -1,18 +1,23 @@
1
- // Core: settings → tools → tokens → base → layout. Components are imported separately
1
+ // Core: site hook → settings → tools → tokens → base → layout → header. Other components are imported separately
2
2
  // (assets/css/modootoday.scss picks them from modootoday.components; _sass/modootoday.scss imports all).
3
+ // The hook goes through the load path, not relative to this file, so the site's copy shadows the theme's.
4
+ @import "modootoday/site";
3
5
  @import "settings";
4
6
  @import "tools/functions";
5
7
  @import "tools/mixins";
6
8
  @import "tokens/primitive";
7
9
  @import "tokens/semantic";
10
+ @import "tokens/scale";
11
+ @import "registry/hooks";
12
+ @import "tokens/code-presets";
13
+ @import "tokens/merge";
8
14
  @if $mt-css-layers { @layer mt.tokens, mt.base, mt.layout, mt.components; }
9
15
  @import "tokens/emit";
16
+ @import "tokens/fonts";
10
17
  @import "base/reset";
11
18
  @import "base/prose";
12
- @import "base/code";
13
- @import "base/table";
14
19
  @import "base/bidi";
15
20
  @import "base/interaction";
16
21
  @import "layout/shell";
22
+ @import "modootoday/components/core/chrome/header";
17
23
  @import "layout/safe-area";
18
- @import "layout/page-meta";
@@ -1,5 +1,8 @@
1
1
  // Settings (all !default). Sass syntax limited to the Ruby Sass 3.7 ∩ Dart Sass subset:
2
2
  // @import, maps, map-get/map-merge, @each, @mixin/@include, @function, !default, #{} — never @use/@forward.
3
3
  $mt-css-layers: false !default; // true: wrap output in @layer mt.* (site CSS outside layers always wins)
4
+ $mt-overrides-base: () !default; // partial overrides of $mt-base (fonts, sizes): (font-sans: (Inter, sans-serif))
4
5
  $mt-overrides: () !default; // partial semantic overrides, light: (primary: #c2410c)
5
6
  $mt-overrides-dark: () !default; // partial semantic overrides, dark
7
+ $mt-code-theme: theme !default; // code colours: theme | github (tokens/_code-presets.scss)
8
+ $mt-font-langs: () !default; // languages that get their own font-sans stack (tokens/_fonts.scss): (ko, ja)
@@ -1,6 +1,10 @@
1
1
  // Head of every optional sheet (assets/css/modootoday/**): settings and tools only, no output
2
2
  // except the layer order, so a sheet adds just its component rules on top of the core sheet.
3
+ // The site hook comes first, as in _core.scss, so every sheet sees the same settings.
4
+ @import "modootoday/site";
3
5
  @import "settings";
4
6
  @import "tools/functions";
5
7
  @import "tools/mixins";
8
+ @import "tokens/scale";
9
+ @import "registry/hooks";
6
10
  @if $mt-css-layers { @layer mt.tokens, mt.base, mt.layout, mt.components; }
@@ -0,0 +1,3 @@
1
+ // Site hook: a site shadows this file (_sass/modootoday/_site.scss) to set $mt-overrides-base,
2
+ // $mt-overrides and $mt-overrides-dark. It is imported through the load path before the settings,
3
+ // so the site's maps win over their !default values. The theme copy stays empty.
@@ -1,18 +1,27 @@
1
1
  @include mt-layer(base) {
2
2
  code, pre, kbd { font-family: mt(font-mono); }
3
- :not(pre) > code { font-size: .875em; background: mt(muted); border: 1px solid mt(border); padding: .1em .35em; border-radius: var(--mt-p-radius-sm); overflow-wrap: anywhere; }
4
- pre { font-size: .875rem; line-height: 1.6; background: mt(muted); border: 1px solid mt(border); border-radius: mt(radius-lg);
5
- padding: 1rem 1.25rem; margin: 0 0 1.25rem; overflow-x: auto; tab-size: 2; }
3
+ :not(pre) > code { font-size: .875em; background: mt(accent); border: 1px solid mt(border); padding: 0 .25rem; border-radius: var(--mt-p-radius-sm); overflow-wrap: anywhere; }
4
+ // In running text a code span moves to the next line whole instead of splitting at a hyphen (news-article); one
5
+ // longer than the line still wraps inside it.
6
+ :is(p, li) > code { display: inline-block; max-inline-size: 100%; }
7
+ pre { font-size: mt-size(sm); line-height: 1.5rem; background: mt(code-background); color: mt(code-foreground); border: 1px solid mt(border); border-radius: mt-hook(code-radius);
8
+ padding: 1rem; margin: 0 0 1.25rem; overflow-x: auto; tab-size: 2; }
6
9
  pre code { font-size: inherit; }
7
10
  div.highlighter-rouge, figure.highlight { margin: 0 0 1.25rem; }
8
11
  div.highlighter-rouge pre, figure.highlight pre { margin: 0; }
9
- // Rouge token colors (kramdown syntax_highlighter: rouge), from --mt-code-* tokens.
10
- // :is() keeps each token list short; same specificity as .highlight .x.
11
- .highlight :is(.c, .c1, .cm, .cs, .cp, .cd) { color: mt(code-comment); font-style: italic; }
12
- .highlight :is(.k, .kd, .kn, .kp, .kr, .kt, .kc, .ow, .nt) { color: mt(code-keyword); }
13
- .highlight :is(.s, .s1, .s2, .sb, .sc, .sd, .se, .sh, .si, .sx, .sr, .ss), .highlight .na + .s { color: mt(code-string); }
14
- .highlight :is(.m, .mi, .mf, .mh, .mo, .il, .no, .bp, .vc, .vg, .vi, .na, .py) { color: mt(code-constant); }
15
- .highlight :is(.nf, .fm, .nc, .nn, .nb, .nd, .ne) { color: mt(code-function); }
16
- .highlight :is(.gd, .err) { color: mt(caution); }
17
- .highlight .gi { color: mt(tip); }
12
+ // Rouge token classes to --mt-code-* tokens (test/theme/tokens/code_tokens_test.rb holds the table).
13
+ // :is() keeps each list short; same specificity as .highlight .x. Keyword types (.kt) stay keywords, as on GitHub.
14
+ .highlight :is(.c,.c1,.cm,.cs,.cp,.cd) { color: mt(code-comment); font-style: italic; }
15
+ .highlight :is(.k,.kd,.kn,.kp,.kr,.kt,.kc,.ow) { color: mt(code-keyword); }
16
+ .highlight .nt { color: mt(code-tag); }
17
+ .highlight :is(.s,.s1,.s2,.sb,.sc,.sd,.se,.sh,.si,.sx,.sr,.ss), .highlight .na + .s { color: mt(code-string); }
18
+ .highlight :is(.m,.mi,.mf,.mh,.mo,.il) { color: mt(code-number); }
19
+ .highlight :is(.no,.bp,.py) { color: mt(code-constant); }
20
+ .highlight :is(.vc,.vg,.vi) { color: mt(code-variable); }
21
+ .highlight .na { color: mt(code-attribute); }
22
+ .highlight :is(.nf,.fm,.nn,.nb,.nd,.ne) { color: mt(code-function); }
23
+ .highlight .nc { color: mt(code-type); }
24
+ .highlight .o { color: mt(code-operator); }
25
+ .highlight :is(.gd,.err) { color: mt(code-deleted); }
26
+ .highlight .gi { color: mt(code-inserted); }
18
27
  }
@@ -1,28 +1,34 @@
1
1
  @include mt-layer(base) {
2
- a { color: mt(primary); text-decoration-thickness: 1px; text-underline-offset: .2em; }
2
+ a { color: mt(link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
3
3
  a:hover { text-decoration-thickness: 2px; }
4
- h1, h2, h3, h4 { line-height: 1.25; margin: 2.2em 0 .6em; font-weight: 650; letter-spacing: -.015em; scroll-margin-top: calc(#{mt(header-height)} + 1rem); }
5
- h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -.025em; margin-top: 0; }
6
- h2 { font-size: 1.5rem; letter-spacing: -.02em; }
7
- h3 { font-size: 1.15rem; }
8
- h4 { font-size: 1rem; }
4
+ a:where(:hover) { color: mt(link-hover); } // element weight only: links coloured by a component keep their hover colour
5
+ h1, h2, h3, h4 { line-height: calc(1em + .5rem); margin: 2em 0 .5em; font-family: mt(font-heading); font-weight: mt(heading-weight);
6
+ letter-spacing: map-get($mt-tracking, heading); text-wrap: balance; }
7
+ h1 { font-size: mt-size(3xl); margin-top: 0; }
8
+ h2 { font-size: mt-size(2xl); margin: 3rem 0 1rem; }
9
+ h3 { font-size: mt-size(xl); margin-top: 2rem; }
10
+ h4 { font-size: mt-size(base); }
11
+ // CJK: no negative tracking, and a taller line for the denser glyphs (h1 32/44, h2 24/36, h3 20/32).
12
+ :is(h1, h2, h3):is(:lang(ko), :lang(ja), :lang(zh)) { letter-spacing: 0; line-height: calc(1em + .75rem); }
9
13
  p, ul, ol, dl { margin: 0 0 1em; }
10
14
  :where(:not([class])) > li + li { margin-top: .3em; } // flow lists only: classed grid/flex lists keep item 1 aligned
11
15
  .mt-flat-list li + li { margin-top: 0; } // opt-out on an ancestor, for unclassed Markdown lists made grid/flex (.c-body > ul)
12
16
  li > ul, li > ol { margin: .3em 0 0; }
13
- blockquote { margin: 1.25rem 0; padding: .25rem 1rem; color: mt(muted-foreground); border-inline-start: 3px solid mt(border); }
17
+ blockquote { margin: 1.5rem 0; padding: 0 1rem; color: mt(muted-foreground); border-inline-start: 2px solid mt(border); }
14
18
  blockquote > :last-child { margin-bottom: 0; }
15
- :lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
16
- hr { border: 0; border-top: 1px solid mt(border); margin: 2.5rem 0; }
17
- strong { font-weight: 650; }
19
+ // On the lang element only, so cells and code can override by inheritance; break-word keeps min-content widths.
20
+ [lang|="ko"] { word-break: keep-all; overflow-wrap: break-word; }
21
+ :lang(ja) { line-break: strict; }
22
+ @supports (word-break: auto-phrase) { :lang(ja) { word-break: auto-phrase; } }
23
+ hr { border: 0; border-top: 1px solid mt(border); margin: 3rem 0; }
24
+ strong { font-weight: 600; }
18
25
  // Section rhythm in documents: a hairline above each h2 (except the first) separates dense pages like the kitchen sink.
19
- .mt-doc h2, .mt-doc .mt-section + .mt-section:not(.mt-cta) { margin-top: 3.25rem; padding-top: 2rem; border-top: 1px solid mt(border); }
26
+ .mt-doc h2, .mt-doc .mt-section + .mt-section { margin-top: 3.25rem; padding-top: 2rem; border-top: 1px solid mt(border); }
20
27
  .mt-doc > h1 + h2, .mt-doc > h2:first-child, .mt-hero + h2 { margin-top: 2.5rem; padding-top: 0; border-top: 0; }
21
28
  .mt-doc .mt-section > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
22
29
  .mt-doc h3 { margin-top: 2em; }
23
30
  li.task-list-item { list-style: none; }
24
31
  li.task-list-item > input { margin: 0 .5em 0 -1.4em; vertical-align: -.1em; accent-color: mt(primary); }
25
- @media (max-width: 40rem) { h1 { font-size: 1.85rem; } h2 { font-size: 1.3rem; } }
26
32
  }
27
33
  @include mt-layer(base) {
28
34
  // Footnotes (kramdown div.footnotes): small, start-aligned, set off by a hairline; modootoday/markdown/sections.html moves them after the last section.
@@ -1,8 +1,5 @@
1
- // Tables scroll horizontally (scroll area) instead of overflowing the measure.
1
+ // Fallback for tables outside page content: they scroll on their own. Body tables get div.mt-table and the table sheet.
2
2
  @include mt-layer(base) {
3
- table { display: block; max-width: 100%; width: max-content; overflow-x: auto; margin: 0 0 1.25rem; font-size: .9375rem;
4
- border-collapse: separate; border-spacing: 0; border: 1px solid mt(border); border-radius: mt(radius-lg); }
5
- th, td { padding: .6rem .9rem; border-bottom: 1px solid mt(border); vertical-align: top; }
6
- tr:last-child > td { border-bottom: 0; }
7
- th { white-space: nowrap; background: mt(muted); text-align: start; font-weight: 600; font-size: .875rem; }
3
+ table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
4
+ th, td { padding: .5rem 1rem; text-align: start; vertical-align: top; }
8
5
  }
@@ -2,13 +2,13 @@
2
2
  @include mt-layer(components) {
3
3
  .mt-post-header { margin-block-end: 2rem; }
4
4
  .mt-post-deck { margin: 0 0 1rem; font-size: 1.1875rem; line-height: 1.55; color: mt(muted-foreground); }
5
- .mt-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: .875rem; color: mt(muted-foreground); }
5
+ .mt-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: mt-size(sm); line-height: mt-leading(sm); color: mt(muted-foreground); }
6
6
  .mt-byline p { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: 0; }
7
7
  .mt-byline a { color: mt(foreground); font-weight: 600; }
8
8
  .mt-dateline { color: mt(foreground); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
9
9
  .mt-post-cover { margin: 1.5rem 0 0; }
10
- .mt-post-cover img { display: block; inline-size: 100%; block-size: auto; border-radius: mt(radius-lg); }
11
- .mt-post-cover figcaption { margin-block-start: .5rem; font-size: .8125rem; color: mt(muted-foreground); }
10
+ .mt-post-cover img { display: block; inline-size: 100%; block-size: auto; border: 1px solid mt(border); border-radius: mt(radius); }
11
+ .mt-post-cover figcaption { margin-block-start: .5rem; font-size: mt-size(sm); line-height: mt-leading(sm); color: mt(muted-foreground); }
12
12
  .mt-post-flags { margin: 0 0 .75rem; }
13
13
  .mt-series { margin-block: 1.5rem; padding: 1rem 1.25rem; border: 1px solid mt(border); border-inline-start: 3px solid mt(primary); border-radius: mt(radius); background: mt(muted); }
14
14
  .mt-series-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: 0 0 .5rem; }
@@ -24,4 +24,9 @@
24
24
  .mt-related { margin-block-start: 3rem; padding-block-start: 1.5rem; border-block-start: 1px solid mt(border); }
25
25
  .mt-related h2 { margin: 0; font-size: 1.25rem; }
26
26
  .mt-post-nav { margin-block-start: 2rem; }
27
+ // Post body: 18/28 (CJK 18/32) on the narrow measure; the title one step up from h1. The post header marks a post page.
28
+ .mt-doc:has(> .mt-post-header) { max-inline-size: mt(narrow); font-size: mt-size(lg); line-height: mt-leading(lg); }
29
+ .mt-doc:has(> .mt-post-header):is(:lang(ko), :lang(ja), :lang(zh)) { line-height: 2rem; }
30
+ .mt-doc:has(> .mt-post-header) > h1 { font-size: unquote("clamp(2.5rem, 2rem + 2vw, 3rem)"); line-height: calc(1em + .5rem); }
31
+ .mt-doc:has(> .mt-post-header) .mt-figure img { border: 1px solid mt(border); border-radius: mt(radius); }
27
32
  }
@@ -1,29 +1,30 @@
1
1
  // Post cards and lists: list | grid | magazine. Logical properties (RTL-safe); the card is one link target (title).
2
2
  @include mt-layer(components) {
3
3
  .mt-blog, .mt-news { max-inline-size: mt(container); margin-inline: auto; }
4
- .mt-post-list { display: grid; gap: 1.25rem; margin-block: 1.5rem; }
5
- .mt-post-list[data-variant="grid"], .mt-post-list[data-variant="magazine"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
6
- .mt-card-post { position: relative; display: flex; flex-direction: column; min-inline-size: 0; border: 1px solid mt(border); border-radius: mt(radius-lg);
7
- background: mt(card); color: mt(card-foreground); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
8
- .mt-card-post:hover, .mt-card-post:focus-within { border-color: color-mix(in srgb, #{mt(primary)} 40%, #{mt(border)}); box-shadow: mt(shadow); }
9
- .mt-card-post-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.25rem 1.25rem; }
10
- .mt-card-post-cover img { display: block; inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: mt(muted); }
4
+ .mt-post-list { display: grid; gap: 2rem; margin-block: 1.5rem; }
5
+ .mt-post-list[data-variant="grid"], .mt-post-list[data-variant="magazine"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
6
+ // A card has no box of its own: the cover carries the edge, the title the type; the focus ring outlines the card.
7
+ .mt-card-post { position: relative; display: flex; flex-direction: column; min-inline-size: 0; color: mt(card-foreground); }
8
+ .mt-card-post:hover .mt-card-post-title a { text-decoration: underline; text-underline-offset: .2em; }
9
+ .mt-card-post-body { display: flex; flex-direction: column; gap: .5rem; padding: .75rem 0 0; }
10
+ .mt-card-post-cover img { display: block; inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: mt(muted); border: 1px solid mt(border); border-radius: mt(radius); }
11
11
  .mt-card-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin: 0; font-size: .8125rem; color: mt(muted-foreground); }
12
12
  .mt-card-post-kicker { color: mt(primary); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
13
- .mt-card-post-title { margin: 0; font-size: 1.125rem; line-height: 1.35; overflow-wrap: anywhere; }
13
+ .mt-card-post-title { margin: 0; font-size: mt-size(lg); line-height: mt-leading(lg); font-weight: 600; overflow-wrap: anywhere; }
14
14
  .mt-card-post-title a { color: inherit; text-decoration: none; }
15
15
  .mt-card-post-title a::after { content: ""; position: absolute; inset: 0; }
16
16
  .mt-card-post-title a:focus-visible { outline: none; }
17
- .mt-card-post:has(.mt-card-post-title a:focus-visible) { outline: 2px solid mt(ring); outline-offset: 2px; }
18
- .mt-card-post-excerpt { margin: 0; color: mt(muted-foreground); font-size: .9375rem; line-height: 1.6; }
17
+ .mt-card-post:has(.mt-card-post-title a:focus-visible) { outline: 2px solid mt(ring); outline-offset: 4px; border-radius: mt(radius); }
18
+ .mt-card-post-excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: mt(muted-foreground); font-size: mt-size(sm); line-height: mt-leading(sm);
19
+ -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
19
20
  .mt-post-list[data-variant="list"] .mt-card-post-cover { display: none; }
20
21
  .mt-card-post-featured .mt-card-post-title { font-size: 1.5rem; }
21
22
  @media (min-width: 48rem) {
22
- .mt-post-list[data-variant="list"] > .mt-card-post:has(.mt-card-post-cover) { flex-direction: row; }
23
+ .mt-post-list[data-variant="list"] > .mt-card-post:has(.mt-card-post-cover) { flex-direction: row; gap: 1.5rem; }
23
24
  .mt-post-list[data-variant="list"] .mt-card-post-cover { display: block; flex: 0 0 14rem; }
24
25
  .mt-post-list[data-variant="list"] .mt-card-post-cover img { block-size: 100%; aspect-ratio: auto; }
25
26
  .mt-post-list[data-variant="magazine"] > .mt-card-post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; }
26
- .mt-post-list[data-variant="magazine"] > .mt-card-post-featured .mt-card-post-body { justify-content: center; padding: 1.5rem 2rem; }
27
+ .mt-post-list[data-variant="magazine"] > .mt-card-post-featured .mt-card-post-body { justify-content: center; padding: 0; padding-inline-start: 2rem; }
27
28
  .mt-card-post-featured .mt-card-post-title { font-size: 1.875rem; }
28
29
  }
29
30
  .mt-badge[data-variant="featured"] { background: mt(primary); color: mt(primary-foreground); }
@@ -2,6 +2,8 @@
2
2
  @import "../settings";
3
3
  @import "../tools/functions";
4
4
  @import "../tools/mixins";
5
+ @import "../tokens/scale";
6
+ @import "../registry/hooks";
5
7
  @import "post";
6
8
  @import "cards";
7
9
  @import "article";
@@ -16,7 +16,7 @@
16
16
  .mt-news-latest .mt-card-post-body { padding-inline: 0; }
17
17
  .mt-news-more { margin: 0; text-align: end; font-weight: 600; }
18
18
  .mt-badge-breaking { background: mt(caution); color: mt(primary-foreground); font-weight: 700; text-transform: uppercase; }
19
- .mt-badge-live { display: inline-flex; align-items: center; gap: .375rem; border: 1px solid mt(caution); color: mt(caution); font-weight: 700; text-transform: uppercase; }
19
+ .mt-badge-live { display: inline-flex; align-items: center; gap: .375rem; outline-color: mt(caution); background: none; color: mt(caution); font-weight: 700; text-transform: uppercase; }
20
20
  .mt-live-dot { inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: currentColor; animation: mt-live 1.5s ease-in-out infinite; }
21
21
  @keyframes mt-live { 50% { opacity: .3; } }
22
22
  @media (prefers-reduced-motion: reduce) { .mt-live-dot { animation: none; } }
@@ -3,7 +3,7 @@
3
3
  .mt-post-meta, .mt-post-terms p, .mt-archive-index ul { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; align-items: center; }
4
4
  .mt-archive-index li { display: flex; margin: 0; }
5
5
  .mt-post-meta, .mt-post-terms span, .mt-archive-count, .mt-archive-list time { color: mt(muted-foreground); }
6
- .mt-post-terms { margin-block-start: 2rem; border-block-start: 1px solid mt(border); }
6
+ .mt-post-terms { margin-block-start: 2rem; }
7
7
  .mt-badge[href] { min-block-size: 24px; }
8
8
  .mt-archive-list { list-style: none; padding: 0; }
9
9
  }
@@ -1,8 +1,12 @@
1
- // Breadcrumb generated from the page URL (layout only, no Markdown).
1
+ // Breadcrumb generated from the page URL (layout only, no Markdown). Each chevron ends the item before it and items
2
+ // never break inside (the current page may), so a wrapped line starts with a name.
2
3
  @include mt-layer(components) {
3
- .mt-breadcrumb ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8125rem; }
4
+ .mt-breadcrumb ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem;
5
+ font-size: mt-size(sm); line-height: mt-leading(sm); }
4
6
  .mt-breadcrumb li + li { margin-top: 0; }
5
- .mt-breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; }
7
+ .mt-breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; max-inline-size: 100%; white-space: nowrap; }
8
+ .mt-breadcrumb li > a { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
9
+ .mt-breadcrumb li:last-child { white-space: normal; }
6
10
  .mt-breadcrumb .mt-icon { color: mt(muted-foreground); }
7
11
  .mt-breadcrumb a { color: mt(muted-foreground); text-decoration: none; }
8
12
  .mt-breadcrumb a:hover { color: mt(foreground); text-decoration: underline; }
@@ -0,0 +1,26 @@
1
+ // Site header: one row of header-height at every width (title, nav or its menu sheet, search, language menu, toggle).
2
+ // Always in the core sheet (imported by _core.scss), so modootoday.components cannot drop it.
3
+ @include mt-layer(layout) {
4
+ .mt-header { padding-top: var(--mt-safe-top); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid mt(border);
5
+ background: mt(background); }
6
+ .mt-header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: mt(header-height); }
7
+ // The first trailing control (search, language menu or theme toggle) pushes the group to the inline end, with or without search.
8
+ .mt-header-inner > :is(.mt-search,details.mt-lang,.mt-theme-toggle):not(:is(.mt-search,details.mt-lang,.mt-theme-toggle) ~ *) { margin-inline-start: auto; }
9
+ .mt-site-title { flex: 0 1 auto; min-width: 0; overflow: hidden; display: inline-flex; align-items: center; gap: .55rem; font-weight: 700;
10
+ letter-spacing: -.01em; line-height: 1.2; text-decoration: none; color: mt(foreground); }
11
+ // A long name takes a second line inside the row; a long token breaks after a dot (default.html adds wbr) or
12
+ // anywhere before the second line ends in an ellipsis.
13
+ .mt-site-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
14
+ text-overflow: ellipsis; }
15
+ .mt-site-title:not(.mt-has-logo)::before { content: ""; width: 1.4rem; height: 1.4rem; border-radius: .4rem; flex: none;
16
+ background: mt(brand); }
17
+ details.mt-lang { position: relative; flex: none; }
18
+ @media (min-width: 64rem) and (max-width: 79.99rem) { .mt-header-inner { column-gap: .75rem; } }
19
+ // Below 64rem the nav is a menu button at the end of the row; the title takes the free space.
20
+ @media (max-width: 63.99rem) { .mt-header-inner { column-gap: .5rem; } .mt-site-title { margin-inline-end: auto; font-size: .9375rem; } }
21
+ // Below 30rem the controls leave the name under 130px, so a site with a logo shows only the logo; the hidden name
22
+ // stays the link's accessible name, and the link keeps a 40px target.
23
+ @media (max-width: 29.99rem) { .mt-compact-title { min-width: 2.5rem; min-height: 2.5rem; }
24
+ .mt-compact-title .mt-site-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
25
+ white-space: nowrap; } }
26
+ }
@@ -1,38 +1,33 @@
1
- // Header navigation from _data/nav/<modootoday.nav>.yml (or _data/nav.yml). Scrolls sideways on small screens.
2
- // Groups (items with `items:`) open as a <details> menu from 64rem; below that their links are listed inline.
1
+ // Header navigation from _data/nav/<modootoday.nav>.yml (or _data/nav.yml). From 64rem one row of links, with groups
2
+ // (items with `items:`) as <details> menus; below that the row gives way to a menu sheet (.mt-nav-sheet, nav-sheet.html).
3
3
  @include mt-layer(components) {
4
- .mt-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
5
- // Below 64rem the row scrolls sideways: fade the inline end so cut-off items read as "more".
6
- .mt-nav { mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent); }
7
- [dir="rtl"] .mt-nav { mask-image: linear-gradient(to left, #000 calc(100% - 2rem), transparent); }
4
+ .mt-nav { flex: none; }
8
5
  .mt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .125rem; }
9
6
  .mt-nav li + li { margin-top: 0; }
10
7
  .mt-nav a, .mt-nav summary, .mt-menu a, .mt-menu summary { display: flex; align-items: center; min-height: 2rem; padding: .35rem .6rem; border-radius: mt(radius); font-size: .9rem; font-weight: 500;
11
8
  color: mt(muted-foreground); text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s; }
12
9
  .mt-nav a:hover, .mt-nav summary:hover, .mt-menu a:hover, .mt-menu[open] > summary { color: mt(foreground); background: mt(accent); }
13
10
  .mt-nav a[aria-current="page"], .mt-nav .mt-nav-current, .mt-menu a[aria-current] { color: mt(foreground); background: mt(accent); font-weight: 600; }
14
- .mt-nav-group { display: none; position: relative; }
11
+ .mt-nav-group { position: relative; }
15
12
  .mt-menu summary { cursor: pointer; list-style: none; }
16
13
  .mt-menu summary::-webkit-details-marker { display: none; }
17
- .mt-nav summary > .mt-icon { margin-inline-start: .3em; }
14
+ .mt-nav-group summary > .mt-icon { margin-inline-start: .3em; }
18
15
  .mt-nav a > .mt-icon { margin-inline-start: .25em; opacity: .7; }
19
- .mt-nav a:focus-visible, .mt-menu a:focus-visible, .mt-menu summary:focus-visible { outline-offset: -2px; } // inside the box: the nav row scrolls
16
+ .mt-nav a:focus-visible, .mt-menu a:focus-visible, .mt-menu summary:focus-visible { outline-offset: -2px; } // inside the box: menus scroll
20
17
  .mt-menu > ul { list-style: none; margin: 0; position: absolute; top: calc(100% + .4rem); inset-inline-start: 0; z-index: 30; display: block; min-width: 12rem; padding: .35rem;
21
18
  background: mt(card); border: 1px solid mt(border); border-radius: mt(radius-lg); box-shadow: mt(shadow);
22
19
  max-height: calc(100dvh - #{mt(header-height)} - var(--mt-safe-top) - 1rem); overflow-y: auto; overscroll-behavior: contain; }
23
20
  .mt-menu a { color: mt(card-foreground); }
24
21
  details.mt-lang > ul { inset-inline: auto 0; min-width: 10rem; }
25
- @media (min-width: 64rem) {
26
- .mt-nav, [dir="rtl"] .mt-nav { overflow: visible; flex: none; mask-image: none; }
27
- .mt-nav-group { display: block; }
28
- .mt-nav-flat { display: none; }
29
- }
30
- @media (max-width: 63.99rem) {
31
- .mt-header-inner { flex-wrap: wrap; padding-top: .6rem; }
32
- .mt-nav { order: 10; flex: 1 0 100%; min-width: 0; padding: 0 0 .4rem; overflow-x: auto; scrollbar-width: none; }
33
- .mt-nav::-webkit-scrollbar { display: none; }
34
- .mt-nav a { padding: .3rem .6rem; }
35
- }
22
+ // Header icon menus (language, nav sheet): here, after .mt-menu summary, so they win in @layer mode too.
23
+ :is(details.mt-lang,.mt-nav-sheet) > summary { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid mt(border); color: mt(foreground); }
24
+ // The sheet hangs from the header (its containing block): full width, under the row.
25
+ .mt-nav-sheet > ul { inset-inline: 0; top: 100%; border-radius: 0; border-width: 0 0 1px; padding: .5rem var(--mt-gutter) 1rem; }
26
+ .mt-nav-sheet ul { display: block; }
27
+ .mt-nav-sheet a { min-height: 3rem; }
28
+ .mt-nav-sheet-label { display: block; padding: 1rem .6rem .25rem; font-size: .75rem; font-weight: 500; color: mt(muted-foreground); }
29
+ @media (min-width: 64rem) { .mt-nav-sheet { display: none; } }
30
+ @media (max-width: 63.99rem) { .mt-nav { order: 10; } .mt-nav > ul { display: none; } }
36
31
  }
37
32
  @include mt-layer(components) {
38
33
  @media (min-width: 64rem) and (max-width: 79.99rem) { .mt-nav a, .mt-nav summary { padding-inline: .45rem; font-size: .875rem; } }
@@ -1,10 +1,18 @@
1
1
  // Previous / next links in nav order.
2
2
  @include mt-layer(components) {
3
3
  .mt-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid mt(border); }
4
- .mt-pagination a { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; padding: .9rem 1.1rem; font-weight: 600;
5
- border: 1px solid mt(border); border-radius: mt(radius-lg); transition: border-color .15s, box-shadow .15s; }
6
- .mt-pagination a:hover { border-color: mt(primary); box-shadow: mt(shadow-sm); }
4
+ .mt-pagination a { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; padding: 1rem; color: mt(foreground); overflow-wrap: break-word;
5
+ font-size: mt-size(base); line-height: 1.5rem; font-weight: 500;
6
+ border: 1px solid mt(border); border-radius: mt(radius); transition: border-color .15s; }
7
+ .mt-pagination a:hover { border-color: mt(border-input); }
7
8
  .mt-pagination [rel="next"] { grid-column: 2; text-align: end; }
8
9
  .mt-pagination [rel="next"] small { justify-content: flex-end; }
9
- .mt-pagination small { display: inline-flex; align-items: center; gap: .3rem; color: mt(muted-foreground); font-weight: 500; font-size: .8125rem; }
10
+ .mt-pagination small { display: inline-flex; align-items: center; gap: .25rem; color: mt(muted-foreground); font-weight: 400;
11
+ font-size: mt-size(xs); line-height: mt-leading(xs); }
12
+ }
13
+ // Touch target and forced colors last, so they win at equal specificity (the shell's part is _access.scss).
14
+ @include mt-layer(components) {
15
+ @media (pointer: coarse) {
16
+ .mt-pagination a { min-height: 2.75rem; }
17
+ }
10
18
  }
@@ -1,8 +1,8 @@
1
- // Light/dark toggle button (assets/js/modootoday/theme-toggle.js). Shown from the first paint when scripting is on
1
+ // Light/dark toggle button (assets/js/modootoday/chrome/theme-toggle.js). Shown from the first paint when scripting is on
2
2
  // (no header jump when the deferred script runs); the icon follows the scheme in CSS, not aria-pressed.
3
3
  @include mt-layer(components) {
4
4
  // Icon button: a moon while light, a sun while dark; the name is the aria-label.
5
- .mt-theme-toggle { flex: none; display: grid; place-items: center; cursor: pointer; width: 2.25rem; height: 2.25rem; padding: 0;
5
+ .mt-theme-toggle { flex: none; display: grid; place-items: center; cursor: pointer; width: 2.5rem; height: 2.5rem; padding: 0;
6
6
  border: 1px solid mt(border); border-radius: mt(radius); background: mt(background); color: mt(foreground); }
7
7
  .mt-theme-toggle .mt-icon-sun, .mt-theme-toggle[hidden] { display: none; }
8
8
  @media (scripting: enabled) { .mt-theme-toggle[hidden] { display: grid; } }
@@ -1,15 +1,19 @@
1
- // Status badge: span.mt-badge.mt-badge-<available|partial|planned>
1
+ // Badge: a 20px chip on the accent fill; span.mt-badge.mt-badge-<available|partial|planned> adds a status dot.
2
+ // The dot is a border, and the transparent outline becomes the chip edge, so both survive forced colours.
2
3
  $mt-badge-variants: (available: status-available, partial: status-partial, planned: status-planned) !default;
3
4
  @include mt-layer(components) {
4
5
  .mt-badge { --mt-badge-color: #{mt(status-planned)}; --mt-badge-radius: var(--mt-p-radius-full);
5
- display: inline-flex; gap: .3em; align-items: center; vertical-align: .1em; font-size: .75rem; line-height: 1.5; font-weight: 600; padding: 0 .55em;
6
- border: 1px solid color-mix(in srgb, var(--mt-badge-color) 35%, transparent); border-radius: var(--mt-badge-radius); color: color-mix(in srgb, var(--mt-badge-color) 78%, #{mt(foreground)});
7
- background: color-mix(in srgb, var(--mt-badge-color) 9%, transparent); white-space: nowrap; }
6
+ display: inline-flex; gap: .375rem; align-items: center; vertical-align: .1em; padding: .125rem .5rem;
7
+ font-size: mt-size(xs); line-height: mt-leading(xs); font-weight: 500; border-radius: var(--mt-badge-radius);
8
+ outline: 1px solid transparent; outline-offset: -1px; color: mt(foreground); background: mt(accent); white-space: nowrap; text-decoration: none; }
8
9
  @each $name, $token in $mt-badge-variants {
9
- .mt-badge-#{$name} { --mt-badge-color: #{mt($token)}; }
10
+ // The dot sits out of the flex flow, so the text alone sets the baseline in a row of mixed badges.
11
+ .mt-badge-#{$name} { --mt-badge-color: #{mt($token)}; position: relative; padding-inline-start: 1.25rem; }
12
+ .mt-badge-#{$name}::before { content: ""; position: absolute; inset-inline-start: .5rem; top: calc(50% - 3px);
13
+ border: 3px solid var(--mt-badge-color); border-radius: 50%; }
10
14
  }
11
15
  }
12
16
  // `tag:<word>` badges
13
17
  @include mt-layer(components) {
14
- .mt-badge-tag { --mt-badge-color: #{mt(primary)}; --mt-badge-radius: #{mt(radius)}; }
18
+ .mt-badge-tag { --mt-badge-radius: #{mt(radius)}; }
15
19
  }
@@ -1,13 +1,13 @@
1
1
  // Callout (GitHub alert): blockquote.mt-callout.mt-callout-<type> [data-variant]
2
+ // Flat: a hairline box; the type colour reaches only the 16px icon and the title, never a fill or a stripe.
2
3
  $mt-callout-variants: (note: note, tip: tip, important: important, warning: warning, caution: caution) !default;
3
4
  @include mt-layer(components) {
4
- .mt-callout { --mt-callout-accent: #{mt(note)}; color: mt(foreground); padding: .85rem 1.1rem; margin: 1.25rem 0;
5
- border: 1px solid color-mix(in srgb, var(--mt-callout-accent) 28%, #{mt(border)}); border-inline-start: 4px solid var(--mt-callout-accent);
6
- border-radius: mt(radius); background: color-mix(in srgb, var(--mt-callout-accent) 6%, #{mt(background)}); }
5
+ .mt-callout { --mt-callout-accent: #{mt(note)}; color: mt(foreground); padding: 1rem; margin: 1.5rem 0;
6
+ border: 1px solid mt(border); border-radius: mt(radius); }
7
7
  .mt-callout > p:empty { display: none; }
8
8
  .mt-callout > :last-child { margin-bottom: 0; }
9
- .mt-callout-title { display: flex; align-items: center; gap: .4rem; color: var(--mt-callout-accent); font-weight: 650; font-size: .875rem; letter-spacing: .01em; margin: 0 0 .3rem; }
10
- .mt-callout pre { background: mt(background); }
9
+ .mt-callout-title { display: flex; align-items: center; gap: .5rem; color: var(--mt-callout-accent); font-weight: 600;
10
+ font-size: mt-size(sm); line-height: mt-leading(sm); margin: 0 0 .25rem; }
11
11
  @each $name, $token in $mt-callout-variants {
12
12
  .mt-callout-#{$name} { --mt-callout-accent: #{mt($token)}; }
13
13
  }
@@ -1,11 +1,37 @@
1
- // Copy button on code blocks (assets/js/modootoday/code-copy.js).
1
+ // Copy button on code blocks (assets/js/modootoday/content/code-copy.js): a 32px icon button at the top end, named by its
2
+ // aria-label. A titled block puts it in the title bar; an untitled one overlays the top-end corner on the code background.
2
3
  @include mt-layer(components) {
3
4
  .mt-code { position: relative; }
4
- .mt-code-copy { position: absolute; top: .5rem; inset-inline-end: .5rem; font: inherit; font-size: .75rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; min-height: 1.75rem;
5
- padding: .2rem .55rem; border-radius: var(--mt-p-radius-sm); border: 1px solid mt(border);
6
- background: mt(background); color: mt(muted-foreground); transition: color .15s; }
7
- .mt-code-copy:hover, .mt-code-copy:focus-visible { color: mt(foreground); }
8
- // Narrow screens: start the code below the button so it never covers the first line of a scrolling block.
9
- // Reserved whenever scripting is on, before code-copy.js adds the button, so nothing moves after load.
10
- @media (max-width: 47.99rem) and (scripting: enabled) { .mt-main pre { padding-top: 2.6rem; } }
5
+ .mt-code-copy { position: absolute; top: .25rem; inset-inline-end: .25rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
6
+ border: 0; border-radius: mt(radius); background: mt(code-background); color: mt(muted-foreground); cursor: pointer; transition: .15s; }
7
+ .mt-code-copy:hover, .mt-code-copy:focus-visible { color: mt(foreground); background: mt(accent); }
8
+ .mt-code-title + .mt-code .mt-code-copy { top: -2.25rem; }
9
+ // Reserved from the first paint while scripting is on, so nothing moves after load: end padding keeps lines clear of
10
+ // the button once scrolled, and a first line wider than the block minus the button (data-mt-line, 8ch steps from
11
+ // markdown/code.html) gets a 40px strip above it, so the button never covers code.
12
+ @media (scripting: enabled) {
13
+ .mt-main pre { padding-inline-end: 3rem; }
14
+ .mt-main .mt-code-title + div pre { padding-inline-end: 1rem; }
15
+ .mt-main div.highlight { container: mt-code / inline-size; font-family: mt(font-mono); font-size: mt-size(sm); }
16
+ .mt-main .mt-code-title + div div.highlight { container: none; }
17
+ // Kept at or under the coarse-pointer rules' specificity, so the 44px button's taller strip wins below.
18
+ pre[data-mt-line="x"] { padding-top: 2.5rem; }
19
+ .mt-code-title + div pre[data-mt-line="x"] { padding-top: 1rem; }
20
+ @for $k from 1 through 16 {
21
+ // 58px: the 1px border and 1rem padding at the start, the button and its .25rem inset and gap at the end.
22
+ @container mt-code (max-width: calc(#{$k * 8}ch + 58px)) { [data-mt-line="#{$k}"] { padding-top: 2.5rem; } }
23
+ }
24
+ }
25
+ }
26
+ // Touch target and forced colors last, so they win at equal specificity (the shell's part is _access.scss).
27
+ @include mt-layer(components) {
28
+ @media (pointer: coarse) {
29
+ .mt-code-copy { min-height: 2.75rem; }
30
+ .mt-code-copy { width: 2.75rem; height: 2.75rem; }
31
+ .mt-code pre, pre.mt-code { padding-top: 3.25rem; }
32
+ .mt-code-title + div pre { padding-top: 1rem; }
33
+ }
34
+ @media (forced-colors: active) {
35
+ .mt-code-copy { border: 1px solid ButtonText; }
36
+ }
11
37
  }
@@ -1,11 +1,13 @@
1
- // Code titles and diffs: `file:<name>` alone in a paragraph right before a fenced block becomes the block's title bar;
2
- // ```diff blocks tint added and removed lines while keeping the +/- signs (colour is never the only cue).
1
+ // Code titles and diffs: `file:<name>` alone in a paragraph right before a fenced block becomes the block's title bar
2
+ // (40px, the copy button at its end); ```diff blocks tint added and removed lines and keep the +/- signs.
3
3
  @include mt-layer(components) {
4
4
  .mt-code { margin: 0 0 1.25rem; }
5
- .mt-code-title { margin: 0; padding: .4rem .9rem; border: 1px solid mt(border); border-bottom: 0; border-radius: mt(radius-lg) mt(radius-lg) 0 0;
6
- background: mt(background); color: mt(muted-foreground); font: .8125rem/1.5 mt(font-mono); }
5
+ .mt-code-title { display: flex; align-items: center; height: 2.5rem; margin: 0; padding: 0 1rem; border: 1px solid mt(border); border-bottom: 0;
6
+ border-radius: mt-hook(code-radius) mt-hook(code-radius) 0 0; background: mt(code-background); color: mt(muted-foreground);
7
+ font: #{mt-size(xs)}/#{mt-leading(xs)} mt(font-mono); }
7
8
  .mt-code-title + div.highlighter-rouge pre { border-start-start-radius: 0; border-start-end-radius: 0; }
8
- .language-diff .gi, .language-diff .gd { display: inline-block; min-width: 100%; }
9
+ // Rouge keeps each line's newline inside the span, so the lines must be blocks to stack.
10
+ .language-diff .gi, .language-diff .gd { display: block; }
9
11
  .language-diff .gi { background: color-mix(in srgb, #{mt(tip)} 16%, transparent); color: mt(foreground); }
10
12
  .language-diff .gd { background: color-mix(in srgb, #{mt(caution)} 16%, transparent); color: mt(foreground); }
11
13
  }
@@ -1,11 +1,11 @@
1
1
  // CTA buttons: paragraphs that hold only links (p.mt-actions, marked in Liquid) in the hero and in c: cta sections.
2
+ // The first link is the primary action, neutral by default; the button-primary hooks recolour it.
2
3
  @include mt-layer(components) {
3
4
  .mt-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
4
- .mt-actions > a { display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.25rem; border-radius: mt(radius);
5
- border: 1px solid mt(border); background: mt(background); color: mt(foreground); box-shadow: mt(shadow-sm);
6
- font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s, transform .15s; }
5
+ .mt-actions > a { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem; border-radius: mt(radius);
6
+ border: 1px solid mt(border); background: mt(background); color: mt(foreground);
7
+ font-size: mt-size(sm); line-height: mt-leading(sm); font-weight: 500; text-decoration: none; transition: background-color .15s, border-color .15s; }
7
8
  .mt-actions > a:hover { background: mt(accent); }
8
- .mt-actions > a:first-child { background: mt(primary); border-color: mt(primary); color: mt(primary-foreground); }
9
- .mt-actions > a:first-child:hover { background: color-mix(in srgb, #{mt(primary)} 88%, #{mt(foreground)}); }
10
- .mt-actions > a:active { transform: translateY(1px); }
9
+ .mt-actions > a:first-child { background: mt-hook(button-primary-bg); border-color: mt-hook(button-primary-bg); color: mt-hook(button-primary-fg); }
10
+ .mt-actions > a:first-child:hover { background: color-mix(in srgb, #{mt-hook(button-primary-bg)} 90%, #{mt(background)}); }
11
11
  }
@@ -1,6 +1,6 @@
1
1
  // Responsive embed: `embed:https://...` alone in a paragraph → a titled, lazy 16:9 iframe.
2
2
  @include mt-layer(components) {
3
- .mt-embed { position: relative; margin: 1.5rem 0; aspect-ratio: 16 / 9; border: 1px solid mt(border); border-radius: mt(radius-lg); overflow: hidden; background: mt(muted); }
3
+ .mt-embed { position: relative; margin: 1.5rem 0; aspect-ratio: 16 / 9; border: 1px solid mt(border); border-radius: mt(radius); overflow: hidden; background: mt(muted); }
4
4
  .mt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
5
5
  .mt-embed iframe:focus { outline: 2px solid mt(ring); outline-offset: -2px; }
6
6
  }
@@ -1,12 +1,13 @@
1
1
  // Figure: an image alone in a paragraph followed by a paragraph that is only *emphasis* → figure + figcaption.
2
2
  @include mt-layer(components) {
3
3
  .mt-figure { margin: 1.5rem 0; }
4
- .mt-figure img { display: block; border-radius: mt(radius-lg); border: 1px solid mt(border); }
4
+ .mt-figure img { display: block; border-radius: mt(radius); border: 1px solid mt(border); }
5
5
  // Dim images a little in dark mode so a light screenshot does not glare.
6
6
  :root[data-theme="dark"] .mt-figure img { filter: brightness(.85); }
7
7
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mt-figure img { filter: brightness(.85); } }
8
- .mt-figure figcaption { margin-top: .6rem; color: mt(muted-foreground); font-size: .875rem; text-align: center; }
9
- // .mt-illustration: figure[role=img][aria-label] for drawn scenes; .mt-illustration-tag marks it (e.g. "Illustration").
8
+ .mt-figure figcaption { margin-top: .5rem; color: mt(muted-foreground); font-size: mt-size(sm); line-height: mt-leading(sm); text-align: center; }
9
+ // .mt-illustration: figure[role=img][aria-label] for drawn scenes. The tag sits above the art, so it never covers it.
10
10
  .mt-illustration { position: relative; margin: 0 0 1.5rem; }
11
- .mt-illustration-tag { position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem; padding: .125rem .5rem; border: 1px solid mt(border); border-radius: 999px; background: mt(background); color: mt(foreground); font-size: .75rem; }
11
+ .mt-illustration-tag { display: table; margin-bottom: .5rem; padding: .125rem .5rem; border: 1px solid mt(border); border-radius: 999px; color: mt(muted-foreground); font-size: mt-size(xs); line-height: mt-leading(xs); }
12
+ .mt-illustration-tag:empty { display: none; }
12
13
  }