From 4232a9a7656357287916601c8671b4141f1d4bda Mon Sep 17 00:00:00 2001 From: Zatalyz Date: Wed, 3 Jun 2020 18:03:33 +0200 Subject: [PATCH] Modif sur les toggles (sidebar et toc) afin de les aligner et pouvoir les utiliser/voir sur mobile --- css/article.less | 19 +++++++++++++++++-- css/mobile.less | 2 +- main.php | 10 ++++------ 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/css/article.less b/css/article.less index 8b504de..5deb8f1 100644 --- a/css/article.less +++ b/css/article.less @@ -51,12 +51,27 @@ } .dokuwiki h3.toggle { - padding: .2em .5em; + padding: 0; + margin: 0; + padding: .2em .5em; +} + +.dokuwiki .dw__toc h3.toggle { + padding: .2em .5em; + display: flex; + align-items: center; + flex-direction: row-reverse; + justify-content: space-between; } .dokuwiki .toggle strong { - float: right; + /*float: right;*/ margin: 0 .2em; + font-size: 1.5em; + /*position: absolute; + right: 1em;*/ + display:flex; + flex-direction:row-reverse; } [dir=rtl] .dokuwiki .toggle strong { float: left; diff --git a/css/mobile.less b/css/mobile.less index afb6554..26f73ba 100644 --- a/css/mobile.less +++ b/css/mobile.less @@ -186,7 +186,7 @@ #dokuwiki__sidebar > .pad, .dokuwiki div.page { - padding: .5em; + padding: 0; margin:0; } diff --git a/main.php b/main.php index 434bb68..3d6a072 100644 --- a/main.php +++ b/main.php @@ -81,21 +81,19 @@ $showSidebar = $hasSidebar && ($ACT=='show');
- + + + +