From babe849346a656375346bb70162c3d6752475b4b Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Sun, 23 Aug 2020 12:13:10 +0300 Subject: [PATCH] .duedate-arrow removed, arrow is set with .duedate:before content --- src/mytinytodo.js | 2 +- src/themes/default/style.css | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mytinytodo.js b/src/mytinytodo.js index 815aa0b..8094e62 100644 --- a/src/mytinytodo.js +++ b/src/mytinytodo.js @@ -914,7 +914,7 @@ function prepareTagsClass(ids) function prepareDuedate(item) { if(!item.duedate) return ''; - return ' '+item.dueStr+''; + return ''+item.dueStr+''; }; diff --git a/src/themes/default/style.css b/src/themes/default/style.css index c11695a..5ff6e90 100644 --- a/src/themes/default/style.css +++ b/src/themes/default/style.css @@ -48,7 +48,7 @@ a { color:#0000ff; cursor:pointer; text-decoration:underline; } .mtt-tabs { list-style:none; padding:0; margin:0; } .mtt-tabs li { margin:1px 3px 0 0; float:left; } .mtt-tab { background-color:#fbfbfb; border:1px solid #ededed; border-bottom:none; border-top-right-radius:8px; } -.mtt-tab a { position:relative; margin:0; font-size:0.9em; text-decoration:none; text-align:center; white-space:nowrap; color:#333333; display:block; height:20px; padding:6px 6px 0px 2px; outline:none; vertical-align:top; } +.mtt-tab a { position:relative; margin:0; font-size:0.9em; text-decoration:none; text-align:center; white-space:nowrap; color:#333333; display:block; height:20px; padding:6px 6px 0px 6px; outline:none; vertical-align:top; } .mtt-tab a span { display:inline-block; min-width:75px; max-width:195px; cursor:pointer; padding:0; overflow:hidden; } .mtt-tab .list-action { display:none; float:left; position:absolute; top:6px; right:5px; width:16px; height:16px; background:transparent url(images/arrdown.svg) no-repeat; cursor:pointer; } .mtt-tab .list-action:hover, .mtt-tab .list-action.mtt-menu-button-active { background-image:url(images/arrdown-hover.svg); } @@ -186,6 +186,7 @@ li.task-expanded .task-toggle { background-image:url(images/note-toggled.svg); } .task-tags .tag { font-size:0.8em; font-weight:bold; color:#333333; text-decoration:underline; } .task-tags .tag:hover { } .duedate { color:#333333; padding:0px; padding-left:1px; margin-left:5px; } +.duedate:before { content:'\2192\20'; } li.task-completed .duedate { /*font-size:0.8em;*/ display:none; } #tasklist li.soon .duedate { color:#008000; } #tasklist li.today .duedate { color:#FF0000; }