This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Sidebar */ | |
#sidebar { | |
position: absolute; | |
top: 2%; | |
right: 1%; | |
height: 96%; | |
width: 30%; | |
z-index: 2; | |
border: 1px solid #999; | |
padding-left: 1%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Styles from mobile devices */ | |
@media (max-width: 625px) { | |
#sidebar_content { | |
display: none; | |
} | |
/* Sidebar */ | |
#sidebar { | |
position: relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Toggle for 'About this map' and X buttons | |
// Only visible on mobile | |
isVisibleDescription = false; | |
// Grab header, then content of sidebar | |
sidebarHeader = $('#sidebar_header').html(); | |
sidebarContent = $('#sidebar_content').html(); | |
// Then grab credit information | |
creditsContent = $('#credits_content').html(); | |
$('.toggle_description').click(function() { | |
if (isVisibleDescription === false) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 'About this map' button, description box */ | |
/* Mobile only */ | |
.toggle_description { | |
display: none; | |
z-index: 8; | |
position: relative; | |
float: right; | |
right: 0%; | |
top: 0%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Styles from mobile devices */ | |
@media (max-width: 625px) { | |
.toggle_description { | |
display: inline; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (num in $('.topstory .image')) { | |
topstory = $('.topstory .image')[num]; | |
topstory_image = $('.topstory img')[num]; | |
if (parseFloat($(topstory).css('height')) > 300) { | |
$(topstory).css('margin-right', 'auto'); | |
$(topstory).css('padding', '75px'); | |
$(topstory).css('padding-top', '3px'); | |
$(topstory).css('padding-bottom', '0px'); | |
$(topstory).css('border', '1px solid #d3d3d3'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width: 600px) { | |
.detailed-candidate-box-border { | |
overflow: scroll; | |
-webkit-overflow-scrolling: touch; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="copyright-box" style="display: none;"> | |
<p>© Copyright 2013, <a href="http://wcfcourier.com/" target="_blank">Waterloo Cedar Falls Courier</a>, 100 E. 4th St. Waterloo, IA | <a href="http://wcfcourier.com/terms/" target="_blank">Terms of Service</a> and <a href="http://wcfcourier.com/privacy/" target="_blank">Privacy Policy</a></p> | |
</div> | |
/***** Copyright *****/ | |
#copyright-box { | |
float: left; | |
margin-top: 20px; | |
padding-top: 15px; |