front_idill/src/mosaic/mosaic/css/mosaic.anc.less
author bastiena
Mon, 14 May 2012 17:20:35 +0200
changeset 32 4003f84cd349
permissions -rw-r--r--
Front IDILL : Player implemented and was mostly tested, still memory leaks.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     1
/*
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     2
* This file is part of the TraKERS\Front IDILL package.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     3
*
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     4
* (c) IRI <http://www.iri.centrepompidou.fr/>
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     5
*
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     6
* For the full copyright and license information, please view the LICENSE
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     7
* file that was distributed with this source code.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     8
*/
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
     9
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    10
/*
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    11
 * Projet : TraKERS
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    12
 * Module : Front IDILL
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    13
 * Fichier : mosaic.less
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    14
 * 
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    15
 * Auteur : alexandre.bastien@iri.centrepompidou.fr
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    16
 * 
4003f84cd349 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).
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    18
 *
4003f84cd349 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:///.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    20
 * C'est pourquoi j'utilise WAMP pour le lancer.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    21
 */
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    22
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    23
@mosaic-border-tickness: 1px;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    24
@mosaic-background-color: #202020;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    25
@mosaic-background-image-path: url("../../img/background.png");
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    26
@selected-snapshot-background-image-path: url("../../img/selected_background.png");
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    27
@snapshots-background-color: #8D8D8D;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    28
@snapshots-margin-value: 5px;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    29
@snapshots-margin: @snapshots-margin-value @snapshots-margin-value @snapshots-margin-value @snapshots-margin-value;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    30
@black: #000000;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    31
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    32
body
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    33
{
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    34
    overflow: hidden;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    35
    background-color: @black;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    36
}
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    37
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    38
/*
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    39
 * Il s'agit des propriétés de la mosaïque en elle même.
4003f84cd349 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.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    41
 * Son fond se répète.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    42
 */
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    43
#mainPanel
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    44
{
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    45
    overflow: hidden;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    46
    position: absolute;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    47
    width: 100%;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    48
    top: 0px;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    49
    left: 0px;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    50
    background-image: @mosaic-background-image-path;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    51
    background-repeat: repeat;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    52
}
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    53
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    54
/*
4003f84cd349 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
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    56
 * qu'ils ont atteint la bordure de fenêtre de droite.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    57
 */
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    58
.snapshotDivs, .neighbourDivs
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    59
{
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    60
    background-color: @black;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    61
    margin: @snapshots-margin;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    62
    float: left;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    63
}
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    64
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    65
/*
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    66
 * Les snapshots sont des images, elles doivent remplir l'intégralité de leurs divs (snapshotDivs).
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    67
 */
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    68
.snapshots
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    69
{
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    70
    width: 100%;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    71
    height: 100%;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    72
}
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    73
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    74
/*
4003f84cd349 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
4003f84cd349 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.
4003f84cd349 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.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    78
 */
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    79
.prezoomContainers
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    80
{
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    81
    position: absolute;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    82
    display: none;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    83
    background-image: @selected-snapshot-background-image-path;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    84
    background-repeat: repeat;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    85
}
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    86
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    87
/*
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    88
 * Cette classe est attachée à des divs destinés à remplir les bordures d'une mosaïque locale.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    89
 */
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    90
.blacks
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    91
{
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    92
    background-color: @black;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    93
    float: left;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    94
}
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    95
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    96
/*
4003f84cd349 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.
4003f84cd349 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
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
    99
 * ne contenant pas d'image.
4003f84cd349 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.
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
   101
 */
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
   102
.cyan
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
   103
{
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
   104
    position: absolute;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
   105
    background-color: #94C6C5;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
   106
    opacity: 0;
4003f84cd349 Front IDILL :
bastiena
parents:
diff changeset
   107
}