Difference between revisions of "Team:Uppsala/test5"

 
(14 intermediate revisions by 2 users not shown)
Line 23: Line 23:
  
  
 
+
/*
 
.content-text{
 
.content-text{
 
     margin-right: calc(50vw + 200px);
 
     margin-right: calc(50vw + 200px);
 
     margin-left:50vw;
 
     margin-left:50vw;
 
}
 
}
 +
*/
  
  
 
+
@media only screen and ( max-width: 900px ) {
 
+
@media screen and ( max-width: 800px ){
+
    #toc{
+
        display: none;
+
    }
+
 
     .content-text{
 
     .content-text{
    margin-right:50vw;
+
    margin-right:1em !important;
 +
    margin-left:1em !important;
 +
    width:90% !important;
 +
 
 +
   
 
     }
 
     }
 
}
 
}
 +
  
 
</style>
 
</style>
Line 355: Line 356:
  
  
 +
/*
 
   // Since side navigation is displayed at start at the very top and jumps down at scrolling
 
   // Since side navigation is displayed at start at the very top and jumps down at scrolling
 
   // ... We hide it a very short time, so we dont se it jumping down and then fade it in!  
 
   // ... We hide it a very short time, so we dont se it jumping down and then fade it in!  
Line 370: Line 372:
 
        
 
        
 
     });
 
     });
 
+
*/
  
  
Line 401: Line 403:
 
     scrollLink.each(function() {
 
     scrollLink.each(function() {
 
        
 
        
      var sectionOffs = $(this.hash).offset().top;
+
        var sectionOffs = $(this.hash).offset().top;
 
       var sectionOffset =  sectionOffs - 100;
 
       var sectionOffset =  sectionOffs - 100;
  
      if ( sectionOffset <= scrollbarLocation ) {
+
        if ( sectionOffset <= scrollbarLocation ) {
        $(this).parent().addClass('active');
+
              $(this).parent().addClass('active');
        $(this).parent().siblings().removeClass('active');
+
              $(this).parent().siblings().removeClass('active');
      }
+
          }
    })
+
        })
 
      
 
      
  });
+
    });
 +
 
  
 
});
 
});

Latest revision as of 22:40, 17 October 2018




Uppsala iGEM 2018