Browse Source

Evolution #190: Mise en avant du morceau en lecture

bastien 12 years ago
parent
commit
683df01a1c
2 changed files with 18 additions and 1 deletions
  1. 9 1
      web/bundles/muzichcore/css/main.css
  2. 9 0
      web/bundles/muzichcore/js/muzich.js

+ 9 - 1
web/bundles/muzichcore/css/main.css View File

498
 {
498
 {
499
   list-style: none outside none;
499
   list-style: none outside none;
500
   margin-top: 5px;
500
   margin-top: 5px;
501
-  margin-bottom: 5px;
501
+  margin-bottom: 10px;
502
   padding: 5px;
502
   padding: 5px;
503
 }
503
 }
504
 
504
 
1229
 .button_green
1229
 .button_green
1230
 {
1230
 {
1231
   background-color: #5ae959;
1231
   background-color: #5ae959;
1232
+}
1233
+
1234
+
1235
+li.element.shadows
1236
+{
1237
+   -moz-box-shadow: 3px 3px 3px #4F4F4F;
1238
+   -webkit-box-shadow: 3px 3px 3px #4F4F4F;
1239
+   box-shadow: 3px 3px 3px #4F4F4F;
1232
 }
1240
 }

+ 9 - 0
web/bundles/muzichcore/js/muzich.js View File

311
       form.submit();
311
       form.submit();
312
     }
312
     }
313
   });
313
   });
314
+  
315
+  function element_last_opened(li)
316
+  {
317
+    $('li.element').removeClass('shadows');
318
+    li.addClass('shadows');
319
+  }
314
 
320
 
315
   // Affichage un/des embed
321
   // Affichage un/des embed
316
   // 1328283150_media-playback-start.png
322
   // 1328283150_media-playback-start.png
319
     
325
     
320
      var li = $(this).parents('li.element');
326
      var li = $(this).parents('li.element');
321
      
327
      
328
+     element_last_opened(li);
322
      li.find('a.element_embed_close_link').show();
329
      li.find('a.element_embed_close_link').show();
323
      li.find('a.element_embed_open_link_text').hide();
330
      li.find('a.element_embed_open_link_text').hide();
324
      li.find('div.element_embed').show();
331
      li.find('div.element_embed').show();
330
     
337
     
331
      var li = $(this).parents('li.element');
338
      var li = $(this).parents('li.element');
332
      
339
      
340
+     element_last_opened(li);
333
      li.find('a.element_embed_close_link').show();
341
      li.find('a.element_embed_close_link').show();
334
      li.find('a.element_embed_open_link_text').hide();
342
      li.find('a.element_embed_open_link_text').hide();
335
      li.find('div.element_embed').show();
343
      li.find('div.element_embed').show();
342
     
350
     
343
      var li = $(this).parents('li.element');
351
      var li = $(this).parents('li.element');
344
     
352
     
353
+     li.removeClass('shadows');
345
      li.find('div.element_embed').hide();
354
      li.find('div.element_embed').hide();
346
      li.find('a.element_embed_open_link_text').show();
355
      li.find('a.element_embed_open_link_text').show();
347
      $(this).hide();
356
      $(this).hide();