Permalink
Browse files

Bug 797379 - final bug fixes and updates for State of Mozilla

  • Loading branch information...
1 parent 7beb38d commit 184195d6b91b7055a3f923369e54a638bd83f889 @craigcook craigcook committed with rik Nov 14, 2012
View
4 apps/foundation/templates/foundation/annualreport/2011.html
@@ -891,8 +891,8 @@ <h2 class="section-title">{{ _('Sustainability and Partnerships') }}</h2>
<section class="sus-links">
<ul>
<li><a class="sus-faq" href="{{ url('foundation.annualreport.2011faq') }}">{{ _('FAQ') }}</a></li>
- <li><a class="sus-fin" href="http://static.mozilla.com/moco/en-US/pdf/Mozilla%20Foundation%20and%20Subsidiaries%202010%20Audited%20Financial%20Statement.pdf" hreflang="en-US">{{ _('2011 Audited Financial Statement') }} <small>{{ _('Download PDF') }}</small></a></li>
- <li><a class="sus-990" href="#" hreflang="en-US">{{ _('2011 Form 990') }} <small>{{ _('Download PDF') }}</small></a></li>
+ <li><a class="sus-fin" href="http://static.mozilla.com/moco/en-US/pdf/Mozilla%20Foundation%20and%20Subsidiaries%202011%20Audited%20Financial%20Statement.pdf" hreflang="en-US">{{ _('2011 Audited Financial Statement') }} <small>{{ _('Download PDF') }}</small></a></li>
+ <li><a class="sus-990" href="http://static.mozilla.com/moco/en-US/pdf/Mozilla%20Foundation%20-%202011%20Public%20Disclosure%20990.pdf" hreflang="en-US">{{ _('2011 Form 990') }} <small>{{ _('Download PDF') }}</small></a></li>
</ul>
</section>
View
7 media/css/foundation/annual2011.less
@@ -233,7 +233,7 @@ body.noscroll {
}
.js .overlay {
- .hidden;
+ display: none;
padding: 40px;
margin: 0;
float: none;
@@ -271,8 +271,7 @@ body.noscroll {
background: #ccc;
background: rgba(255,255,255,.65);
&:focus {
- background: #ddd;
- background: rgba(255,255,255,.75);
+ background: #fff;
}
}
.read:after {
@@ -931,8 +930,8 @@ body.noscroll {
}
.js .overlay {
+ display: block;
position: static;
- left: auto;
padding: 0;
margin: 20px 0 0;
background: transparent none !important;
View
16 media/js/annual2011.js
@@ -51,8 +51,7 @@
function() {
if (wideMode) {
var overlayheight = $(this).height() - 80;
- $(this).find(".overlay").hide().css({
- 'left' : 'auto',
+ $(this).find(".overlay").css({
'minHeight' : overlayheight
}).fadeIn(200);
}
@@ -66,15 +65,14 @@
}
);
- // Reveal overlays when buttons are clicked or get focus (for keyboard navigation)
- $(".overlay-wrap .read").bind("focus click", function() {
+ // Reveal overlays when buttons are activated (for keyboard, touch, and screen readers)
+ $(".overlay-wrap .read").bind("click", function() {
if (wideMode) {
$(".overlay[style]").stop().delay(300).fadeOut(600, function(){ // First hide any visible overlays
- $(this).removeAttr('style'); // Then reset them to normal (hidden offscreen by CSS)
+ $(this).removeAttr('style'); // Then reset them to normal (hidden in the style sheet)
});
var overlayheight = $(this).parents(".overlay-wrap").height() - 80;
- $(this).parents(".overlay-wrap").find(".overlay").hide().css({
- 'left' : 'auto',
+ $(this).parents(".overlay-wrap").find(".overlay").css({
'minHeight' : overlayheight
}).fadeIn(200);
$('html, body').animate({
@@ -113,8 +111,6 @@
if(fixed) {
fixed = false;
$nav.removeAttr("class");
- $nav.find("li").removeClass();
- $("#nav-welcome").addClass("current");
$head.css({ "margin-bottom" : "0" });
}
}
@@ -155,7 +151,7 @@
// Fire the waypoints for each section, passing classes for the current and previous sections
// Uses jQuery Waypoints http://imakewebthings.com/jquery-waypoints/
- $('#welcome').waypoint(waypointCallback('welcome', null), { offset: navHeight });
+ $('#welcome').waypoint(waypointCallback('welcome', 'welcome'), { offset: navHeight });
$('#mobilized').waypoint(waypointCallback('mobilized', 'welcome'), { offset: navHeight });
$('#action').waypoint(waypointCallback('action', 'mobilized'), { offset: navHeight });
$('#community').waypoint(waypointCallback('community', 'action'), { offset: navHeight });

0 comments on commit 184195d

Please sign in to comment.