Commit fdc388bc authored by Pascal Hartig's avatar Pascal Hartig

Merge pull request #1127 from olaf-k/css_update

Fixes #1120 - Update of tpl.css to match current style
parents 3ff63ae4 40dec7de
...@@ -5,6 +5,31 @@ ...@@ -5,6 +5,31 @@
{macro main ()} {macro main ()}
#label-toggle-all {
display: none;
}
.toggle-all {
position: absolute;
top: -55px;
left: -12px;
width: 60px;
height: 34px;
text-align: center;
border: none; /* Mobile Safari */
}
.toggle-all:before {
content: '❯';
font-size: 22px;
color: #e6e6e6;
padding: 10px 27px 10px 27px;
}
.toggle-all:checked:before {
color: #737373;
}
.todo-list { .todo-list {
margin: 0; margin: 0;
padding: 0; padding: 0;
...@@ -14,16 +39,27 @@ ...@@ -14,16 +39,27 @@
.todo-list li { .todo-list li {
position: relative; position: relative;
font-size: 24px; font-size: 24px;
border-bottom: 1px dotted #ccc; border-bottom: 1px solid #ededed;
} }
.todo-list li:last-child { .todo-list li:last-child {
border-bottom: none; border-bottom: none;
} }
.todo-list li.completed label { .todo-list li.editing {
color: #a9a9a9; border-bottom: none;
text-decoration: line-through; padding: 0;
}
.todo-list li.editing .edit {
display: block;
width: 506px;
padding: 13px 17px 12px 17px;
margin: 0 0 0 43px;
}
.todo-list li.editing .view {
display: none;
} }
.todo-list li .toggle { .todo-list li .toggle {
...@@ -37,42 +73,30 @@ ...@@ -37,42 +73,30 @@
margin: auto 0; margin: auto 0;
border: none; /* Mobile Safari */ border: none; /* Mobile Safari */
-webkit-appearance: none; -webkit-appearance: none;
/*-moz-appearance: none;*/
-ms-appearance: none; -ms-appearance: none;
-o-appearance: none;
appearance: none; appearance: none;
} }
.todo-list li .toggle:after { .todo-list li .toggle:after {
content: '✔'; content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="none" stroke="#ededed" stroke-width="3"/></svg>');
line-height: 43px; /* 40 + a couple of pixels visual adjustment */
font-size: 20px;
color: #d9d9d9;
text-shadow: 0 -1px 0 #bfbfbf;
} }
.todo-list li .toggle:checked:after { .todo-list li .toggle:checked:after {
color: #85ada7; content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="none" stroke="#bddad5" stroke-width="3"/><path fill="#5dc2af" d="M72 25L42 71 27 56l-4 4 20 20 34-52z"/></svg>');
text-shadow: 0 1px 0 #669991;
bottom: 1px;
position: relative;
} }
.todo-list li label { .todo-list li label {
white-space: pre;
word-break: break-word; word-break: break-word;
padding: 15px; padding: 15px 60px 15px 15px;
margin-left: 45px; margin-left: 45px;
display: block; display: block;
line-height: 1.2; line-height: 1.2;
-webkit-transition: color 0.4s;
-moz-transition: color 0.4s;
-ms-transition: color 0.4s;
-o-transition: color 0.4s;
transition: color 0.4s; transition: color 0.4s;
} }
.todo-list li.completed label { .todo-list li.completed label {
color: #a9a9a9; color: #d9d9d9;
text-decoration: line-through; text-decoration: line-through;
} }
...@@ -85,80 +109,66 @@ ...@@ -85,80 +109,66 @@
width: 40px; width: 40px;
height: 40px; height: 40px;
margin: auto 0; margin: auto 0;
font-size: 22px; font-size: 30px;
color: #a88a8a; color: #cc9a9a;
-webkit-transition: all 0.2s; margin-bottom: 11px;
-moz-transition: all 0.2s; transition: color 0.2s ease-out;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
} }
.todo-list li .destroy:hover { .todo-list li .destroy:hover {
text-shadow: 0 0 1px #000, color: #af5b5e;
0 0 10px rgba(199, 107, 107, 0.8);
-webkit-transform: scale(1.3);
-moz-transform: scale(1.3);
-ms-transform: scale(1.3);
-o-transform: scale(1.3);
transform: scale(1.3);
} }
.todo-list li .destroy:after { .todo-list li .destroy:after {
content: ''; content: '×';
} }
.todo-list li:hover .destroy { .todo-list li:hover .destroy {
display: block; display: block;
} }
.todo-list li.editing:last-child {
margin-bottom: -1px;
}
.todo-count { .todo-count {
float: left; float: left;
text-align: left; text-align: left;
} }
#label-toggle-all { .todo-count strong {
display: none; font-weight: 300;
} }
.toggle-all { .filters {
margin: 0;
padding: 0;
list-style: none;
position: absolute; position: absolute;
top: -42px; right: 0;
left: -4px; left: 0;
width: 40px;
text-align: center;
border: none; /* Mobile Safari */
}
.toggle-all:before {
content: '»';
font-size: 28px;
color: #d9d9d9;
padding: 0 25px 7px;
}
.toggle-all:checked:before {
color: #737373;
} }
.todo-list li.editing { .filters li {
border-bottom: none; display: inline;
padding: 0;
} }
.todo-list li.editing .edit { .filters li a {
display: block; color: inherit;
width: 506px; margin: 3px;
padding: 13px 17px 12px 17px; padding: 3px 7px;
margin: 0 0 0 43px; text-decoration: none;
border: 1px solid transparent;
border-radius: 3px;
} }
.todo-list li.editing .view { .filters li a.selected,
display: none; .filters li a:hover {
border-color: rgba(175, 47, 47, 0.1);
} }
.todo-list li.editing:last-child { .filters li a.selected {
margin-bottom: -1px; border-color: rgba(175, 47, 47, 0.2);
} }
.filter-active li.completed { .filter-active li.completed {
...@@ -172,29 +182,6 @@ ...@@ -172,29 +182,6 @@
display: block display: block
} }
.filters {
margin: 0;
padding: 0;
list-style: none;
position: absolute;
right: 0;
left: 0;
}
.filters li {
display: inline;
}
.filters li a {
color: #83756f;
margin: 2px;
text-decoration: none;
}
.filters li a.selected {
font-weight: bold;
}
/* /*
This replaces the original hack to remove background from Mobile Safari. This replaces the original hack to remove background from Mobile Safari.
*/ */
...@@ -210,10 +197,6 @@ ...@@ -210,10 +197,6 @@
} }
.toggle-all { .toggle-all {
top: -56px;
left: -15px;
width: 65px;
height: 41px;
-webkit-transform: rotate(90deg); -webkit-transform: rotate(90deg);
transform: rotate(90deg); transform: rotate(90deg);
-webkit-appearance: none; -webkit-appearance: none;
...@@ -222,6 +205,12 @@ ...@@ -222,6 +205,12 @@
{/if} {/if}
@media (max-width: 430px) {
.filters {
bottom: 10px;
}
}
{/macro} {/macro}
{/CSSTemplate} {/CSSTemplate}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment