-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
144 lines (120 loc) · 2.38 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
*,
*::before,
*::after {
-webkit-box-sizing: border-box; /* for Google Chrome and Apple Safari */
-moz-box-sizing: border-box; /* for Mozilla Firefox */
-ms-box-sizing: border-box; /* for Microsoft's Internet Explorer */
box-sizing: border-box; /* box-sizing is a property allows us to change exactly how the box-model works */
}
html {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Quicksand', Helvetica, sans-serif;
background-color: rgb(255, 255, 255);
/* position: relative; */
min-height: 100vh; /* vh (viewport height as unit of measure)) */
margin: 0;
}
main h1,
h2 {
text-align: center;
}
.book-list {
margin: 1rem;
border: 2px solid #000;
}
.bookInfo {
display: flex;
gap: 30px;
justify-content: space-between;
align-items: center;
padding: 0 10px;
}
.bookInfo:nth-child(odd) {
background-color: rgb(233, 233, 233);
}
.add-book {
display: block;
}
#add-books-form {
margin: 0 20%;
width: 60%;
}
#add-books-form input {
height: 30px;
border: 3px solid #000;
width: 100%;
}
#add-books-form input::placeholder {
color: #000;
font-size: 17px;
}
button {
background-color: white;
border: solid black 2px;
box-shadow: 2px 3px 1px 0 rgba(0, 0, 0, 0.75);
-webkit-box-shadow: 2px 3px 1px 0 rgba(0, 0, 0, 0.75);
-moz-box-shadow: 2px 3px 1px 0 rgba(0, 0, 0, 0.75);
}
form button {
display: block;
margin-left: auto;
}
header {
margin: 1rem;
}
.date {
margin-top: 0.5rem;
text-align: right;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
border: solid black 3px;
padding: 0.5rem;
}
nav ul {
display: flex;
align-items: center;
list-style-type: none;
}
nav ul li {
position: relative;
}
nav ul li::after {
position: absolute;
top: -40%;
right: 3px;
width: 3px;
height: 30px;
background-color: rgb(0, 0, 0);
content: '';
}
nav ul li:last-child::after {
display: none;
}
a {
text-decoration: inherit;
color: inherit;
margin: 0 1rem;
}
.contact-info {
display: flex;
flex-direction: column;
align-items: center;
}
footer {
display: flex;
align-items: center;
justify-content: space-between;
border: solid black 3px;
margin: 1rem;
padding: 0.5rem;
}
section.hidden {
display: none;
}