-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
124 lines (112 loc) · 2.98 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
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
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital@1&display=swap'); /*Importing fonts from google fonts.*/
body{
display:grid;
justify-content:center; /* Displaying according to grid system and justifying the contents of body to center */
}
/* Styling Logo*/
.github-logo{
width:300px;
}
/* Styling the container div*/
.movies-container{
font-family: 'Fira Sans', sans-serif;
font-size: 20px;
padding: 10px;
margin-bottom: 8px;
border-radius: 16px;
gap: 15px;
background-image: linear-gradient(to right, #95dedd, #69cfe1, #3ebee8, #25abed, #4394eb, #4e86e9, #5f77e3, #7265da, #6b5edc, #6456de, #5c4fdf, #5447e1);
width:400px;
display:flex;
opacity:80%;
}
/* Styling the conatiner when hovered over*/
.movies-container:hover{
transform:scale(1.05);
opacity:1.5;
}
/* Styling pages button to display at center*/
.paginations{
margin-bottom:10px;
display:flex;
justify-content:center;
}
/* Using letter-spacing to give space between letters to better understand*/
.movie-title{
letter-spacing:2px;
color:white;
}
/* Styling texts when hovered over to change the color of the text.*/
.movie-title:hover{
color:yellow;
}
.director{
letter-spacing:2px;
color:white;
}
/* Styling texts when hovered over to change the color of the text.*/
.director:hover{
color:greenyellow;
}
.release-date{
letter-spacing:2px;
}
/* Styling texts when hovered over to change the color of the text.*/
.release-date:hover{
color:red;
}
/* Styling Button of pages*/
.page-button{
width: 40px;
height: 40px;
border-radius: 5px; /* To get rounded corner */
border: none;
outline: none;
margin: 20px 5px 20px 5px;
background-image: linear-gradient(to top, #156abe, #1a70c1, #2176c4, #277cc7, #2e82ca);
font-family: 'Otomanopee One', sans-serif;
}
/* Styling page button to change background color of the button when hovered over*/
.page-button:hover{
background-image: linear-gradient(to top, #6baae9, #9598e4, #be83ce, #db6da7, #e46077);
}
/* Styling according to device widths using Media Query*/
@media (min-width:1200px) and (max-width:1600px){
.movies-list{
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap:25px;
}
}
@media (min-width:900px) and (max-width:1200px){
.movies-list{
display: grid;
grid-template-columns: 1fr 1fr ;
gap:20px;
}
}
@media (min-width: 300px) and (max-width: 900px){
.movies-list , .movies-container {
display: grid;
grid-template-columns: 1fr;
gap:10px;
width:300px;
justify-content:center;
}
}
@media (min-width:1600px) and (max-width: 2000px) {
.movies-list, .github-logo{
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap:15px;
padding-left:50px;
}
}
@media (min-width:2001px) {
.movies-list, .github-logo{
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
gap:12px;
padding-left:50px;
}
}