-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
170 lines (164 loc) · 3 KB
/
styles.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
body{
font-family: 'Pattaya', sans-serif;
background-color: #BAF2E9;
align-items: center;
border: 5px solid black;
border-radius: 15px;
}
header{
background-image: url('./images/headerpic.jpg');
background-position: center;
color: aliceblue;
padding: 20px;
text-align: center;
font-size: 30px;
border-radius: 5px;
margin: 0px;
}
/* top portion of the webpage that includes both the header and the form */
#top{
background-color: #f2e2ba;
}
header, footer{
font-family: 'Playfair Display', serif;
}
form{
align-items: center;
margin: 5px 20px 0px;
text-align: center;
border: 5px solid #f2e2ba;
border-radius: 10px;
}
input[type=text],#submitSearch, #type{
width: 250px;
height: 30px;
border-radius: 5px;
margin: 5px;
}
label{
align-items: center;
}
#submitSearch, #previewBook{
width: 150px;
height: 30px;
background-color: #629488;
border-radius: 15px;
color: white;
font-weight: 800;
text-align: center;
}
#submitSearch:hover,#submitSearch:focus,
#previewBook:hover, #previewBook:focus{
background-color: #334b45;
}
#results{
display: flex;
flex-flow: row wrap;
justify-content: space-around;
}
#viewerCanvas{
display: hide;
width: 600px;
height: 500px
}
.book{
display: flex;
flex-flow: row wrap;
margin: 10px;
width: 300px;
align-items: center;
border: 2px dashed darkblue;
height: 220px;
}
h4, h5{
margin: 2px;
}
h5{
font-family: 'Montserrat', sans-serif;
}
.intro{
margin: 4px;
text-align: right;
overflow: auto;
word-wrap: break-word;
align-self: center;
width: 150px;
max-height: 200px;
}
.book img{
height: auto;
margin: 4px;
max-height: 200px;
}
/*source: https://www.w3schools.com/howto/howto_css_modals.asp */
/*Modal Customization */
.bksModal{
display: none;
position: relative;
z-index: 1; /* Sit on top of the webpage*/
margin: -5% auto;
left: 50%;
top: 50%;
transform: translate(-47%, -67%);
background-color: #f2e2ba; /* Black w/ opacity */
}
/*Model Content Customization */
.modalContent{
background-color: #BAD7F2;
color: black;
border: 2px solid #384d48;
padding: 0px 20px;
overflow: auto;
width: 300px;
height: 250px;
font-family: 'Montserrat', sans-serif;
}
.close:hover, .close:focus{
color: red;
cursor: pointer;
}
.close{
font-size: xx-large;
}
.modalbtn{
width: 150px;
height: 30px;
background-color: #629488;
border-radius: 15px;
color: white;
font-weight: 800;
text-align: center;
}
.modalbtn:hover{
background-color: #43635c;
}
footer{
color: white;
background-color: #1c6a58;
text-align: center;
margin: 50px 0px 0px;
padding: 5px 10px;
}
#quoteft{
font-style: italic;
animation: slide 9s;
overflow: auto;
}
/* animates footer */
@keyframes slide {
0% {color: white; right:0px; top:0px;}
50% {color:blue; left:200px; top:200px;}
100% {color: whitesmoke; left:0px; top:0px;}
}
@media screen and (max-width: 500px){
h1{
color: #f8f1ff;
}
form{
align-items: center;
}
.modalContent{
height: 200px;
width: 250px;
}
}