Commit 78a05954 authored by Sindre Sorhus's avatar Sindre Sorhus

Template: Add support for long todos that uses more than one line

parent 5690847f
...@@ -223,7 +223,12 @@ WebKit supports styling of inputs */ ...@@ -223,7 +223,12 @@ WebKit supports styling of inputs */
#todo-list li .toggle { #todo-list li .toggle {
text-align: center; text-align: center;
width: 35px; width: 40px;
height: 40px;
position: absolute;
top: 0;
bottom: 0;
margin: auto 0;
-webkit-appearance: none; -webkit-appearance: none;
/*-moz-appearance: none;*/ /*-moz-appearance: none;*/
-ms-appearance: none; -ms-appearance: none;
...@@ -234,7 +239,7 @@ WebKit supports styling of inputs */ ...@@ -234,7 +239,7 @@ WebKit supports styling of inputs */
#todo-list li .toggle:after { #todo-list li .toggle:after {
font-size: 18px; font-size: 18px;
content: '✔'; content: '✔';
line-height: 40px; line-height: 43px; /* 40 + a couple of pixels visual adjustment */
font-size: 20px; font-size: 20px;
color: #d9d9d9; color: #d9d9d9;
text-shadow: 0 -1px 0 #bfbfbf; text-shadow: 0 -1px 0 #bfbfbf;
...@@ -249,8 +254,9 @@ WebKit supports styling of inputs */ ...@@ -249,8 +254,9 @@ WebKit supports styling of inputs */
#todo-list li label { #todo-list li label {
word-break: break-word; word-break: break-word;
margin: 20px 15px; margin: 15px 15px 15px 60px;
display: inline-block; display: inline-block;
line-height: 1.2;
-webkit-transition: color 0.4s; -webkit-transition: color 0.4s;
-moz-transition: color 0.4s; -moz-transition: color 0.4s;
-ms-transition: color 0.4s; -ms-transition: color 0.4s;
...@@ -266,10 +272,12 @@ WebKit supports styling of inputs */ ...@@ -266,10 +272,12 @@ WebKit supports styling of inputs */
#todo-list li .destroy { #todo-list li .destroy {
display: none; display: none;
position: absolute; position: absolute;
top: 10px; top: 0;
right: 10px; right: 10px;
bottom: 0;
width: 40px; width: 40px;
height: 40px; height: 40px;
margin: auto 0;
font-size: 22px; font-size: 22px;
color: #a88a8a; color: #a88a8a;
-webkit-transition: all 0.2s; -webkit-transition: all 0.2s;
......
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