Difference between revisions of "Template:BIMATOX Project"

Line 289: Line 289:
  
 
/***************************************************** RESPONSIVE STYLING ****************************************************/
 
/***************************************************** RESPONSIVE STYLING ****************************************************/
 
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
 
@media screen and (max-width: 600px) {
 
  .topnav a:not(:first-child) {display: none;}
 
  .topnav a.icon {
 
    float: right;
 
    display: block;
 
  }
 
}
 
 
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
 
@media screen and (max-width: 600px) {
 
  .topnav.responsive {position: relative;}
 
  .topnav.responsive a.icon {
 
    position: absolute;
 
    right: 0;
 
    top: 0;
 
  }
 
  .topnav.responsive a {
 
    float: none;
 
    display: block;
 
    text-align: left;
 
  }
 
}
 
  
 
</Style>
 
</Style>

Revision as of 03:32, 28 October 2017