Changeset 1357


Ignore:
Timestamp:
Sep 12, 2010, 12:15:34 AM (10 years ago)
Author:
popeye
Message:

loupe mieux positionnée

Location:
cpc/trunk/project/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/web/css/xneth/style.css

    r1355 r1357  
    2727.internal_tag_cloud span {
    2828  padding-right: 4px;
    29 }
    30 .internal_tag_cloud {
    31   text-align: center;
    3229}
    3330.box_repartition h2, .box_tags h2 {
     
    4037  text-align:left;
    4138  text-shadow:0 0 4px #FFFFFF;
     39}
     40#loupe {
     41  position: fixed;
     42  display: none;
     43  font-size: 2.4em;
     44  text-align: center;
     45  padding: 3px 5px 3px 5px;
     46  background-color: #fff;
     47  border: 1px solid #dddddd;
     48}
     49/* Tags */
     50.internal_tag_cloud a:link {color:#D4963E;}
     51.tag_level_0 {font-size: 0.8em;}
     52.tag_level_1 {font-size: 0.9em;}
     53.tag_level_2 {font-size: 1em;}
     54.tag_level_3 {font-size: 1.5em;}
     55.tag_level_4 {font-size: 1.7em;}
     56
     57.internal_tag_cloud {
     58  position: relative;
     59  text-align: center;
     60  margin: auto;
    4261}
    4362/* Synthèse */
     
    304323  background: url('images/coins_citoyen.png') no-repeat -10px -10px;
    305324}
    306 /**/
    307 
    308 /* Tags */
    309 .internal_tag_cloud a:link {color:#D4963E;}
    310 .tag_level_0 {font-size: 0.8em;}
    311 .tag_level_1 {font-size: 0.9em;}
    312 .tag_level_2 {font-size: 1em;}
    313 .tag_level_3 {font-size: 1.5em;}
    314 .tag_level_4 {font-size: 1.7em;}
    315 /**/
    316 
    317325.temp {
    318326  font-size: 1.1em;
     
    13531361float: right;
    13541362width: 50%;
    1355 }
    1356 .internal_tag_cloud{
    1357   position: relative;
    1358   margin: auto;
    1359 }
    1360 #loupe {
    1361   position: fixed;
    1362   display: none;
    1363   font-size: 3em;
    1364   text-align: center;
    1365   padding: 3px 5px 3px 5px; /* top right bottom left */
    1366   background-color: #fff;
    1367   border: 1px solid #dddddd;
    13681363}
    13691364/* accueil */
  • cpc/trunk/project/web/js/fonctions.js

    r1350 r1357  
    5454        );
    5555        $(".internal_tag_cloud").mousemove(function(e) {
    56           $("#loupe").css({ left: e.pageX - 150, top: e.pageY - 155});
     56          milieu = $("#loupe").width() / 2;
     57          $("#loupe").css({left: e.clientX - milieu, top: e.clientY + 20});
    5758        });
    5859       
    59         $(".internal_tag_cloud a").mouseout(function() {
     60        $(".internal_tag_cloud").mouseout(function() {
    6061          $("#loupe").css("display", "none");
    6162        });
    62        
    63        
     63
    6464  }); // fin document ready
    6565
Note: See TracChangeset for help on using the changeset viewer.