diff --git a/docs/overrides/hide-titles.css b/docs/overrides/hide-titles.css new file mode 100644 index 0000000..c3b625d --- /dev/null +++ b/docs/overrides/hide-titles.css @@ -0,0 +1,3 @@ +.md-content h1:first-of-type { + display: none; +} diff --git a/docs/overrides/hide-toc.css b/docs/overrides/hide-toc.css new file mode 100644 index 0000000..f37eae7 --- /dev/null +++ b/docs/overrides/hide-toc.css @@ -0,0 +1,3 @@ +.md-sidebar--secondary { + display: none; +} diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 0000000..9543204 --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,17 @@ +.ascii-wrapper { + width: 100%; + display: flex; + justify-content: center; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + padding: 1rem 0; +} + +.ascii-wrapper pre { + width: 100%; + font-size: clamp(0.4rem, 1.5cqw, 0.75rem); + line-height: 1.2; + margin: 0; + white-space: pre; +} + diff --git a/docs/extra.css b/docs/stylesheets/extra.css~ similarity index 100% rename from docs/extra.css rename to docs/stylesheets/extra.css~ diff --git a/mkdocs.yml b/mkdocs.yml index 76e62b7..b78673b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -39,4 +39,6 @@ plugins: fallback_to_build_date: true type: date extra_css: - - extra.css + - stylesheets/extra.css + - overrides/hide-titles.css + - overrides/hide-toc.css diff --git a/mkdocs.yml~ b/mkdocs.yml~ index 3c25398..76e62b7 100644 --- a/mkdocs.yml~ +++ b/mkdocs.yml~ @@ -8,6 +8,8 @@ nav: - Rapport: rapport.md theme: name: 'material' + features: + - toc.integrate language: sv font: text: 'Ubuntu'