mirror of
https://github.com/HananoshikaYomaru/openfreebooks.git
synced 2026-11-12 20:45:52 +00:00
Enhance math content presentation and widget styles: Update SKILL.md to specify the use of shared modal patterns for chapter widgets. Revise algebraic fractions examples in _index.md, core.html, and supplement.html to utilize aligned multi-line KaTeX for improved readability. Introduce responsive styles in chapter.scss for better mobile layout in addition groups and big numbers scale controls.
This commit is contained in:
parent
3f666cf1b5
commit
669fbd59fa
8 changed files with 436 additions and 122 deletions
|
|
@ -137,6 +137,8 @@ Live chapters live under `content/{subject}/{slug}/`:
|
|||
|
||||
**Math equation layout (all subjects):** for chained calculations, **always prefer multi-line KaTeX** and **always align at the equal sign** using `aligned` (e.g. `\begin{aligned} ... &= ... \\ ... \end{aligned}`). Do not write long one-line chains; aligned multi-line steps are the default for readability and mobile layout.
|
||||
|
||||
**Dialog/modals in widgets:** when adding a `<dialog>` in chapter widgets, use the shared modal pattern and classes from `themes/openfreebooks/sass/_contributors.scss` (`contributor-dialog`, `contributor-dialog-panel`, `contributor-dialog-close`) as the base style, keep the dialog centered in modal mode, and only layer minimal widget-specific overrides on top.
|
||||
|
||||
### Interactive demo technology choices
|
||||
|
||||
Interactive demos can use different technologies based on the learning goal and interaction type:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue