-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathstyle.css
95 lines (81 loc) · 1.57 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
body {
/* Position */
padding: 1%;
/* Design */
background-color: #f34213;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
h1 {
/* Position */
padding: 20px;
text-align: center;
/* Design */
letter-spacing: 3px;
color: #e0ca3c;
}
footer {
border-top: solid white;
text-align: center;
padding: 30px 0 30px 0;
}
footer p {
font-size: 12px;
}
.flexbox {
/* Position */
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 20px;
}
.catContainer {
/* Position */
display: flex;
align-items: center;
justify-content: center;
position: relative;
/* Size */
max-height: 400px;
width: 23%;
/* Design */
border-radius: 10px;
overflow: hidden; /* for border radius to work */
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
.catContainer img {
/* Size */
width: 100%;
height: 100%;
object-fit: cover; /* To make different size of images look same size, hoping cat was in the center of the image */
overflow: hidden;
}
.catName {
/* Position */
position: absolute;
bottom: 1%;
text-align: center;
padding: 10px;
/* Size */
width: 100%;
/* Design */
color: white;
letter-spacing: 2px;
text-shadow: 1px 1px 3px #272727;
border: 1px solid rgb(255, 255, 255);
backdrop-filter: blur(15px);
}
/* Responsive Design */
@media screen and (max-width: 800px) {
.catContainer {
width: 48%;
}
}
@media screen and (max-width: 600px) {
.catContainer {
width: 100%;
}
h1 {
font-size: 24px;
}
}