* add print style to mobile theme

This commit is contained in:
Max Pozdeev 2020-09-28 21:50:44 +03:00
parent 94921e33fc
commit bb91c34f15
3 changed files with 7 additions and 4 deletions

View file

@ -5,14 +5,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php mttinfo('title'); ?></title>
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>style.css?v=<?php mttinfo('version'); ?>" media="all" />
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>print.css?v=<?php mttinfo('version'); ?>" media="print" />
<?php if(Config::get('rtl')): ?>
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>style_rtl.css?v=<?php mttinfo('version'); ?>" media="all" />
<?php endif; ?>
<?php if(Config::get('mobile')): ?>
<meta name="viewport" id="viewport" content="width=device-width" />
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>mobile.css?v=<?php mttinfo('version'); ?>" media="all" />
<?php else: ?>
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>print.css?v=<?php mttinfo('version'); ?>" media="print" />
<?php endif; ?>
</head>

View file

@ -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; }

View file

@ -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; }
#taskview img { display:none; }
}