From 7821dfd41f1205d8b6a8a3dc3887165e2031b13c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9l=C3=A8ne=20Corbineau?= Date: Fri, 8 Nov 2024 11:02:03 +0100 Subject: [PATCH] feat(layout): More reasonnable column sizes The width of the menu bar depends on the largest item. This may be brittle. --- docs/css/width_tweak.css | 9 +++++++++ mkdocs.yml | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 docs/css/width_tweak.css diff --git a/docs/css/width_tweak.css b/docs/css/width_tweak.css new file mode 100644 index 0000000..40131cc --- /dev/null +++ b/docs/css/width_tweak.css @@ -0,0 +1,9 @@ +:root { + --page-width: 120em +} + +@media only screen and (min-width: 70em) { + .terminal-mkdocs-main-grid { + grid-template-columns: max-content 10fr; + } +} diff --git a/mkdocs.yml b/mkdocs.yml index 0662132..d63651e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,6 +4,10 @@ theme: name: terminal custom_dir: overrides # features: navigation.top.hide + +extra_css: + - css/width_tweak.css + nav: - Projets: - Borne d'arcade: projects/arcade.md