-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle.css
More file actions
114 lines (114 loc) · 2.29 KB
/
style.css
File metadata and controls
114 lines (114 loc) · 2.29 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
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-image: url("bg.jpg");
background-size: cover;
}
.container{
width: 85%;
height: 85%;
background-color: rgba(16 18 27 / 40%);
border-radius: 10px;
backdrop-filter: blur(20px);
position: relative;
}
/* nav */
.nav{
width: 100%;
height: 10%;
display: flex;
justify-content: center;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.123);
}
.menu{
height: 100%;
height: 60%;
display: flex;
justify-content: center;
align-items: center;
background: rgba(0, 0, 0, 0.295);
border-radius: 50px;
}
a{
color: rgb(204, 204, 204);
border-radius: 50px;
padding: 0.6em 2em;
background: none;
text-decoration: none;
transition: all .2s;
}
a.active{
color: rgb(22, 22, 22);
background: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.178);
}
.searchBox{
padding: 1em 1.8em;
color: white;
}
.main{
position: absolute;
width: 100%;
height: 90%;
overflow-x: auto;
}
.main::-webkit-scrollbar{
display: none;
}
/* trendingMovies */
.movies{
width: 95%;
margin: 1em auto;
color: rgb(204, 204, 204);
}
.movies .cards{
margin-top: 0.6em;
padding: 0.5em 0 2em 0;
display: flex;
overflow-y: auto;
}
.movies .cards::-webkit-scrollbar{
display: none;
}
.movies .cards .card{
flex-shrink: 0;
width: 250px;
height: 150px;
border-radius: 10px;
cursor: pointer;
position: relative;
transition: all .4s;
margin-right: 1em;
}
.card::before{
content: attr(data-text);
position: absolute;
left: 45%;
bottom: -15%;
transform: translate(-45%);
font-size: .7em;
opacity: 0;
transition: all .4s;
}
.card:hover::before{
opacity: 1;
}
.card:hover{
transform: scale(1.05);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.178);
}
.movies .cards .card img{
width: 100%;
height: 100%;
border-radius: 10px;
}