-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
110 lines (96 loc) · 1.93 KB
/
style.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
:root {
--primary-color: #F4CE01;
--secondary-color: #0F0F0B;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
background-color: var(--primary-color);
font: bold 2rem 'Open Sans', sans-serif;
}
.todo {
display: flex;
width: 50vw;
flex-direction: column;
align-items: center;
margin: 0 auto;
gap: 15px;
}
.todo__title {
display: flex;
background-color: var(--secondary-color);
width: 100%;
height: 80px;
justify-content: center;
align-items: center;
margin-top: 50px;
box-shadow: 1px 1px 5px var(--secondary-color);
font-size: 3rem;
color: var(--primary-color);
}
.todo__list {
display: flex;
width: 100%;
flex-direction: column;
gap: 10px;
}
.todo__item{
display: flex;
width: 100%;
height: 60px;
justify-content: space-between;
align-items: center;
padding: 5px;
box-shadow: 1px 1px 5px var(--secondary-color);
}
.todo__item > div {
width: 80%;
}
.todo__item:hover {
cursor: pointer;
transition: all .5s ease;
background-color: var(--secondary-color);
color: var(--primary-color);
}
.todo__item > input[type='text'] {
border: none;
width: 80%;
font: inherit;
}
.todo__item > input[type='button'],
.todo__item > input[type='checkbox'] {
width: 30px;
height: 30px;
font: inherit;
}
.todo__item > input[type='checkbox']:checked + div {
text-decoration:line-through;
}
.todo__new-item{
display: flex;
background-color: #fff59d;
width: 100%;
height: 70px;
justify-content: space-evenly;
padding: 10px 0;
box-shadow: 1px 1px 5px var(--secondary-color);
margin: 10px;
font: inherit;
}
.todo__new-item > input{
background-color: #fff59d;
border: none;
width: 80%;
outline: none;
font: inherit;
}
.todo__new-item > input::placeholder {
font-style: italic;
font-weight: normal;
}