Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
a4dd9746
Commit
a4dd9746
authored
Jan 14, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch from `<span>` to `<label>` as the todo text wrapper, since it's the label to the checkbox
parent
338c0ff7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
template/css/app.css
template/css/app.css
+3
-3
template/index.html
template/index.html
+2
-2
No files found.
template/css/app.css
View file @
a4dd9746
...
@@ -78,7 +78,7 @@ body {
...
@@ -78,7 +78,7 @@ body {
border-bottom
:
none
;
border-bottom
:
none
;
}
}
#todo-list
li
.done
span
{
#todo-list
li
.done
label
{
color
:
#777777
;
color
:
#777777
;
text-decoration
:
line-through
;
text-decoration
:
line-through
;
}
}
...
@@ -86,7 +86,7 @@ body {
...
@@ -86,7 +86,7 @@ body {
#todo-list
li
.destroy
{
#todo-list
li
.destroy
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
top
:
16
px
;
top
:
20
px
;
right
:
10px
;
right
:
10px
;
cursor
:
pointer
;
cursor
:
pointer
;
width
:
20px
;
width
:
20px
;
...
@@ -119,7 +119,7 @@ body {
...
@@ -119,7 +119,7 @@ body {
display
:
none
;
display
:
none
;
}
}
#todo-list
li
.view
span
{
#todo-list
li
.view
label
{
word-break
:
break-word
;
word-break
:
break-word
;
}
}
...
...
template/index.html
View file @
a4dd9746
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<li
class=
"done"
>
<li
class=
"done"
>
<div
class=
"view"
>
<div
class=
"view"
>
<input
class=
"toggle"
type=
"checkbox"
checked
>
<input
class=
"toggle"
type=
"checkbox"
checked
>
<
span>
Create a TodoMVC template
</span
>
<
label>
Create a TodoMVC template
</label
>
<a
class=
"destroy"
></a>
<a
class=
"destroy"
></a>
</div>
</div>
<input
class=
"edit"
type=
"text"
value=
"Create a TodoMVC template"
>
<input
class=
"edit"
type=
"text"
value=
"Create a TodoMVC template"
>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<li>
<li>
<div
class=
"view"
>
<div
class=
"view"
>
<input
class=
"toggle"
type=
"checkbox"
>
<input
class=
"toggle"
type=
"checkbox"
>
<
span>
Rule the web
</span
>
<
label>
Rule the web
</label
>
<a
class=
"destroy"
></a>
<a
class=
"destroy"
></a>
</div>
</div>
<input
class=
"edit"
type=
"text"
value=
"Rule the web"
>
<input
class=
"edit"
type=
"text"
value=
"Rule the web"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment