Make sure Ruby, Node.js, and bower are setup on your system before continuing.
- Add
jquery.makeitsticky.js
to your page - Decide which element you want to make sticky, and initiliaze like so:
$('#myElement').makeItSticky()
- threshold: Number of pixels from the top of the page when an element should become sticky (default: 20)
- stickyClass: The fixed position class to apply to an element (default: fixed)
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
// abide | |
// Accordion | |
$include-html-accordion-classes: $include-html-classes; | |
$accordion-navigation-padding: rem-calc(16); | |
$accordion-navigation-bg-color: #efefef ; | |
$accordion-navigation-hover-bg-color: darken($accordion-navigation-bg-color, 5%); | |
$accordion-navigation-active-bg-color: darken($accordion-navigation-bg-color, 3%); |
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
# Generate font icon page for reference | |
FONT = /^\.(sportisaicon[^:]+):before {/ | |
paths = [ | |
"fonts/custom_font_1.css", | |
"fonts/custom_font_2.css" | |
] | |
paths.each do |pth| |
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
.container{ | |
@include grid-row(); | |
.div1 { | |
@include grid-column(12); | |
@media #{$small} { | |
@include grid-column(4); | |
} | |
} | |
.div2 { | |
@include grid-column(12); |
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 class="row"> | |
<div class="small-4 large-8 columns"></div> | |
<div class="small-8 large-4 columns"></div> | |
</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
<div class="row"> | |
<div class="small-4 medium-6 large-8 columns"></div> | |
<div class="small-8 medium-6 large-4 columns"></div> | |
</div> |