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
.left { | |
// What goes here? | |
@media(min-width: @screen-tablet) { | |
.make-sm-column(6); | |
} | |
@media(min-width: @screen-desktop) { |
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
// Generate a mixin for mobile full width columns, to maintain the same attributes | |
.make-column(@gutter: @grid-gutter-width) { | |
position: relative; | |
// Prevent columns from collapsing when empty | |
min-height: 1px; | |
// Inner gutter via padding | |
padding-left: (@gutter / 2); | |
padding-right: (@gutter / 2); | |
} |
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
.background-layers(@top, @bottom) { | |
background: url(@top), url(@bottom); | |
background-position: top center, top center; | |
background-attachment: fixed, fixed; | |
background-repeat: repeat, repeat; | |
-webkit-background-size: auto, cover; | |
-moz-background-size: auto, cover; | |
-o-background-size: auto, cover; | |
background-size: auto, cover; | |
} |
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
<snippet> | |
<content><![CDATA[ | |
@media(min-width: @screen-tablet) { | |
$1 | |
} | |
@media(min-width: @screen-desktop) { | |
$1 | |
} | |
@media(min-width: @screen-lg-desktop) { | |
$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
// This is the mixin | |
.highlight(@backgroundColor, @textColor) { | |
::selection, -moz::selection { | |
background: @backgroundColor; | |
color: @textColor; | |
} | |
} | |
// This is how you use it |
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
.textShadowBlack(@shadow: 0 1px 0px rgba(0,0,0,1)) { | |
text-shadow: @shadow; | |
} | |
.textShadowWhite(@shadow: 0 1px 0px rgba(255,255,255,1)) { | |
text-shadow: @shadow; | |
} |
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
.ul-inline-no-style() { | |
margin: 0px; | |
list-style: none; | |
.clearfix; | |
li { | |
float: left; | |
display: block; | |
} | |
} |
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
$(document).ready stickyAside = -> | |
top = $(".sticky").offset().top | |
$(window).scroll -> | |
if $(this).scrollTop() > top - 40 | |
$(".sticky").addClass "stick image" | |
else | |
$(".sticky").removeClass "stick image" |
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 queries breakpoints | |
// -------------------------------------------------- | |
// Extra small screen / phone | |
// Note: Deprecated @screen-xs and @screen-phone as of v3.0.1 | |
@screen-xs: 480px; | |
@screen-xs-min: @screen-xs; | |
@screen-phone: @screen-xs-min; | |
// Small screen / tablet |
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
.left { | |
text-align: center; | |
} | |
@media (min-width: 768px) { | |
.left { | |
text-align: left; | |
} | |
} | |
.center { | |
text-align: center; |