|
30
|
1 |
/* |
|
|
2 |
* This file is part of the TraKERS\Front IDILL package. |
|
|
3 |
* |
|
|
4 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
|
5 |
* |
|
|
6 |
* For the full copyright and license information, please view the LICENSE |
|
|
7 |
* file that was distributed with this source code. |
|
|
8 |
*/ |
|
|
9 |
|
|
|
10 |
/* |
|
|
11 |
* Projet : TraKERS |
|
|
12 |
* Module : Front IDILL |
|
|
13 |
* Fichier : mosaic.less |
|
|
14 |
* |
|
|
15 |
* Auteur : alexandre.bastien@iri.centrepompidou.fr |
|
|
16 |
* |
|
|
17 |
* Fonctionnalités : Définit les propriétés d'apparence des éléments de base de la mosaïque (les snapshots, la mosaïque en elle-même). |
|
|
18 |
* |
|
|
19 |
* Avertissement : Afin que ce fichier puisse compiler, il est nécessaire de lancer index.html depuis un chemin ne commencant pas par file:///. |
|
|
20 |
* C'est pourquoi j'utilise WAMP pour le lancer. |
|
|
21 |
*/ |
|
|
22 |
|
|
52
|
23 |
/* Epaisseur de la bordure de la mosaique. */ |
|
30
|
24 |
@mosaic-border-tickness: 1px; |
|
52
|
25 |
/* Couleur de fond de la mosaique. */ |
|
30
|
26 |
@mosaic-background-color: #202020; |
|
52
|
27 |
/* Image de fond de la mosaique. */ |
|
30
|
28 |
@mosaic-background-image-path: url("../../img/background.png"); |
|
52
|
29 |
/* Image de fond de prezoom ou de sélection de voisin. */ |
|
30
|
30 |
@selected-snapshot-background-image-path: url("../../img/selected_background.png"); |
|
52
|
31 |
/* Couleur de fond des snapshots. */ |
|
30
|
32 |
@snapshots-background-color: #8D8D8D; |
|
52
|
33 |
/* Valeur de la marge des snapshots dans la mosaique. */ |
|
31
|
34 |
@snapshots-margin-value: 8px; |
|
52
|
35 |
/* Marges des snapshots. */ |
|
30
|
36 |
@snapshots-margin: @snapshots-margin-value @snapshots-margin-value @snapshots-margin-value @snapshots-margin-value; |
|
52
|
37 |
/* Couleur noire. */ |
|
30
|
38 |
@black: #000000; |
|
52
|
39 |
/* Image de notification de sélection. */ |
|
33
|
40 |
@notify-selection-background-image-path: url("../../pictos/notifications/selectionner.png"); |
|
52
|
41 |
/* Image de notification de recherche. */ |
|
33
|
42 |
@notify-search-background-image-path: url("../../pictos/notifications/rechercher.png"); |
|
52
|
43 |
/* Image de notification de confirmation. */ |
|
33
|
44 |
@notify-point-background-image-path: url("../../pictos/notifications/confirmer.png"); |
|
52
|
45 |
/* Image de notification de déplacement dans la timeline. */ |
|
44
|
46 |
@notify-timeline-background-image-path: url("../../pictos/notifications/deplacer.png"); |
|
52
|
47 |
/* Couleur de fond du panneau d'aide. */ |
|
33
|
48 |
@notify-help-background-color: rgba(100, 100, 100, 0.9); |
|
52
|
49 |
/* Epaisseur de bordure du panneau d'aide. */ |
|
33
|
50 |
@notify-help-border-width: 2px; |
|
52
|
51 |
/* Valeur de marge du panneau d'aide. */ |
|
33
|
52 |
@notify-help-margin: 15px; |
|
52
|
53 |
/* Image de recherche du panneau d'aide. */ |
|
33
|
54 |
@notify-help-search-background-image-path: url("../../pictos/help/recherche.png"); |
|
52
|
55 |
/* Image de controle du panneau d'aide. */ |
|
33
|
56 |
@notify-help-controls-background-image-path: url("../../pictos/help/controles.png"); |
|
52
|
57 |
/* Image du pointeur principal. */ |
|
44
|
58 |
@mainPointer-background-image-path: url("../../img/cursors/pointer.png"); |
|
52
|
59 |
/* Image du pointeur secondaire. */ |
|
44
|
60 |
@secondPointer-background-image-path: url("../../img/cursors/pointer2.png"); |
|
35
|
61 |
|
|
|
62 |
html |
|
|
63 |
{ |
|
|
64 |
//cursor: none; |
|
|
65 |
} |
|
30
|
66 |
|
|
52
|
67 |
/* |
|
|
68 |
* Style du corps. |
|
|
69 |
*/ |
|
30
|
70 |
body |
|
|
71 |
{ |
|
33
|
72 |
overflow: hidden; |
|
30
|
73 |
background-color: @black; |
|
44
|
74 |
background-image: @mosaic-background-image-path; |
|
|
75 |
background-repeat: repeat; |
|
30
|
76 |
} |
|
|
77 |
|
|
|
78 |
/* |
|
|
79 |
* Il s'agit des propriétés de la mosaïque en elle même. |
|
|
80 |
* On désactive les barres de défilement, on peut la placer à n'importe qu'elle position, elle doit être aussi large que la fenêtre du navigateur. |
|
|
81 |
* Son fond se répète. |
|
|
82 |
*/ |
|
|
83 |
#mainPanel |
|
|
84 |
{ |
|
|
85 |
overflow: hidden; |
|
|
86 |
position: absolute; |
|
|
87 |
width: 100%; |
|
|
88 |
top: 0px; |
|
|
89 |
left: 0px; |
|
44
|
90 |
background: transparent; |
|
|
91 |
//background-image: @mosaic-background-image-path; |
|
|
92 |
//background-repeat: repeat; |
|
30
|
93 |
} |
|
|
94 |
|
|
|
95 |
/* |
|
45
|
96 |
* C'est un div invisible qui s'étale sur l'écran afin d'empêcher l'utilisateur de faire des drag & drop sur les images ou de la sélection de texte. |
|
|
97 |
*/ |
|
|
98 |
#ghostPanel |
|
|
99 |
{ |
|
|
100 |
position: absolute; |
|
|
101 |
opacity: 0; |
|
|
102 |
width: 100%; |
|
|
103 |
height: 100%; |
|
52
|
104 |
z-index: 2000; |
|
45
|
105 |
} |
|
|
106 |
|
|
|
107 |
/* |
|
30
|
108 |
* Les divs contenant les snapshots (ou les "voisins" aussi en cas de zoom total). Ils se positionnent par défaut de gauche à droite, à l'horizontale et wrap dès |
|
|
109 |
* qu'ils ont atteint la bordure de fenêtre de droite. |
|
|
110 |
*/ |
|
|
111 |
.snapshotDivs, .neighbourDivs |
|
|
112 |
{ |
|
|
113 |
background-color: @black; |
|
|
114 |
margin: @snapshots-margin; |
|
|
115 |
float: left; |
|
|
116 |
} |
|
|
117 |
|
|
|
118 |
/* |
|
|
119 |
* Les snapshots sont des images, elles doivent remplir l'intégralité de leurs divs (snapshotDivs). |
|
|
120 |
*/ |
|
|
121 |
.snapshots |
|
|
122 |
{ |
|
|
123 |
width: 100%; |
|
|
124 |
height: 100%; |
|
|
125 |
} |
|
|
126 |
|
|
|
127 |
/* |
|
|
128 |
* Ce sont des divs créés spécialement lors d'un prézoom. Leur fonction est d'afficher un clone du snapshot, superposé au précédent et de grandir un peu de manière |
|
|
129 |
* à faire ressortir visuellement le snapshot pointé. Leur bordure est d'une couleur différente au fond, ce qui permet de les discerner plus facilement dans la mosaïque. |
|
|
130 |
* au départ, lors de sa création, il est caché, mais apparaît dès que l'image est chargée. |
|
|
131 |
*/ |
|
|
132 |
.prezoomContainers |
|
|
133 |
{ |
|
|
134 |
position: absolute; |
|
|
135 |
display: none; |
|
|
136 |
background-image: @selected-snapshot-background-image-path; |
|
|
137 |
background-repeat: repeat; |
|
|
138 |
} |
|
|
139 |
|
|
|
140 |
/* |
|
|
141 |
* Cette classe est attachée à des divs destinés à remplir les bordures d'une mosaïque locale. |
|
|
142 |
*/ |
|
|
143 |
.blacks |
|
|
144 |
{ |
|
|
145 |
background-color: @black; |
|
|
146 |
float: left; |
|
|
147 |
} |
|
|
148 |
|
|
|
149 |
/* |
|
|
150 |
* C'est une classe appliquée aux divs "voisins", afin de les colorer lorsque l'utilisateur intéragit avec eux. |
|
|
151 |
* Ils se positionnent exactement sur le voisin qu'ils représentent, à la manière du clone de prézoom (prezoomContainer), bien que celui-là n'est qu'un div simple |
|
|
152 |
* ne contenant pas d'image. |
|
|
153 |
* Au départ, l'opacité est à 0, ce qui signifie que ce div est invisible. L'opacité change lors d'intéractions avec cet objet. Le div apparaît alors. |
|
|
154 |
*/ |
|
31
|
155 |
.neighbourFrame |
|
|
156 |
{ |
|
|
157 |
position: absolute; |
|
|
158 |
//background-color: #94C6C5; |
|
|
159 |
//background-color: rgba(148, 198, 197, 1); |
|
|
160 |
background-image: @selected-snapshot-background-image-path; |
|
|
161 |
background-repeat: repeat; |
|
|
162 |
opacity: 0; |
|
|
163 |
} |
|
|
164 |
|
|
|
165 |
/* |
|
52
|
166 |
* Style du fond d'un snapshot de voisin. |
|
31
|
167 |
*/ |
|
|
168 |
.neighbourImgBg |
|
30
|
169 |
{ |
|
|
170 |
position: absolute; |
|
31
|
171 |
background-image: @mosaic-background-image-path; |
|
|
172 |
} |
|
|
173 |
|
|
|
174 |
/* |
|
52
|
175 |
* Style d'un snapshot de voisin. |
|
31
|
176 |
*/ |
|
|
177 |
.neighbourImg |
|
|
178 |
{ |
|
|
179 |
position: absolute; |
|
|
180 |
} |
|
|
181 |
|
|
52
|
182 |
/* |
|
|
183 |
* Style commun aux notifications. |
|
|
184 |
*/ |
|
33
|
185 |
.notifications |
|
|
186 |
{ |
|
|
187 |
position: absolute; |
|
44
|
188 |
width: 200px; |
|
|
189 |
height: 200px; |
|
33
|
190 |
background-repeat: no-repeat; |
|
|
191 |
background-position: 0px 0px; |
|
44
|
192 |
background-size: 200px 200px; |
|
33
|
193 |
opacity: 0; |
|
|
194 |
margin: 15px; |
|
|
195 |
z-index: 400; |
|
|
196 |
} |
|
|
197 |
|
|
52
|
198 |
/* |
|
|
199 |
* Style commun aux notifications lors d'une recherche par courbes en cours. |
|
|
200 |
*/ |
|
35
|
201 |
.notifications_inSearch |
|
|
202 |
{ |
|
|
203 |
position: relative; |
|
|
204 |
float: left; |
|
|
205 |
width: 100px; |
|
|
206 |
height: 100px; |
|
|
207 |
background-repeat: no-repeat; |
|
|
208 |
background-position: 0px 0px; |
|
|
209 |
background-size: 100px 100px; |
|
|
210 |
opacity: 0; |
|
|
211 |
margin: 15px; |
|
|
212 |
z-index: 400; |
|
|
213 |
} |
|
|
214 |
|
|
52
|
215 |
/* |
|
|
216 |
* Div contenant les notifications lors d'une recherche par courbes en cours. |
|
|
217 |
*/ |
|
35
|
218 |
.notifications_inSearch_container |
|
|
219 |
{ |
|
|
220 |
position: absolute; |
|
|
221 |
background-color: #fff; |
|
|
222 |
background: transparent; |
|
|
223 |
} |
|
|
224 |
|
|
52
|
225 |
/* |
|
|
226 |
* Notification de sélection. |
|
|
227 |
*/ |
|
33
|
228 |
#notify_selection |
|
|
229 |
{ |
|
|
230 |
background-image: @notify-selection-background-image-path; |
|
|
231 |
} |
|
|
232 |
|
|
52
|
233 |
/* |
|
|
234 |
* Notification de recherche. |
|
|
235 |
*/ |
|
33
|
236 |
#notify_search |
|
|
237 |
{ |
|
|
238 |
background-image: @notify-search-background-image-path; |
|
|
239 |
} |
|
|
240 |
|
|
52
|
241 |
/* |
|
|
242 |
* Notification de confirmation. |
|
|
243 |
*/ |
|
33
|
244 |
#notify_point |
|
|
245 |
{ |
|
|
246 |
background-image: @notify-point-background-image-path; |
|
|
247 |
} |
|
|
248 |
|
|
52
|
249 |
/* |
|
|
250 |
* Notification de déplacement dans la timeline. |
|
|
251 |
*/ |
|
44
|
252 |
#notify_timeline |
|
|
253 |
{ |
|
|
254 |
background-image: @notify-timeline-background-image-path; |
|
|
255 |
} |
|
|
256 |
|
|
33
|
257 |
/* |
|
52
|
258 |
* Panneau d'aide |
|
33
|
259 |
*/ |
|
|
260 |
#notify_help |
|
|
261 |
{ |
|
|
262 |
position: absolute; |
|
|
263 |
margin: @notify-help-margin; |
|
|
264 |
border-style: solid; |
|
|
265 |
border-width: @notify-help-border-width; |
|
|
266 |
border-color: #fff; |
|
|
267 |
background-color: @notify-help-background-color; |
|
|
268 |
} |
|
|
269 |
|
|
52
|
270 |
/* |
|
|
271 |
* Colonne de recherche du panneau d'aide. |
|
|
272 |
*/ |
|
33
|
273 |
#help_search |
|
|
274 |
{ |
|
|
275 |
float: left; |
|
|
276 |
top: 0%; |
|
|
277 |
width: 50%; |
|
|
278 |
height: 100%; |
|
|
279 |
background: transparent; |
|
|
280 |
} |
|
|
281 |
|
|
52
|
282 |
/* |
|
|
283 |
* Colonne des controles du panneau d'aide. |
|
|
284 |
*/ |
|
33
|
285 |
#help_controls |
|
|
286 |
{ |
|
|
287 |
float: left; |
|
|
288 |
top: 0%; |
|
|
289 |
width: 50%; |
|
|
290 |
height: 100%; |
|
|
291 |
background: transparent; |
|
|
292 |
} |
|
|
293 |
|
|
52
|
294 |
/* |
|
|
295 |
* Séparateur vertical du panneau d'aide. |
|
|
296 |
*/ |
|
33
|
297 |
#help_sep |
|
|
298 |
{ |
|
|
299 |
position: absolute; |
|
|
300 |
top: 10%; |
|
|
301 |
left: 50%; |
|
|
302 |
width: 1px; |
|
|
303 |
height: 80%; |
|
|
304 |
background-color: #fff; |
|
|
305 |
} |
|
|
306 |
|
|
52
|
307 |
/* |
|
|
308 |
* Titres des colonnes du panneau d'aide. |
|
|
309 |
*/ |
|
33
|
310 |
#search_title, #controls_title |
|
|
311 |
{ |
|
|
312 |
position: relative; |
|
|
313 |
color: #fff; |
|
|
314 |
//font-family: DIN-Medium, Fallback, sans-serif; |
|
|
315 |
font-size: 30px; |
|
|
316 |
text-align: center; |
|
|
317 |
font-weight: bold; |
|
|
318 |
margin-top: 15px; |
|
|
319 |
margin-bottom: 15px; |
|
|
320 |
} |
|
|
321 |
|
|
52
|
322 |
/* |
|
|
323 |
* Image de recherche du panneau d'aide. |
|
|
324 |
*/ |
|
33
|
325 |
#search_img |
|
|
326 |
{ |
|
|
327 |
background-image: @notify-help-search-background-image-path; |
|
44
|
328 |
background-repeat: no-repeat; |
|
33
|
329 |
background-position: center center; |
|
44
|
330 |
width: 100%; |
|
|
331 |
height: 225px; |
|
33
|
332 |
} |
|
|
333 |
|
|
52
|
334 |
/* |
|
|
335 |
* Image des controles du panneau d'aide. |
|
|
336 |
*/ |
|
33
|
337 |
#controls_img |
|
|
338 |
{ |
|
|
339 |
background-image: @notify-help-controls-background-image-path; |
|
44
|
340 |
background-repeat: no-repeat; |
|
33
|
341 |
background-position: center center; |
|
44
|
342 |
width: 100%; |
|
|
343 |
height: 225px; |
|
33
|
344 |
} |
|
|
345 |
|
|
52
|
346 |
/* |
|
|
347 |
* Textes des zones de recherche et controles du panneau d'aide. |
|
|
348 |
*/ |
|
33
|
349 |
#search_2hands_text, #search_body_text, #controls_1hand_text |
|
|
350 |
{ |
|
|
351 |
position: relative; |
|
|
352 |
clear: both; |
|
|
353 |
color: #fff; |
|
|
354 |
//font-family: DIN-Medium, Fallback, sans-serif; |
|
|
355 |
font-size: 15px; |
|
|
356 |
text-align: center; |
|
|
357 |
font-weight: bold; |
|
|
358 |
margin-top: 10px; |
|
|
359 |
margin-bottom: 10px; |
|
|
360 |
} |
|
|
361 |
|
|
52
|
362 |
/* |
|
|
363 |
* Images des gestures de recherche et controles du panneau d'aide. |
|
|
364 |
*/ |
|
33
|
365 |
.notify_imgs_small |
|
|
366 |
{ |
|
|
367 |
float: left; |
|
44
|
368 |
width: 130px; |
|
|
369 |
height: 130px; |
|
33
|
370 |
background-position: 0px 0px; |
|
|
371 |
background-repeat: no-repeat; |
|
|
372 |
margin: 4px; |
|
35
|
373 |
} |
|
|
374 |
|
|
52
|
375 |
/* |
|
|
376 |
* Masques de non sélection qui s'appliquent sur une mosaique filtrée. |
|
|
377 |
*/ |
|
35
|
378 |
.filterHiders |
|
|
379 |
{ |
|
|
380 |
position: absolute; |
|
|
381 |
background-color: #fff; |
|
|
382 |
background: transparent; |
|
|
383 |
} |
|
|
384 |
|
|
52
|
385 |
/* |
|
|
386 |
* Style du pointeur principal. |
|
|
387 |
*/ |
|
35
|
388 |
#mainPointer |
|
|
389 |
{ |
|
|
390 |
position: absolute; |
|
|
391 |
width: 74px; |
|
|
392 |
height: 74px; |
|
|
393 |
background-image: @mainPointer-background-image-path; |
|
|
394 |
background-position: 0px 0px; |
|
|
395 |
background-repeat: no-repeat; |
|
|
396 |
z-index: 500; |
|
44
|
397 |
opacity: 0; |
|
|
398 |
} |
|
|
399 |
|
|
52
|
400 |
/* |
|
|
401 |
* Style du pointeur secondaire. |
|
|
402 |
*/ |
|
44
|
403 |
#secondPointer |
|
|
404 |
{ |
|
|
405 |
position: absolute; |
|
|
406 |
width: 74px; |
|
|
407 |
height: 74px; |
|
|
408 |
background-image: @secondPointer-background-image-path; |
|
|
409 |
background-position: 0px 0px; |
|
|
410 |
background-repeat: no-repeat; |
|
|
411 |
z-index: 500; |
|
|
412 |
opacity: 0; |
|
|
413 |
} |
|
|
414 |
|
|
52
|
415 |
/* |
|
|
416 |
* Style des voisins additionnels. |
|
|
417 |
*/ |
|
44
|
418 |
.borderNeighbours |
|
|
419 |
{ |
|
|
420 |
position: absolute; |
|
|
421 |
background-color: #fff; |
|
|
422 |
margin: @snapshots-margin; |
|
|
423 |
//background-image: @mosaic-background-image-path; |
|
|
424 |
background-color: @black; |
|
|
425 |
background-repeat: repeat; |
|
|
426 |
background-position: 0px 0px; |
|
30
|
427 |
} |