From f1bd94af0d293b8a06f15a571de4f1534cfe70f2 Mon Sep 17 00:00:00 2001 From: Kara Date: Sun, 10 Sep 2023 17:45:21 -0500 Subject: [PATCH] 404 & mobile css fixes --- book.toml | 1 + theme/sidebar-style.css | 4 ++-- theme/ss14.css | 10 ++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/book.toml b/book.toml index 7c26d20a9..7c4c7f846 100644 --- a/book.toml +++ b/book.toml @@ -22,6 +22,7 @@ preferred-dark-theme = "navy" git-repository-url = "https://github.com/space-wizards/space-station-14" edit-url-template = "https://github.com/space-wizards/docs/blob/master/{path}" +site-url = "/docs/" # remove when we move to docs.ss14.io -- needed for 404 pages to render properly in subdirectories mathjax-support = true curly-quotes = true diff --git a/theme/sidebar-style.css b/theme/sidebar-style.css index b37c628c7..bb228b420 100644 --- a/theme/sidebar-style.css +++ b/theme/sidebar-style.css @@ -1,10 +1,10 @@ -@media only screen and (max-width:1439px) { +@media only screen and (max-width:1365px) { .sidetoc { display: none; } } -@media only screen and (min-width:1440px) { +@media only screen and (min-width:1366px) { main { position: relative; } diff --git a/theme/ss14.css b/theme/ss14.css index 71649d9ff..4ec8e7a66 100644 --- a/theme/ss14.css +++ b/theme/ss14.css @@ -7,10 +7,12 @@ --sidebar-active: #e23229; } -.content>main { - /* navbar button was basically a margin left but dont have that no more so */ - margin-left: 200px; -} +@media only screen and (min-width: 1366px) { + .content>main { + /* navbar button was basically a margin left but dont have that no more so */ + margin-left: 200px; + } +} /* Mostly stolen from the Rhai book (rhai.rs) theme */ .part-title {