Browse Source

mobile content moment

Tessier 4 years ago
parent
commit
c9330e8e5f

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/popsu_colloque/css-compiled/index.css


+ 1 - 1
web/themes/custom/popsu_colloque/css/pages/moments.scss

@@ -23,7 +23,7 @@
     }
     }
     .__content{
     .__content{
       max-height: calc(1.5rem * 12 );
       max-height: calc(1.5rem * 12 );
-      // 1.5rem = line-height
+      // 1.5rem = line-height if change don't forget script.js
       overflow: hidden;
       overflow: hidden;
       &.is_active{
       &.is_active{
         max-height: 100%!important;
         max-height: 100%!important;

+ 0 - 4
web/themes/custom/popsu_colloque/js/script.js

@@ -327,14 +327,10 @@
     TxtMomentHeght = $('#moments .__content').height();
     TxtMomentHeght = $('#moments .__content').height();
     limitHeight = 16 * 8;
     limitHeight = 16 * 8;
 
 
-    console.log(TxtMomentHeght);
-
     $morelink = $('#moments .more_link');
     $morelink = $('#moments .more_link');
 
 
   if(TxtMomentHeght <= limitHeight){
   if(TxtMomentHeght <= limitHeight){
-    console.log("salut");
     $morelink.addClass('is_active');
     $morelink.addClass('is_active');
-
   }
   }
 
 
     
     

Some files were not shown because too many files changed in this diff