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
Sven Franck
todomvc
Commits
8c0549b9
Commit
8c0549b9
authored
Jan 07, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ID instead of class in multiple places
parent
780c9460
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
todo-example/template/css/app.css
todo-example/template/css/app.css
+14
-14
todo-example/template/index.html
todo-example/template/index.html
+5
-5
No files found.
todo-example/template/css/app.css
View file @
8c0549b9
...
...
@@ -57,29 +57,29 @@ body {
font-style
:
italic
;
}
#
todoapp
#
main
{
#main
{
display
:
none
;
}
#todo
app
.items
{
#todo
-list
li
{
margin
:
10px
0
;
padding
:
0
;
list-style
:
none
;
}
#todo
app
.item
{
#todo
-list
li
{
padding
:
15px
20px
15px
0
;
position
:
relative
;
font-size
:
24px
;
border-bottom
:
1px
solid
#cccccc
;
}
#todo
app
.item
.done
span
{
#todo
-list
li
.done
span
{
color
:
#777777
;
text-decoration
:
line-through
;
}
#todo
app
.item
.destroy
{
#todo
-list
li
.destroy
{
display
:
none
;
position
:
absolute
;
top
:
16px
;
...
...
@@ -90,23 +90,23 @@ body {
background
:
url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAABGdBTUEAALGPC/xhBQAAACdQTFRFzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMAAAA////zMzMhnu0WAAAAAt0Uk5T5u3pqtV3jFQEKAC0bVelAAAAfUlEQVQI12NYtWpFsc8R865VqxhWrZpyBgg8QcylZ8AgCsjMgTCPrWJYfgYKqhjWwJgaDDVnzpw+c2bPmTPHGWzOnNm95/TuM2cOM/AARXfvBooeZAAp270bRCIz4QoOIGtDMqwJZoUEQzvCYrhzuhhWtUKYEahOX7UK6iEA3A6NUGwCTZIAAAAASUVORK5CYII=')
no-repeat
center
center
;
}
#todo
app
.item
:hover
.destroy
{
#todo
-list
li
:hover
.destroy
{
display
:
block
;
}
#todo
app
.item
.edit
{
#todo
-list
li
.edit
{
display
:
none
;
}
#todo
app
.item
.editing
.edit
{
#todo
-list
li
.editing
.edit
{
display
:
block
;
}
#todo
app
.item
.editing
.view
{
#todo
-list
li
.editing
.view
{
display
:
none
;
}
#todo
app
.item
.view
span
{
#todo
-list
li
.view
span
{
word-break
:
break-word
;
}
...
...
@@ -126,7 +126,7 @@ body {
border-radius
:
0
0
5px
5px
;
}
#
todoapp
.clear
{
#
clear-completed
{
display
:
none
;
float
:
right
;
line-height
:
20px
;
...
...
@@ -150,7 +150,7 @@ body {
box-shadow
:
rgba
(
0
,
0
,
0
,
0.2
)
0
-1px
0
0
;
}
#
todoapp
.clear
:hover
{
#
clear-completed
:hover
{
background
:
rgba
(
0
,
0
,
0
,
0.15
);
-webkit-box-shadow
:
rgba
(
0
,
0
,
0
,
0.3
)
0
-1px
0
0
;
-moz-box-shadow
:
rgba
(
0
,
0
,
0
,
0.3
)
0
-1px
0
0
;
...
...
@@ -159,12 +159,12 @@ body {
box-shadow
:
rgba
(
0
,
0
,
0
,
0.3
)
0
-1px
0
0
;
}
#
todoapp
.clear
:active
{
#
clear-completed
:active
{
position
:
relative
;
top
:
1px
;
}
#todo
app
.
count
span
{
#todo
-
count
span
{
font-weight
:
bold
;
}
...
...
todo-example/template/index.html
View file @
8c0549b9
...
...
@@ -15,8 +15,8 @@
<section
id=
"main"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<ul
class=
"items
"
>
<li
class=
"
item
done"
>
<ul
id=
"todo-list
"
>
<li
class=
"done"
>
<div
class=
"view"
>
<input
class=
"toggle"
type=
"checkbox"
checked
>
<span>
Create a TodoMVC template
</span>
...
...
@@ -26,7 +26,7 @@
<input
type=
"text"
value=
"Create a TodoMVC template"
>
</div>
</li>
<li
class=
"item"
>
<li>
<div
class=
"view"
>
<input
class=
"toggle"
type=
"checkbox"
>
<span>
Rule the web
</span>
...
...
@@ -40,8 +40,8 @@
</section>
<!-- this footer needs to be shown with JS when there are todos and hidden when not -->
<footer>
<a
class=
"clear
"
>
Clear completed
</a>
<div
class=
"
count"
></div>
<a
id=
"clear-completed
"
>
Clear completed
</a>
<div
id=
"todo-
count"
></div>
</footer>
</div>
<div
id=
"instructions"
>
...
...
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