-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
117 lines (100 loc) · 1.84 KB
/
style.css
File metadata and controls
117 lines (100 loc) · 1.84 KB
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
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
:root {
--light-blue: rgb(63, 62, 112);
--dark-blue: rgb(36, 41, 80);
}
* {
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
height: 100vh;
margin: 0;
}
.navbar {
display: flex;
justify-content: flex-end;
top: 0;
width: 100%;
height: max-content;
background-color: var(--light-blue);
}
.search {
color: white;
background-color: var(--light-blue);
font-size: 1.2rem;
border: 3px solid var(--dark-blue);
border-radius: 30px;
width: 250px;
height: 50px;
margin: 15px;
padding: 0 12px;
}
.search::placeholder {
color: rgb(117, 116, 202);
}
.search:focus {
background-color: var(--dark-blue);
outline: none;
}
.container {
width: 100%;
background-color: var(--dark-blue);
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.card {
position: relative;
margin: 15px;
background-color: var(--light-blue);
width: 350px;
height: max-content(500px, fit-content());
border-radius: 5px;
overflow: hidden;
}
img {
width: 100%;
}
.description {
position: absolute;
overflow: auto;
max-height: 100%;
width: 100%;
bottom: 0;
background-color: white;
transition: transform 0.3s;
padding: 30px;
transform: translateY(100%);
font-size: 1.44rem;
}
.card:hover .description {
transform: translateY(0);
}
.foot {
background-color: var(--light-blue);
padding: 22px 14px;
display: grid;
grid-template-columns: 6fr 1fr;
}
.filmName {
font-size: 1.4rem;
font-weight: bold;
color: white;
}
.score {
background-color: var(--dark-blue);
padding: 0 10px;
width: max-content;
height: 35px;
border-radius: 5px;
color: red;
font-size: 1.20rem;
text-align: center;
align-self: center;
font-weight: bold;
}
.score p {
margin-top: 6px;
width: max-content;
}