Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
261 lines (226 loc) · 4.74 KB
/
Copy pathstyle.css
File metadata and controls
261 lines (226 loc) · 4.74 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
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
/* couleurs buttercup :
'50': #fefae8,
'100': #fdf2c4,
'200': #fbe28d,
'300': #f9ca4b,
'400': #f5b21b,
'500': #e5990d,
'600': #c67408,
'700': #9e510a,
'800': #824111,
'900': #6f3514,
'950': #411a07,
*/
body {
background-color: #fefae8;
margin: 6vw;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
h1, h2 {
color: #9e510a;
font-family: 'Cal Sans';
font-size: 10vw;
}
h2 {
font-size: 5vw;
}
.feed {
margin-bottom: 3em;
border-radius: 2em;
}
.refresh-btn {
cursor: pointer;
margin-bottom: 3em;
padding: 0.7em;
border: 0;
border-radius: 8px;
color: #fefae8;
background-color: #e5990d;
font-size: medium;
font-weight: bold;
}
.refresh-btn:hover {
background-color: #c67408;
}
.user-card {
display: flex;
align-items: center;
font-size: medium;
gap: 1em; /* espaces entre les lignes et entre les colonnes d'une grille */
border: 1px solid #e5990d;
border-radius: 8px;
margin-bottom: 10px;
padding: 1em;
max-width: 100%; /* ne pas dépasser le contenu parent */
}
.user-img {
width: 100px;
height: 100px;
border-radius: 50%;
}
.user-info {
display: flex;
flex-direction: column;
line-height: 1.5; /* espace entre les lignes */
word-break: break-word;
}
.dropdown {
position: relative;
display: inline-block;
margin-bottom: 1em;
}
.dropdown-btn {
background-color: #411a07;
color: #fefae8;
padding: 20px;
font-size: 2em;
font-weight: bold;
border: none;
cursor: pointer;
}
.dropdown-content {
border: none;
display: none;
position:absolute; /* obligatoire sinon il reste dans le flux normal de la page */
z-index: 1; /* pour passer devant les autres éléments */
background-color: #411a07;
font-size: 1.5em;
padding: 20px;
line-height: 1.5;
}
.dropdown-content a {
display: block; /* chaque lien prend toute la largeur */
color: #fefae8;
text-decoration: none;
padding-right: 31px;
}
.dropdown-content a:hover {
color: #fbe28d;
}
.form-container {
font-size: medium;
border: 1px solid #e5990d;
border-radius: 8px;
padding: 1em;
padding-top: 2em;
padding-bottom: 0;
max-width: 100%;
}
.form-container form {
display: flex;
flex-direction: column;
gap: 0.1em;
}
.form-container label {
font-weight: bold;
}
.form-container input {
padding: 0.3em;
margin-left: 1em;
border: 1px solid;
border-radius: 6px;
font-size: medium;
}
.form-container input[type='file'] {
border: none;
}
.form-container button {
cursor: pointer;
margin-bottom: 3em;
padding: 0.7em;
border: 0;
border-radius: 8px;
color: #fefae8;
background-color: #e5990d;
font-size: medium;
font-weight: bold;
}
.form-container button:hover {
background-color: #c67408;
}
.grid-btn, .column-btn, .add-btn {
cursor: pointer;
padding: 0.5em;
margin: 0.5em;
margin-left: 0;
margin-bottom: 2em;
border: 0;
border-radius: 8px;
color: #fefae8;
background-color: #e5990d;
font-size: x-large;
}
.grid-btn:hover, .column-btn:hover {
background-color: #c67408;
}
.galerie-img {
width: 24vw;
height: 24vw;
margin: 10px;
object-fit: cover; /* recadre l’image proprement dans le cadre défini, sans la déformer */
}
.toolbar {
display: flex;
justify-content: space-between; /* boutons aux extrémités */
}
.delete-btn {
cursor: pointer;
padding: 0.4em;
margin-top: 0.8em;
border: 0;
border-radius: 8px;
color: #fefae8;
background-color: #e5990d;
font-size: medium;
font-weight: bold;
}
.delete-btn:hover {
background-color: #c67408;
}
.image-container {
display: flex;
flex-direction: column;
}
.image-container button {
width: 24vw;
margin-left: 10px;
padding: 0.4em;
cursor: pointer;
border: 0;
border-radius: 8px;
color: #fefae8;
background-color: #e5990d;
font-size: medium;
font-weight: bold;
}
.image-container button:hover {
background-color: #c67408;
}
.carrousel {
width: 85vw;
height: 20vw;
overflow: hidden; /* cache ce qui dépasse */
margin-bottom: 5vw;
}
.slides {
display: flex;
width: 350%; /* 100% x nombre d'images => crée une rangée d'images horizontales que l'on enveloppe dans un autre div Carrousel */
transition: transform 0.5s ease-in-out;
}
.slides img {
width: 100vw;
height: 70vw;
object-fit: cover;
}
.game-container {
margin-bottom: 5vw;
padding: 5vw;
padding-top: 0;
padding-left: 2vw;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#demineur-game, #jeu-oie-game {
margin: 20px;
}