Difference between revisions of "Template:UCSF/test template"

m (toolbar)
m (toolbar)
 
Line 22: Line 22:
 
             // Change to new smaller classes
 
             // Change to new smaller classes
 
           $('a').toggleClass('tiny', $(document).scrollTop() > 0);
 
           $('a').toggleClass('tiny', $(document).scrollTop() > 0);
      //    Attempt at animating, but needs movement --> define a class that activates on scroll to use
 
      //    $('a').stop().animate({
 
      //      height: '40px'
 
      //      padding-top: '20px'
 
      //      padding-bottom: '0px'
 
      //    },300);
 
 
           $('h1.logo').toggleClass('tiny', $(document).scrollTop() > 0);
 
           $('h1.logo').toggleClass('tiny', $(document).scrollTop() > 0);
 +
          $('a.gem').toggleClass('tiny', $(document).scrollTop() > 0);
 
         }
 
         }
 
     }
 
     }
Line 41: Line 36:
 
             $('a.tiny').removeClass('tiny', $(document).scrollTop() <= 49);
 
             $('a.tiny').removeClass('tiny', $(document).scrollTop() <= 49);
 
             $('h1.logo.tiny').removeClass('tiny', $(document).scrollTop() <= 49);
 
             $('h1.logo.tiny').removeClass('tiny', $(document).scrollTop() <= 49);
 +
            $('a.gem.tiny').removeClass('tiny', $(document).scrollTop() <= 49);
 
         }   
 
         }   
 
     }   
 
     }   
Line 1,184: Line 1,180:
 
  padding-top: 20px;
 
  padding-top: 20px;
 
  padding-bottom: 23px;
 
  padding-bottom: 23px;
 +
}
 +
 +
/* Special class to shrink iGEM Logo */
 +
 +
a.gem.tiny {
 +
  height: 32px;
 +
  padding-top: 20px;
 +
  padding-bottom: 23px;
 
}
 
}
  

Latest revision as of 23:48, 3 September 2015