From bb91c34f1583d7284bc15392a4e51646f6695a62 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Mon, 28 Sep 2020 21:50:44 +0300 Subject: [PATCH] * add print style to mobile theme --- src/content/themes/default/index.php | 3 +-- src/content/themes/default/mobile.css | 2 +- src/content/themes/default/print.css | 6 +++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/content/themes/default/index.php b/src/content/themes/default/index.php index d80e3c0..f1555e5 100644 --- a/src/content/themes/default/index.php +++ b/src/content/themes/default/index.php @@ -5,14 +5,13 @@ <?php mttinfo('title'); ?> + - - diff --git a/src/content/themes/default/mobile.css b/src/content/themes/default/mobile.css index 76821bb..a3ea1f5 100644 --- a/src/content/themes/default/mobile.css +++ b/src/content/themes/default/mobile.css @@ -26,7 +26,7 @@ h2 { margin:0; margin-bottom:2px; font-size:1rem; } #toolbar.mtt-insearch .searchbox-c { width:100%; max-width:100%; } #search { padding:5px 20px; border-radius:15px; } -#tasklist li { padding:0px 3px; overflow:hidden; } +#tasklist li { padding:0px 3px; } .task-actions { display:none; } .task-date { display:none; } .task-note-actions { display:block; padding-top:8px; } diff --git a/src/content/themes/default/print.css b/src/content/themes/default/print.css index 1604308..02f272f 100644 --- a/src/content/themes/default/print.css +++ b/src/content/themes/default/print.css @@ -1,3 +1,5 @@ +@media print { + html { height:0; } body { height:0; min-height:0; margin:0; } h2{ display: none; } @@ -36,4 +38,6 @@ li.task-completed { opacity:1; } #tagcloudbtn { display:none; } .mtt-notes-showhide { display:none; } -#taskview img { display:none; } \ No newline at end of file +#taskview img { display:none; } + +} \ No newline at end of file