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,7 +498,7 @@ li.element
498 498
 {
499 499
   list-style: none outside none;
500 500
   margin-top: 5px;
501
-  margin-bottom: 5px;
501
+  margin-bottom: 10px;
502 502
   padding: 5px;
503 503
 }
504 504
 
@@ -1229,4 +1229,12 @@ li.tag_proposition:hover
1229 1229
 .button_green
1230 1230
 {
1231 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,6 +311,12 @@ $(document).ready(function(){
311 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 321
   // Affichage un/des embed
316 322
   // 1328283150_media-playback-start.png
@@ -319,6 +325,7 @@ $(document).ready(function(){
319 325
     
320 326
      var li = $(this).parents('li.element');
321 327
      
328
+     element_last_opened(li);
322 329
      li.find('a.element_embed_close_link').show();
323 330
      li.find('a.element_embed_open_link_text').hide();
324 331
      li.find('div.element_embed').show();
@@ -330,6 +337,7 @@ $(document).ready(function(){
330 337
     
331 338
      var li = $(this).parents('li.element');
332 339
      
340
+     element_last_opened(li);
333 341
      li.find('a.element_embed_close_link').show();
334 342
      li.find('a.element_embed_open_link_text').hide();
335 343
      li.find('div.element_embed').show();
@@ -342,6 +350,7 @@ $(document).ready(function(){
342 350
     
343 351
      var li = $(this).parents('li.element');
344 352
     
353
+     li.removeClass('shadows');
345 354
      li.find('div.element_embed').hide();
346 355
      li.find('a.element_embed_open_link_text').show();
347 356
      $(this).hide();