front_idill/src/mosaic/css/mosaic.less
author bastiena
Fri, 27 Apr 2012 14:38:23 +0200
changeset 30 45c889eae324
child 31 2c7fc855eba8
permissions -rw-r--r--
Front IDILL : Creation of the main parts of the 2 first Modes : MOSAIC : prezoom/preunzoom, zoom/unzoom. local mosaic developpement aborted and postponed for the late developpement parts. VIDEO : moving to a neighbour snapshot.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     1
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     2
* This file is part of the TraKERS\Front IDILL package.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     3
*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     4
* (c) IRI <http://www.iri.centrepompidou.fr/>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     5
*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     6
* For the full copyright and license information, please view the LICENSE
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     7
* file that was distributed with this source code.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     8
*/
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     9
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    10
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    11
 * Projet : TraKERS
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    12
 * Module : Front IDILL
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    13
 * Fichier : mosaic.less
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    14
 * 
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    15
 * Auteur : alexandre.bastien@iri.centrepompidou.fr
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    16
 * 
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    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).
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    18
 *
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    19
 * Avertissement : Afin que ce fichier puisse compiler, il est nécessaire de lancer index.html depuis un chemin ne commencant pas par file:///.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    20
 * C'est pourquoi j'utilise WAMP pour le lancer.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    21
 */
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    22
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    23
@mosaic-border-tickness: 1px;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    24
@mosaic-background-color: #202020;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    25
@mosaic-background-image-path: url("../../img/background.png");
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    26
@selected-snapshot-background-image-path: url("../../img/selected_background.png");
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    27
@snapshots-background-color: #8D8D8D;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    28
@snapshots-margin-value: 5px;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    29
@snapshots-margin: @snapshots-margin-value @snapshots-margin-value @snapshots-margin-value @snapshots-margin-value;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    30
@black: #000000;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    31
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    32
body
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    33
{
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    34
    overflow: hidden;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    35
    background-color: @black;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    36
}
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    37
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    38
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    39
 * Il s'agit des propriétés de la mosaïque en elle même.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    40
 * 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.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    41
 * Son fond se répète.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    42
 */
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    43
#mainPanel
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    44
{
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    45
    overflow: hidden;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    46
    position: absolute;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    47
    width: 100%;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    48
    top: 0px;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    49
    left: 0px;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    50
    background-image: @mosaic-background-image-path;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    51
    background-repeat: repeat;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    52
}
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    53
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    54
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    55
 * 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
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    56
 * qu'ils ont atteint la bordure de fenêtre de droite.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    57
 */
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    58
.snapshotDivs, .neighbourDivs
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    59
{
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    60
    background-color: @black;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    61
    margin: @snapshots-margin;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    62
    float: left;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    63
}
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    64
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    65
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    66
 * Les snapshots sont des images, elles doivent remplir l'intégralité de leurs divs (snapshotDivs).
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    67
 */
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    68
.snapshots
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    69
{
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    70
    width: 100%;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    71
    height: 100%;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    72
}
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    73
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    74
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    75
 * 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
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    76
 * à 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.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    77
 * au départ, lors de sa création, il est caché, mais apparaît dès que l'image est chargée.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    78
 */
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    79
.prezoomContainers
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    80
{
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    81
    position: absolute;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    82
    display: none;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    83
    background-image: @selected-snapshot-background-image-path;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    84
    background-repeat: repeat;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    85
}
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    86
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    87
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    88
 * Cette classe est attachée à des divs destinés à remplir les bordures d'une mosaïque locale.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    89
 */
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    90
.blacks
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    91
{
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    92
    background-color: @black;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    93
    float: left;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    94
}
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    95
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    96
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    97
 * C'est une classe appliquée aux divs "voisins", afin de les colorer lorsque l'utilisateur intéragit avec eux.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    98
 * 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
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    99
 * ne contenant pas d'image.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   100
 * 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.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   101
 */
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   102
.cyan
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   103
{
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   104
    position: absolute;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   105
    background-color: #94C6C5;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   106
    opacity: 0;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   107
}