-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
114 lines (98 loc) · 1.59 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
body {
font-family: 'Comic Neue', cursive;
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
font-size: 2rem;
}
.main-box {
flex: 1;
max-width: 600px;
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
}
.user-box {
position: relative;
margin-bottom: 20px;
}
.user-box input {
width: 100%;
padding: 8px;
font-size: 16px;
border: none;
border-bottom: 1px solid #aaa;
outline: none;
background-color: transparent;
}
.user-box label {
position: absolute;
top: 0;
left: 0;
padding: 8px;
font-size: 16px;
color: #555;
pointer-events: none;
transition: 0.2s ease-out;
}
.user-box input:focus ~ label,
.user-box input:valid ~ label {
top: -20px;
left: 0;
color: #777;
font-size: 14px;
}
h2 {
text-align: center;
margin-top: 20px;
}
#books {
margin-top: 20px;
text-align: center;
}
#books .user-box {
margin-bottom: 10px;
}
#bookContainer {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.book {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
display: flex;
justify-content: space-between;
align-items: center;
gap: 45px;
}
.book-title {
flex: 1;
font-weight: bold;
}
.book-author {
color: #555;
}
.remove-button {
background-color: #ff6347;
color: #fff;
border: none;
padding: 5px 10px;
text-decoration: none;
cursor: pointer;
}
.remove-button:hover {
background-color: #cc4338;
}
.add-button {
display: inline-block;
padding: 10px 20px;
margin-top: 20px;
background-color: #4caf50;
color: #fff;
border: none;
cursor: pointer;
}