-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
145 lines (119 loc) · 2.69 KB
/
styles.css
File metadata and controls
145 lines (119 loc) · 2.69 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/* styles.css */
header {
text-align: center;
padding: 1rem;
background-color: #2d3748; /* bg-gray-800 */
font-size: 1.25rem; /* text-xl */
font-weight: bold;
}
main {
padding: 40rem;
}
section {
margin-bottom: 1.5rem; /* mb-6 */
text-align: left;
}
h2 {
font-size: 1.5rem; /* text-2xl */
font-weight: bold;
margin-bottom: 1rem; /* mb-4 */
font-family: Arial, sans-serif;
}
#best-movie-container img {
margin: 4px 4px 4px 4px;
}
#best-movie-container h3 {
font-size: 1.25rem; /* text-xl */
margin-top: 0.5rem; /* mt-2 */
}
button {
margin-top: 0.5rem; /* mt-2 */
background-color: #3b82f6; /* bg-blue-500 */
color: white;
padding: 0.5rem 1rem; /* px-4 py-2 */
border-radius: 0.25rem; /* rounded */
}
.image-box{
height: 500px;
background-size: cover;
}
#categories div h4 {
font-size: 0.875rem; /* text-sm */
margin-top: 0.25rem; /* mt-1 */
}
#movie-modal div {
padding: 0.5rem; /* p-6 */
position:relative;
text-align: left;
}
#movie-modal img {
height: 260px;
}
#movie-modal img.photoP {
float: right;
}
#movie-modal img.photoM {
display: none;
margin: auto;
}
#movie-modal {
display: none; /* Caché par défaut */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
padding: 20px;
}
#movie-modal > div {
background: white;
border: 2px solid black;
width: 40%;
Height: 73%;
overflow-y: auto; /* Activation du scroll vertical */
}
.container {
background-color: white; /* Fond blanc pour contraster */
border: 2px solid #ccc; /* Bordure grise */
border-radius: 10px; /* Coins arrondis */
padding: 20px; /* Espace intérieur */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
max-width: 800px; /* Largeur max */
margin: 20px auto; /* Centrage */
}
.close-icon {
display: none; /* Afficher le X */
}
/* Adaptation responsive avec media queries */
@media (max-width: 640px) {
#categories div {
grid-template-columns: 1fr; /* 1 film par ligne en mobile */
}
}
@media (min-width: 641px) and (max-width: 1024px) {
#categories div {
grid-template-columns: 1fr 1fr; /* 2 films par ligne en tablette */
}
}
/* Cacher le bouton sur mobile et tablette */
@media (max-width: 1022px) {
.detail-button {
display: none;
}
.close-icon {
display: block; /* Afficher le X */
float: right;
}
.photoP {
display: none;
}
#movie-modal img.photoM {
display: block;
}
#movie-modal > div {
width: 80%;
}
}