-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle_galerie.css
245 lines (202 loc) · 5.06 KB
/
style_galerie.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
/* Style général */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@font-face {
font-family: 'Fibel'; /* Nom de la police */
src: url('fonts/fibel.ttf') format('truetype'); /* Chemin vers le fichier de police */
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Fibel_2'; /* Nom de la police */
src: url('fonts/Fibel_2.ttf') format('truetype'); /* Chemin vers le fichier de police */
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Minecraft';
src: /*url('fonts/minecraft.ttf') format('truetype'),*/
url('fonts/minecraft.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
body {
background-color: #121212;
color: #f0f0f0;
font-family: 'fibel_2';
margin: 0;
padding: 0;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
background-color: #1e1e1e;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
header .logo {
font-family: 'Minecraft', sans-serif;
font-size: 1.2rem;
color: #ff6f61;
font-weight: bold;
}
nav ul {
list-style-type: none;
display: flex;
gap: 20px;
}
.nav-link {
font-size: 1.2rem;
font-family: 'Minecraft', sans-serif;
color: #f0f0f0;
text-decoration: none;
transition: color 0.3s ease;
}
.nav-link:hover {
color: #ff6f61;
}
footer {
text-align: center;
background-color: #1e1e1e; /* Optionnel : pour différencier le footer */
font-family: 'Minecraft';
padding: 1px 0;
}
.contact-container {
display: flex;
justify-content: center; /* Centre les colonnes horizontalement */
gap: 40px; /* Espacement entre les colonnes */
}
.contact-column {
text-align: left; /* Pour garder le texte aligné à gauche dans les colonnes */
}
.contact-column p {
margin: 10px 0; /* Espacement entre les éléments */
}
.contact-column a {
text-decoration: none;
color: #ff6f61; /* Couleur des liens */
}
.contact-column a:hover {
color: #007BFF; /* Couleur au survol */
}
footer a {
font-family: 'Minecraft';
color: #ff6f61;
text-decoration: none;
}
footer p {
margin-bottom: -5px; /* Espacement réduit à 2 pixels entre chaque ligne */
font-size: 14px; /* Ajuste la taille de la police si nécessaire */
}
nav ul {
list-style-type: none;
display: flex;
gap: 20px;
}
.nav-link {
font-size: 1.2rem;
font-family: 'Minecraft', sans-serif;
color: #f0f0f0;
text-decoration: none;
transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
color: #ff6f61;
}
main {
padding: 20px;
}
.gallery h1 {
text-align: center;
font-size: 2rem;
margin-bottom: 20px;
color: #ff6f61;
}
.gallery h2{
text-align: center;
font-size: 1rem;
}
/* Container for the grid */
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 10px;
padding: 10px;
}
.photo.landscape img {
width: 100%; /* Pour garder les proportions */
transform: scale(0.6); /* Réduction de la taille en hauteur */
}
/* Ajuster pour éviter que les colonnes ne soient trop grandes avec les images landscape */
.photo.landscape {
max-width: 50%; /* Limiter la largeur des colonnes pour ne pas dépasser */
transform: scale(2);
}
/* Style for the photo */
.photo {
position: relative;
overflow: hidden;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Style for the image */
.photo img {
width: 100%;
height: auto;
display: block;
border-radius: 8px;
object-fit: cover;
transition: transform 0.3s ease;
}
.photo:hover img {
transform: scale(1.1);
}
.photo:hover {
transform: scale(1.03);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.photo.landscape:hover {
transform: scale(1.2); /* Conserve le même effet pour les images landscape */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Moins prononcé pour éviter le sur-dimensionnement */
}
/* Style de la modale */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
}
.modal img {
max-width: 90%;
max-height: 90%;
}
.modal-close {
position: absolute;
top: 10px;
right: 20px;
color: white;
font-size: 30px;
cursor: pointer;
}
@media (max-width: 850px) {
/* Header */
header .logo {
font-size: 0.6rem; /* Réduit la taille du logo */
}
.nav-link {
font-size: 0.6rem; /* Réduit la taille des liens */
}
.page-header {
font-size: 0.9rem; /* Réduit globalement la taille de la section */
text-align: center; /* Centre les éléments dans le header */
}
footer p {
font-size: 0.6rem;
}
}