Skip to content

Commit 6a39ae7

Browse files
committed
[spec] Add custom CSS file.
This is required to override CSS flags provided by mdbook. The change also sets `--content-max-width` to 900px to make tables easier to navigate on large screens. Signed-off-by: Miguel Osorio <miguelosorio@google.com>
1 parent e1ede60 commit 6a39ae7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/book.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ command = "mdbook-mermaid"
1010

1111
[output.html]
1212
additional-js = ["src/third_party/mermaid.min.js", "src/third_party/mermaid-init.js"]
13+
additional-css = ["theme/custom.css"]
1314
default-theme = "light"
1415

1516
[output.html.fold]

docs/theme/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:root {
2+
--content-max-width: 900px;
3+
}
4+
5+
table {
6+
width: 100%;
7+
}

0 commit comments

Comments
 (0)