-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (86 loc) · 1.67 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
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;1,300&display=swap');
* {
padding: 0;
margin: 0;
font-family: 'Lato', sans-serif;
box-sizing: border-box;
}
.name{
text-align: center;
color: whitesmoke;
text-decoration: underline;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.main {
width: 100%;
min-height: 100vh;
background-color: black;
}
.row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.box {
padding: 10px;
width: 25%;
flex-basis: 25%;
height: 400px;
border-radius: 5px;
overflow: hidden;
border-radius: 5px;
position: relative;
}
.box img {
width: 100%;
height: 100%;
box-shadow: 0 4px 5px rgb(0 0 0 / 20%);
}
.box .overlay {
width: 100%;
max-height: 100%;
min-height: auto;
position: absolute;
bottom: -100%;
font-weight: bold;
padding: 20px;
border-radius: 10px 10px 0px 0px;
left: 0;
transition: .5s;
background-color: white;
}
.box span {
color: orange;
display: inline-block;
font-weight: bold;
font-size: 25px;
}
.title {
width: 100%;
display: flex;
justify-content: space-between;
}
.box:hover .overlay {
bottom: 0%;
}
.overlay h2 {
margin-bottom: 10px;
}
#search {
width: 500px;
padding: 5px 30px;
background-color: rgba(52, 73, 94, 0.7);
outline: none;
border: none;
box-shadow: 0px 0px 1px white;
color: White;
margin-top: 10px;
font-size: 30px;
border-radius: 25px;
transition: 1s;
margin-bottom: 15px;
}
#search:focus {
background-color: white;
color: black;
}