-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
199 lines (170 loc) · 2.98 KB
/
index.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
:root {
--bg-color: hsl(0, 6%, 90%);
--txt-color: hsl(180, 87%, 12%);
--odd-color: hsl(240, 0.6%, 30.8%);
--even-color: hsl(0, 0%, 100%);
--font-fam: 'Poppins', sans-serif;
--light-blue: hsl(240, 100%, 50%);
}
html {
box-sizing: border-box;
font-size: 100%;
}
*,
*::after,
*::before {
box-sizing: inherit;
padding: 0;
margin: 0;
}
body {
font-family: var(--font-fam);
background-color: var(--bg-color);
}
a {
text-decoration: none;
color: hsl(0, 0%, 0%);
}
/* header styles */
.header {
display: flex;
justify-content: space-between;
padding: 18px;
background: white;
box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
position: fixed;
width: 100%;
margin-bottom: 24px;
top: 0;
}
form ul li {
list-style-type: none;
}
.header li {
list-style: none;
margin-right: 41px;
}
@media (max-width: 768px) {
.header li {
margin-right: 12px;
}
}
.logo {
font-weight: 500;
font-size: 21px;
}
.header-nav ul {
display: flex;
}
.footer {
position: fixed;
bottom: 0;
width: 100%;
padding: 10px 31px;
box-shadow: 1px 1px 13px rgba(0, 0, 0, 0.1);
background: white;
}
.main {
margin-top: 79px;
}
.display-date {
text-align: right;
margin-right: 30px;
}
.contact-container .contact-title {
text-align: center;
font-size: 29px;
margin-top: 36px;
}
.contact-container .description {
width: 70%;
margin-inline: auto;
margin-top: 22px;
}
.contact-container .description ul {
margin-top: 21px;
margin-left: 38px;
}
/* form styles */
.space-inputs {
width: 100%;
padding: 10px 4px;
font-size: 14.5px;
font-family: 'Poppins', sans-serif;
margin-bottom: 10px;
padding-left: 10px;
}
.space-inputs:focus {
border: thin solid green;
outline: none;
}
form {
margin-block: 8px;
margin-inline: 10%;
}
.form-title,
.disp-title {
text-align: center;
font-size: 29px;
margin-block: 12px;
}
.add-btn {
display: block;
margin-left: auto;
padding: 6px 20px;
font-size: 16px;
color: var(--txt-color);
font-family: var(--font-fam);
font-weight: 500;
cursor: pointer;
box-shadow: 1px 1px 3px black;
}
.book-container {
display: flex;
justify-content: space-between;
padding: 10px;
background-color: var(--even-color);
}
.book-container:nth-child(odd) {
color: white;
background-color: var(--odd-color);
}
.book-container button {
color: var(--txt-color);
padding: 2px;
font-family: var(--font-fam);
font-weight: 500;
cursor: pointer;
box-shadow: 1px 1px 3px black;
}
@media (min-width: 768px) {
.book-container button {
padding: 4px;
}
}
.blue {
color: var(--light-blue);
font-weight: 500;
}
/* error messages */
.error-title,
.error-author {
font-size: 12px;
color: red;
margin-left: 14px;
margin-top: -6px;
margin-bottom: 4px;
}
/* handle popup */
.popup {
width: 300px;
background: #f1d4d4;
margin-inline: auto;
border-radius: 6px;
text-align: center;
padding: 16px;
box-shadow: 1px 1px 9px rgba(0, 0, 0, 0.3);
}
.disp-container {
margin-inline: 28px;
}