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
3b319a3d
Commit
3b319a3d
authored
Jan 07, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it clear the #main section is hidden by default
parent
c7f5709c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
todo-example/template/css/app.css
todo-example/template/css/app.css
+1
-1
todo-example/template/index.html
todo-example/template/index.html
+4
-6
No files found.
todo-example/template/css/app.css
View file @
3b319a3d
...
@@ -57,7 +57,7 @@ body {
...
@@ -57,7 +57,7 @@ body {
font-style
:
italic
;
font-style
:
italic
;
}
}
#todoapp
#
toggle-all-container
{
#todoapp
#
main
{
display
:
none
;
display
:
none
;
}
}
...
...
todo-example/template/index.html
View file @
3b319a3d
...
@@ -11,12 +11,10 @@
...
@@ -11,12 +11,10 @@
<h1>
Todos
</h1>
<h1>
Todos
</h1>
<input
type=
"text"
placeholder=
"What needs to be done?"
>
<input
type=
"text"
placeholder=
"What needs to be done?"
>
</header>
</header>
<section>
<!-- this section is hidden by default and you be shown when there are todos and hidden when not -->
<!-- toggle-all-container is hidden by default and should be shown when there are todos, and hidden when not -->
<section
id=
"main"
>
<div
id=
"toggle-all-container"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
</div>
<ul
class=
"items"
>
<ul
class=
"items"
>
<li
class=
"item done"
>
<li
class=
"item done"
>
<div
class=
"view"
title=
"Double click to edit..."
>
<div
class=
"view"
title=
"Double click to edit..."
>
...
...
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