-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
96 lines (83 loc) · 1.66 KB
/
styles.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
:root {
--neon-inner: #35beaf;
--neon-outer: #35b9aa;
--completed-todo: #2ea396;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
min-height: 100vh;
background: linear-gradient(180deg, #4d6f93 0%, #a84545a6 100%);
}
h1 {
text-align: center;
margin: 0;
padding: 20px 0 0 0;
color: #e1e1e1;
}
.container {
padding: 50px 10px 0 10px;
margin: 0 auto;
width: 100%;
max-width: 400px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 24px;
}
.search-input {
padding: 0 10px;
width: 100%;
height: 45px;
font-size: 20px;
background: none;
border: none;
border-radius: 3px;
outline: 2px solid #21303f;
transition: .22s box-shadow, .22s color;
}
.search-input:focus-visible {
box-shadow: 0 0 15px 15px var(--neon-outer), inset 0 0 25px 10px var(--neon-inner);
color: #fff;
}
.search-input::placeholder {
color: #3c3c3c;
font-size: 16px;
font-style: italic;
}
.todos-container {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: stretch;
gap: 8px;
}
.todo-item {
padding: 0 10px;
height: 45px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
border: 1px solid black;
}
.todo-item span {
pointer-events: none;
user-select: none;
}
.todo-item.completed {
background-color: var(--completed-todo);
}
.todo-item.completed span {
text-decoration: line-through;
}
.todo-item:hover {
border: 1px solid var(--neon-inner);
box-shadow: 0 0 10px 5px var(--neon-outer), inset 0 0 10px 5px var(--neon-inner);
color: #fff;
}