-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
145 lines (124 loc) · 2.37 KB
/
index.css
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
.child-container * {
display: block;
}
.strike {
text-decoration: line-through;
}
.color-display {
width: 200px;
height: 50px;
border: #555 solid;
margin: 2px;
}
/* Include the padding and border in an element's total width and height */
.todoapp * {
box-sizing: border-box;
}
/* Remove margins and padding from the list */
.todoapp ul {
margin: 0;
padding: 0;
list-style-type: none;
}
/* Style the list items */
.todoapp ul li {
cursor: pointer;
position: relative;
padding: 12px 8px 12px 40px;
background: #eee;
font-size: 18px;
transition: 0.2s;
/* make the list items unselectable */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Set all odd list items to a different color (zebra-stripes) */
.todoapp ul li:nth-child(odd) {
background: #f9f9f9;
}
/* Darker background-color on hover */
.todoapp ul li:hover {
background: #ddd;
}
/* When clicked on, add a background color and strike out text */
.todoapp ul li.checked {
background: #888;
color: #fff;
text-decoration: line-through;
}
/* Add a "checked" mark when clicked on */
.todoapp ul li.checked::before {
content: '';
position: absolute;
border-color: #fff;
border-style: solid;
border-width: 0 2px 2px 0;
top: 10px;
left: 16px;
transform: rotate(45deg);
height: 15px;
width: 7px;
}
/* Style the close button */
.todoapp .closeBtn {
position: absolute;
right: 0;
top: 0;
padding: 12px 16px 12px 16px;
}
.todoapp .closeBtn:hover {
background-color: #f44336;
color: white;
}
/* Style the header */
.todoapp .header {
background-color: #0c82d1;
padding: 30px 40px;
text-align: center;
}
/* Clear floats after the header */
.todoapp .header:after {
content: "";
display: table;
clear: both;
}
/* Style the input */
.todoapp input {
border: none;
width: 75%;
padding: 10px;
float: left;
font-size: 16px;
}
/* Style the "Add" button */
.todoapp .addBtn {
padding: 10px;
width: 25%;
background: #d9d9d9;
color: #555;
float: left;
text-align: center;
font-size: 16px;
cursor: pointer;
transition: 0.3s;
}
.todoapp .addBtn:hover {
background-color: #bbb;
}
@media (min-width: 1400px) {
.container {
width: 1370px;
}
}
@media (min-width: 1600px) {
.container {
width: 1570px;
}
}
@media (min-width: 1800px) {
.container {
width: 1770px;
}
}