forked from fac19/week3-JICG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
121 lines (103 loc) · 2.02 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
:root {
--primaryColor: hsla(203, 60%, 57%, 0.8);
--secondaryColor: hsla(53, 90%, 75%, 0.8);
--tertiaryColor: hsla(353, 90%, 75%, 0.8);
background: url(https://images.unsplash.com/photo-1546965860-f981527a0422?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2002&q=80)
no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
body {
max-width: 30rem;
margin: 0 auto;
height: 100vh;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
}
main {
place-self: center;
font-family: "Sen", sans-serif;
background-color: var(--primaryColor);
border-radius: 2%;
padding: 1em;
}
ul {
text-align: left;
padding: 0;
}
h1 {
margin-top: 1rem;
font-size: 3.5rem;
text-align: center;
}
.todo__text--done {
text-decoration: line-through;
}
li {
list-style-type: none;
border: 5px dotted transparent;
padding: 2rem 0;
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: 1;
}
li > input {
grid-column: 1/2;
}
li > input,
li > button {
position: relative;
top: 50%;
transform: translateY(-50%);
}
li:hover {
border: 5px dotted pink;
}
li > label {
font-size: 2rem;
word-wrap: break-word;
grid-column: 2/12;
}
li > button {
height: 2em;
grid-column: 12/13;
position: relative;
background-color: var(--secondaryColor);
font-size: 1.5rem;
border: 2px solid black;
border-radius: 10px;
padding: 0.5rem;
}
li > button:hover {
border: 2px solid grey;
background-color: var(--tertiaryColor);
}
form {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 1;
height: 3rem;
}
form > input {
grid-column: 1 / 5;
padding: 0 1rem;
border: none;
background-color: aliceblue;
font-size: 1.75em;
}
form > button {
grid-column: 5 / 6;
border: none;
background-color: aliceblue;
}
.form-list > p {
color: hsl(0, 80%, 40%);
font-size: 2rem;
text-align: center;
}
.hide {
display: none;
}