|
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 |
|
|
|
23 |
@mosaic-border-tickness: 1px; |
|
|
24 |
@mosaic-background-color: #202020; |
|
|
25 |
@mosaic-background-image-path: url("../../img/background.png"); |
|
|
26 |
@selected-snapshot-background-image-path: url("../../img/selected_background.png"); |
|
|
27 |
@snapshots-background-color: #8D8D8D; |
|
31
|
28 |
@snapshots-margin-value: 8px; |
|
30
|
29 |
@snapshots-margin: @snapshots-margin-value @snapshots-margin-value @snapshots-margin-value @snapshots-margin-value; |
|
|
30 |
@black: #000000; |
|
33
|
31 |
@notify-selection-background-image-path: url("../../pictos/notifications/selectionner.png"); |
|
|
32 |
@notify-search-background-image-path: url("../../pictos/notifications/rechercher.png"); |
|
|
33 |
@notify-point-background-image-path: url("../../pictos/notifications/confirmer.png"); |
|
44
|
34 |
@notify-timeline-background-image-path: url("../../pictos/notifications/deplacer.png"); |
|
33
|
35 |
@notify-help-background-color: rgba(100, 100, 100, 0.9); |
|
|
36 |
@notify-help-border-width: 2px; |
|
|
37 |
@notify-help-margin: 15px; |
|
|
38 |
@notify-help-search-background-image-path: url("../../pictos/help/recherche.png"); |
|
|
39 |
@notify-help-controls-background-image-path: url("../../pictos/help/controles.png"); |
|
44
|
40 |
@mainPointer-background-image-path: url("../../img/cursors/pointer.png"); |
|
|
41 |
@secondPointer-background-image-path: url("../../img/cursors/pointer2.png"); |
|
35
|
42 |
|
|
|
43 |
html |
|
|
44 |
{ |
|
|
45 |
//cursor: none; |
|
|
46 |
} |
|
30
|
47 |
|
|
|
48 |
body |
|
|
49 |
{ |
|
33
|
50 |
overflow: hidden; |
|
30
|
51 |
background-color: @black; |
|
44
|
52 |
background-image: @mosaic-background-image-path; |
|
|
53 |
background-repeat: repeat; |
|
30
|
54 |
} |
|
|
55 |
|
|
|
56 |
/* |
|
|
57 |
* Il s'agit des propriétés de la mosaïque en elle même. |
|
|
58 |
* 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. |
|
|
59 |
* Son fond se répète. |
|
|
60 |
*/ |
|
|
61 |
#mainPanel |
|
|
62 |
{ |
|
|
63 |
overflow: hidden; |
|
|
64 |
position: absolute; |
|
|
65 |
width: 100%; |
|
|
66 |
top: 0px; |
|
|
67 |
left: 0px; |
|
44
|
68 |
background: transparent; |
|
|
69 |
//background-image: @mosaic-background-image-path; |
|
|
70 |
//background-repeat: repeat; |
|
30
|
71 |
} |
|
|
72 |
|
|
|
73 |
/* |
|
|
74 |
* 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 |
|
|
75 |
* qu'ils ont atteint la bordure de fenêtre de droite. |
|
|
76 |
*/ |
|
|
77 |
.snapshotDivs, .neighbourDivs |
|
|
78 |
{ |
|
|
79 |
background-color: @black; |
|
|
80 |
margin: @snapshots-margin; |
|
|
81 |
float: left; |
|
|
82 |
} |
|
|
83 |
|
|
|
84 |
/* |
|
|
85 |
* Les snapshots sont des images, elles doivent remplir l'intégralité de leurs divs (snapshotDivs). |
|
|
86 |
*/ |
|
|
87 |
.snapshots |
|
|
88 |
{ |
|
|
89 |
width: 100%; |
|
|
90 |
height: 100%; |
|
|
91 |
} |
|
|
92 |
|
|
|
93 |
/* |
|
|
94 |
* 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 |
|
|
95 |
* à 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. |
|
|
96 |
* au départ, lors de sa création, il est caché, mais apparaît dès que l'image est chargée. |
|
|
97 |
*/ |
|
|
98 |
.prezoomContainers |
|
|
99 |
{ |
|
|
100 |
position: absolute; |
|
|
101 |
display: none; |
|
|
102 |
background-image: @selected-snapshot-background-image-path; |
|
|
103 |
background-repeat: repeat; |
|
|
104 |
} |
|
|
105 |
|
|
|
106 |
/* |
|
|
107 |
* Cette classe est attachée à des divs destinés à remplir les bordures d'une mosaïque locale. |
|
|
108 |
*/ |
|
|
109 |
.blacks |
|
|
110 |
{ |
|
|
111 |
background-color: @black; |
|
|
112 |
float: left; |
|
|
113 |
} |
|
|
114 |
|
|
|
115 |
/* |
|
|
116 |
* C'est une classe appliquée aux divs "voisins", afin de les colorer lorsque l'utilisateur intéragit avec eux. |
|
|
117 |
* 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 |
|
|
118 |
* ne contenant pas d'image. |
|
|
119 |
* 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. |
|
|
120 |
*/ |
|
31
|
121 |
.neighbourFrame |
|
|
122 |
{ |
|
|
123 |
position: absolute; |
|
|
124 |
//background-color: #94C6C5; |
|
|
125 |
//background-color: rgba(148, 198, 197, 1); |
|
|
126 |
background-image: @selected-snapshot-background-image-path; |
|
|
127 |
background-repeat: repeat; |
|
|
128 |
opacity: 0; |
|
|
129 |
} |
|
|
130 |
|
|
|
131 |
/* |
|
|
132 |
* |
|
|
133 |
*/ |
|
|
134 |
.neighbourImgBg |
|
30
|
135 |
{ |
|
|
136 |
position: absolute; |
|
31
|
137 |
background-image: @mosaic-background-image-path; |
|
|
138 |
} |
|
|
139 |
|
|
|
140 |
/* |
|
|
141 |
* |
|
|
142 |
*/ |
|
|
143 |
.neighbourImg |
|
|
144 |
{ |
|
|
145 |
position: absolute; |
|
|
146 |
} |
|
|
147 |
|
|
|
148 |
video |
|
|
149 |
{ |
|
|
150 |
//position: absolute; |
|
33
|
151 |
} |
|
|
152 |
|
|
|
153 |
.notifications |
|
|
154 |
{ |
|
|
155 |
position: absolute; |
|
44
|
156 |
width: 200px; |
|
|
157 |
height: 200px; |
|
33
|
158 |
background-repeat: no-repeat; |
|
|
159 |
background-position: 0px 0px; |
|
44
|
160 |
background-size: 200px 200px; |
|
33
|
161 |
opacity: 0; |
|
|
162 |
margin: 15px; |
|
|
163 |
z-index: 400; |
|
|
164 |
} |
|
|
165 |
|
|
35
|
166 |
.notifications_inSearch |
|
|
167 |
{ |
|
|
168 |
position: relative; |
|
|
169 |
float: left; |
|
|
170 |
width: 100px; |
|
|
171 |
height: 100px; |
|
|
172 |
background-repeat: no-repeat; |
|
|
173 |
background-position: 0px 0px; |
|
|
174 |
background-size: 100px 100px; |
|
|
175 |
opacity: 0; |
|
|
176 |
margin: 15px; |
|
|
177 |
z-index: 400; |
|
|
178 |
} |
|
|
179 |
|
|
|
180 |
.notifications_inSearch_container |
|
|
181 |
{ |
|
|
182 |
position: absolute; |
|
|
183 |
background-color: #fff; |
|
|
184 |
background: transparent; |
|
|
185 |
} |
|
|
186 |
|
|
33
|
187 |
#notify_selection |
|
|
188 |
{ |
|
|
189 |
background-image: @notify-selection-background-image-path; |
|
|
190 |
} |
|
|
191 |
|
|
|
192 |
#notify_search |
|
|
193 |
{ |
|
|
194 |
background-image: @notify-search-background-image-path; |
|
|
195 |
} |
|
|
196 |
|
|
|
197 |
#notify_point |
|
|
198 |
{ |
|
|
199 |
background-image: @notify-point-background-image-path; |
|
|
200 |
} |
|
|
201 |
|
|
44
|
202 |
#notify_timeline |
|
|
203 |
{ |
|
|
204 |
background-image: @notify-timeline-background-image-path; |
|
|
205 |
} |
|
|
206 |
|
|
33
|
207 |
/* |
|
|
208 |
* Aide |
|
|
209 |
*/ |
|
|
210 |
#notify_help |
|
|
211 |
{ |
|
|
212 |
position: absolute; |
|
|
213 |
margin: @notify-help-margin; |
|
|
214 |
border-style: solid; |
|
|
215 |
border-width: @notify-help-border-width; |
|
|
216 |
border-color: #fff; |
|
|
217 |
background-color: @notify-help-background-color; |
|
|
218 |
} |
|
|
219 |
|
|
|
220 |
#help_search |
|
|
221 |
{ |
|
|
222 |
float: left; |
|
|
223 |
top: 0%; |
|
|
224 |
width: 50%; |
|
|
225 |
height: 100%; |
|
|
226 |
background: transparent; |
|
|
227 |
} |
|
|
228 |
|
|
|
229 |
#help_controls |
|
|
230 |
{ |
|
|
231 |
float: left; |
|
|
232 |
top: 0%; |
|
|
233 |
width: 50%; |
|
|
234 |
height: 100%; |
|
|
235 |
background: transparent; |
|
|
236 |
} |
|
|
237 |
|
|
|
238 |
#help_sep |
|
|
239 |
{ |
|
|
240 |
position: absolute; |
|
|
241 |
top: 10%; |
|
|
242 |
left: 50%; |
|
|
243 |
width: 1px; |
|
|
244 |
height: 80%; |
|
|
245 |
background-color: #fff; |
|
|
246 |
} |
|
|
247 |
|
|
|
248 |
#search_title, #controls_title |
|
|
249 |
{ |
|
|
250 |
position: relative; |
|
|
251 |
color: #fff; |
|
|
252 |
//font-family: DIN-Medium, Fallback, sans-serif; |
|
|
253 |
font-size: 30px; |
|
|
254 |
text-align: center; |
|
|
255 |
font-weight: bold; |
|
|
256 |
margin-top: 15px; |
|
|
257 |
margin-bottom: 15px; |
|
|
258 |
} |
|
|
259 |
|
|
|
260 |
#search_img |
|
|
261 |
{ |
|
|
262 |
background-image: @notify-help-search-background-image-path; |
|
44
|
263 |
background-repeat: no-repeat; |
|
33
|
264 |
background-position: center center; |
|
44
|
265 |
width: 100%; |
|
|
266 |
height: 225px; |
|
33
|
267 |
} |
|
|
268 |
|
|
|
269 |
#controls_img |
|
|
270 |
{ |
|
|
271 |
background-image: @notify-help-controls-background-image-path; |
|
44
|
272 |
background-repeat: no-repeat; |
|
33
|
273 |
background-position: center center; |
|
44
|
274 |
width: 100%; |
|
|
275 |
height: 225px; |
|
33
|
276 |
} |
|
|
277 |
|
|
|
278 |
#search_2hands_text, #search_body_text, #controls_1hand_text |
|
|
279 |
{ |
|
|
280 |
position: relative; |
|
|
281 |
clear: both; |
|
|
282 |
color: #fff; |
|
|
283 |
//font-family: DIN-Medium, Fallback, sans-serif; |
|
|
284 |
font-size: 15px; |
|
|
285 |
text-align: center; |
|
|
286 |
font-weight: bold; |
|
|
287 |
margin-top: 10px; |
|
|
288 |
margin-bottom: 10px; |
|
|
289 |
} |
|
|
290 |
|
|
44
|
291 |
/*#search_2hands_imgs, #controls_1hand_imgs |
|
33
|
292 |
{ |
|
|
293 |
padding-left: 40px; |
|
44
|
294 |
}*/ |
|
33
|
295 |
|
|
|
296 |
.notify_imgs_small |
|
|
297 |
{ |
|
|
298 |
float: left; |
|
44
|
299 |
width: 130px; |
|
|
300 |
height: 130px; |
|
33
|
301 |
background-position: 0px 0px; |
|
|
302 |
background-repeat: no-repeat; |
|
|
303 |
} |
|
|
304 |
|
|
|
305 |
.notify_imgs_small |
|
|
306 |
{ |
|
|
307 |
margin: 4px; |
|
35
|
308 |
} |
|
|
309 |
|
|
|
310 |
.filterHiders |
|
|
311 |
{ |
|
|
312 |
position: absolute; |
|
|
313 |
background-color: #fff; |
|
|
314 |
background: transparent; |
|
|
315 |
} |
|
|
316 |
|
|
|
317 |
#mainPointer |
|
|
318 |
{ |
|
|
319 |
position: absolute; |
|
|
320 |
width: 74px; |
|
|
321 |
height: 74px; |
|
|
322 |
background-image: @mainPointer-background-image-path; |
|
|
323 |
background-position: 0px 0px; |
|
|
324 |
background-repeat: no-repeat; |
|
|
325 |
z-index: 500; |
|
44
|
326 |
opacity: 0; |
|
|
327 |
} |
|
|
328 |
|
|
|
329 |
#secondPointer |
|
|
330 |
{ |
|
|
331 |
position: absolute; |
|
|
332 |
width: 74px; |
|
|
333 |
height: 74px; |
|
|
334 |
background-image: @secondPointer-background-image-path; |
|
|
335 |
background-position: 0px 0px; |
|
|
336 |
background-repeat: no-repeat; |
|
|
337 |
z-index: 500; |
|
|
338 |
opacity: 0; |
|
|
339 |
} |
|
|
340 |
|
|
|
341 |
.borderNeighbours |
|
|
342 |
{ |
|
|
343 |
position: absolute; |
|
|
344 |
background-color: #fff; |
|
|
345 |
margin: @snapshots-margin; |
|
|
346 |
//background-image: @mosaic-background-image-path; |
|
|
347 |
background-color: @black; |
|
|
348 |
background-repeat: repeat; |
|
|
349 |
background-position: 0px 0px; |
|
30
|
350 |
} |