From 1885859c1e95705d9ff775ba0b87d4d9421486c6 Mon Sep 17 00:00:00 2001 From: ykrods Date: Thu, 4 Jul 2019 17:14:39 +0900 Subject: [PATCH] unset mix-width and fit sidebar to window on smartphone --- alabaster/static/alabaster.css_t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/alabaster/static/alabaster.css_t b/alabaster/static/alabaster.css_t index b6f790b..0d54537 100644 --- a/alabaster/static/alabaster.css_t +++ b/alabaster/static/alabaster.css_t @@ -625,13 +625,13 @@ a:hover tt, a:hover code { div.sphinxsidebar { display: block; float: none; - width: 102.5%; + width: 100%; {%- if theme_fixed_sidebar|lower == 'true' %} margin: -20px -30px 20px -30px; {%- else %} margin: 50px -30px -20px -30px; {%- endif %} - padding: 10px 20px; + padding: 10px 30px; background: {{ theme_narrow_sidebar_bg }}; color: {{ theme_narrow_sidebar_fg }}; } @@ -663,6 +663,9 @@ a:hover tt, a:hover code { } div.body { + /* reset basic.css */ + min-width: unset; + min-height: 0; padding: 0; }