* Now shows list name in print style

This commit is contained in:
Max Pozdeev 2020-09-21 22:06:53 +03:00
parent fe2485525d
commit 6389f3a863
3 changed files with 20 additions and 13 deletions

View file

@ -2,21 +2,28 @@ html { height:0; }
body { height:0; min-height:0; margin:0; }
h2{ display: none; }
h3 { border-bottom:2px solid #777777; }
#lists { display: none; }
#toolbar { display: none; }
.small-bar { display:none; }
.task-actions { display:none; }
#bar { display:none; }
#taskviewcontainer { border:none; }
#taskviewcontainer img { display:none; }
.topblock { display:none; }
.mtt-tab { display:none; }
.mtt-tab.mtt-tabs-selected { display:block; border:none; background:none; margin:0; }
.mtt-tab.mtt-tabs-selected a { padding:0; display:inline-block; height:auto; }
.mtt-tab.mtt-tabs-selected .list-action { display:none; }
.mtt-tab a span { text-align:left; padding:0; max-width:none; font-size:1.3rem; color:#000; }
.mtt-tabs-add-button { display:none; }
#list_all { display:none; }
#tabs_buttons { display:none; }
#taskview { padding-left:0; font-weight:normal; }
#taskview .arrdown { display:none; }
#tasklist { list-style-type: decimal; list-style-position: outside; }
#tasklist li { border-bottom:none; margin-left:2.5rem; /*border-bottom:1px solid #f0f0f0;*/ }
#tasklist { list-style-type: decimal; list-style-position: outside; }
#tasklist li { padding-left:0px; margin-left:30px; border-bottom:none; padding-bottom: 8px; }
div.task-note-block { border-left:1px solid #777777; background:none; padding-left:5px; margin-top:5px; padding-top:0px; font-size:9pt; color:#333333; }
.task-middle { margin-left:0px; margin-right:3px; }
.task-left { display:none; }
.task-actions { display:none; }
.task-date { white-space:nowrap; margin-left:10px; }
#tasklist li.today, #tasklist li.past { background-color:#ffffff; border-color:#dedede; }
.task-prio { font-weight:bold; }

View file

@ -169,8 +169,8 @@ li.task-expanded .task-toggle { transform:rotate(90deg); }
/* #tasklist input[type="checkbox"] { vertical-align:-1px; } /* Chrome */
#tasklist { list-style-type: none; margin: 0; padding: 0;}
#tasklist li { padding:6px 2px 6px 6px; border-bottom:1px solid #DEDEDE; min-height:18px; margin-bottom:1px; background-color:#fff;
display:flex; justify-content:flex-start; align-items:baseline; }
#tasklist li { padding:6px 2px 6px 6px; border-bottom:1px solid #DEDEDE; min-height:18px; margin-bottom:1px; background-color:#fff; }
#tasklist .task-container { display:flex; justify-content:flex-start; align-items:baseline; }
#tasklist li:hover { background-color:#f6f6f6; }
.task-left { display:flex; align-items:baseline; flex-shrink:0; /* IE11 */}
.task-middle { flex-grow:1; margin-left: 5px; min-width:0; /*for long text*/ flex-basis:0; /* IE11 */}

View file

@ -928,8 +928,8 @@ function loadTasks(opts)
function prepareTaskStr(item, noteExp)
{
return '<li id="taskrow_'+item.id+'" class="' + (item.compl?'task-completed ':'') + item.dueClass + (item.note!=''?' task-has-note':'') +
((curList.showNotes && item.note != '') || noteExp ? ' task-expanded' : '') + prepareTagsClass(item.tags_ids) + '">' +
prepareTaskBlocks(item) + "</li>\n";
((curList.showNotes && item.note != '') || noteExp ? ' task-expanded' : '') + prepareTagsClass(item.tags_ids) + '"><div class="task-container">' +
prepareTaskBlocks(item) + "</div></li>\n";
};
_mtt.prepareTaskStr = prepareTaskStr;