-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (99 loc) · 1.86 KB
/
Copy pathindex.html
File metadata and controls
104 lines (99 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TO DO</title>
<style type="text/css">
#app {
display: flex;
flex-direction: column;
width: 600px;
margin: 50px auto;
background-color: cornsilk;
border: 1px solid burlywood;
padding: 20px;
}
h1 {
box-shadow: 0 0 5px 0 rgba(0,0,0,.2) inset;
margin: 0;
padding: 20px;
text-align: center;
}
ol {
padding: 0;
}
li {
box-shadow: 0 0 5px 0 rgba(0,0,0,.2) inset;
list-style-position: inside;
padding: 10px;
margin-bottom: 1px;
}
.controls {
display: flex;
justify-content: space-between;
}
.controls__input {
width: 300px;
padding: 5px;
}
.list__item{
display: flex;
justify-content: space-between;
vertical-align: middle;
}
.completed {
text-decoration: line-through;
}
/* .destroy {
position: relative;
width: 20px;
height: 20px;
cursor: pointer;
}
.destroy:before {
content: 'X';
display: none;
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 10px;
}
.list__item:hover>.destroy:before{
display: block;
} */
button {
cursor: pointer;
background-color: azure;
border: 1px solid burlywood;
padding: 5px 93px;
margin-left: 10px;
}
.label {
flex: 1;
}
.change,
.destroy,
.complete {
padding: 5px;
}
</style>
</head>
<body>
<div id="app">
<h1>My todo list</h1>
<ol class="list"></ol>
<div class="controls">
<label for="controls__input">
<input type="text" name=""
class="controls__input"
id="controls__input">
</label>
<button class="controls__add">Add task</button>
</div>
</div>
<script type="text/javascript" src="model.js"></script>
<script type="text/javascript" src="view.js"></script>
<script type="text/javascript" src="controller.js"></script>
<script type="text/javascript" src="app.js"></script>
</body>
</html>