-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
168 lines (168 loc) · 3.28 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-image: linear-gradient(120deg, #ffb199, #ffbb61);
color: white;
/* min-height: 100vh; */
}
/* Extra small devices (portrait phones, less than 576px) */
@media only screen and (max-width: 575.98px) {
header,
form {
margin: 1rem;
min-height: 20vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.input-wrapper {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
}
form input {
padding: 0.5rem;
border: none;
background: white;
font-size: 1rem;
width: 10rem;
}
}
header {
font-size: 1.25rem;
}
/* Extra small devices and Small devices upto 800px) */
@media only screen and (max-width: 800px) {
header {
font-size: 1rem;
text-align: center;
}
}
header,
form {
margin: 1rem;
min-height: 20vh;
display: flex;
justify-content: center;
align-items: center;
}
.input-wrapper {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
}
form input,
form button {
padding: 0.5rem;
border: none;
background: white;
font-size: 1rem;
}
form button {
color: #ff9d80;
background: white;
cursor: pointer;
transition: all 0.3s ease;
}
form button:hover {
color: white;
background-color: #ff9d80;
}
.todo-container {
display: flex;
justify-content: center;
align-items: center;
}
.todo-list {
list-style: none;
min-width: 40%; /* a percentage of the containing block's width. */
}
/* Extra small devices and Small devices upto 800px) */
@media only screen and (max-width: 800px) {
.todo-list {
min-width: 50%;
}
}
.todo {
margin: 0.5rem;
background-color: white;
color: black;
display: flex;
justify-content: space-between;
align-items: center;
text-decoration-color: transparent;
transition: text-decoration-color 0.2s ease-out, opacity 0.2s ease-out,
transform 0.2s ease;
}
.todo-item {
flex-grow: 1;
padding: 0rem 0.5rem;
}
.complete-btn,
.trash-btn {
background-color: #ffa734;
color: white;
cursor: pointer;
border: none;
padding: 0.5rem;
font-size: 1rem;
}
.complete-btn {
background-color: rgb(87, 192, 87);
}
.fa-check,
.fa-trash {
pointer-events: none; /* So that whole encompassing button can be clicked without interruption */
}
.completed {
text-decoration: line-through;
text-decoration-color: black;
opacity: 0.5;
}
.fall {
transform: translateX(8rem);
opacity: 0;
}
select {
/* Remove all default styles from select */
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: none;
/* Adding custom styles to select */
/* color: #ffbb61; */
color: black;
width: 10rem;
cursor: pointer;
font-size: 1rem;
padding: 0.5rem;
}
.select {
margin: 1rem;
position: relative;
overflow: hidden; /* Hides the down arrow that was overflowing */
}
.select::after {
content: '\25BC'; /* Black down-pointing triangle - unicode character */
background-color: white;
color: #ff9d80;
position: absolute;
top: 0;
right: 0;
padding: 0.5rem;
pointer-events: none;
transition: all 0.3s ease;
}
.select:hover::after {
background-color: #ff9d80;
color: white;
}