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
2f3a90e8
Commit
2f3a90e8
authored
Jan 07, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The edit input field no longer moves when activated
- CSS fixes - Remove an unnecessary div wrapper
parent
8c0549b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
14 deletions
+27
-14
todo-example/template/css/app.css
todo-example/template/css/app.css
+23
-6
todo-example/template/index.html
todo-example/template/index.html
+4
-8
No files found.
todo-example/template/css/app.css
View file @
2f3a90e8
...
...
@@ -61,19 +61,23 @@ body {
display
:
none
;
}
#todo-list
li
{
#todo-list
{
margin
:
10px
0
;
padding
:
0
;
list-style
:
none
;
}
#todo-list
li
{
padding
:
1
5px
20px
15
px
0
;
padding
:
1
8px
20px
18
px
0
;
position
:
relative
;
font-size
:
24px
;
border-bottom
:
1px
solid
#cccccc
;
}
#todo-list
li
:last-child
{
border-bottom
:
none
;
}
#todo-list
li
.done
span
{
color
:
#777777
;
text-decoration
:
line-through
;
...
...
@@ -94,12 +98,21 @@ body {
display
:
block
;
}
#todo-list
li
.edit
{
display
:
none
;
#todo-list
li
.editing
{
border-bottom
:
none
;
margin-top
:
-1px
;
padding
:
0
;
}
#todo-list
li
.editing
:last-child
{
margin-bottom
:
-1px
;
}
#todo-list
li
.editing
.edit
{
display
:
block
;
width
:
444px
;
padding
:
13px
15px
14px
20px
;
margin
:
0
;
}
#todo-list
li
.editing
.view
{
...
...
@@ -110,15 +123,19 @@ body {
word-break
:
break-word
;
}
#todo-list
li
.edit
{
display
:
none
;
}
#todoapp
footer
{
display
:
none
;
margin
:
20px
-20px
-20px
-20px
;
margin
:
0
-20px
-20px
-20px
;
overflow
:
hidden
;
color
:
#555555
;
background
:
#f4fce8
;
border-top
:
1px
solid
#ededed
;
padding
:
0
20px
;
line-height
:
3
6
px
;
line-height
:
3
7
px
;
-webkit-border-radius
:
0
0
5px
5px
;
-moz-border-radius
:
0
0
5px
5px
;
-ms-border-radius
:
0
0
5px
5px
;
...
...
todo-example/template/index.html
View file @
2f3a90e8
...
...
@@ -2,14 +2,14 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<title>
T
odoMVC Template
</title>
<title>
T
emplate - TodoMVC
</title>
<link
rel=
"stylesheet"
href=
"css/app.css"
>
</head>
<body>
<div
id=
"todoapp"
>
<header>
<h1>
Todos
</h1>
<input
type=
"text"
placeholder=
"What needs to be done?"
>
<input
id=
"new-todo"
type=
"text"
placeholder=
"What needs to be done?"
>
</header>
<!-- this section is hidden by default and you be shown when there are todos and hidden when not -->
<section
id=
"main"
>
...
...
@@ -22,9 +22,7 @@
<span>
Create a TodoMVC template
</span>
<a
class=
"destroy"
></a>
</div>
<div
class=
"edit"
>
<input
type=
"text"
value=
"Create a TodoMVC template"
>
</div>
<input
class=
"edit"
type=
"text"
value=
"Create a TodoMVC template"
>
</li>
<li>
<div
class=
"view"
>
...
...
@@ -32,9 +30,7 @@
<span>
Rule the web
</span>
<a
class=
"destroy"
></a>
</div>
<div
class=
"edit"
>
<input
type=
"text"
value=
"Rule the web"
>
</div>
<input
class=
"edit"
type=
"text"
value=
"Rule the web"
>
</li>
</ul>
</section>
...
...
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