This file contains 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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
This file contains 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="menu"> | |
<ul> | |
<li><a href="#">Link 1</a></li> | |
<li><a href="#">This is long...</a></li> | |
<li><a href="#">Link 3</a></li> | |
<li><a href="#">http://www.upshots.org/</a></li> | |
<li><a href="#">Link 5</a></li> | |
</ul> | |
</div> |
This file contains 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
#menu { | |
float: right; | |
position: relative; | |
left: -50%; | |
} | |
#menu ul { | |
position: relative; | |
left: 50%; | |
} | |
#menu li { |
This file contains 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
<script type="text/javascript"> | |
$(document).ready(function() { | |
// The same for all waypoints | |
$('body').delegate('section > div.page-section', 'waypoint.reached', function(event, direction) { | |
var $active = $(this); | |
if (direction === "up") { | |
$active = $active.prev(); | |
} |
This file contains 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
<section id="main" class="nameof-page"> | |
<nav id="page-menu-wrapper"> | |
<ul id="page-menu"> | |
<li><a href="#"></a></li> | |
<li><a href="#" class="last"></a></li> | |
</ul> | |
</nav> | |
<div id="sectionname" class="page-section"> |
This file contains 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
.sticky nav { | |
position:fixed; | |
top:0; | |
left:0; | |
width:100%; | |
z-index: 999; | |
} | |
.sticky nav ul { | |
margin:0 auto; |
This file contains 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
/* root element for tabs */ | |
ul.tabs { | |
list-style:none; | |
border-bottom:1px solid #666; | |
height:30px; | |
} | |
/* single tab */ | |
ul.tabs li { |
This file contains 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
<!-- the tabs --> | |
<ul class="tabs"> | |
<li><a href="#">Tab 1</a></li> | |
<li><a href="#">Tab 2</a></li> | |
<li><a href="#">Tab 3</a></li> | |
</ul> | |
<!-- tab "panes" --> | |
<div class="panes"> | |
<div>First tab content. Tab contents are called "panes"</div> |
This file contains 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
$(function() { | |
// setup ul.tabs to work as tabs for each div directly under div.panes | |
$("ul.tabs").tabs("div.panes > div"); | |
}); |
OlderNewer