Skip to content

Instantly share code, notes, and snippets.

@owise1
Last active August 29, 2015 14:06
Show Gist options
  • Save owise1/5a6e19ee491930fa6b78 to your computer and use it in GitHub Desktop.
Save owise1/5a6e19ee491930fa6b78 to your computer and use it in GitHub Desktop.
General Less Mixin
a{
cursor: pointer;
}
.rel{
position: relative;
}
.b100(@width: 100%){
display: block;
width: @width;
height: auto;
}
.db100{
.b100;
}
.covered{
background-size: cover;
background-position: center center;
}
.contained{
background-size: contain;
background-position: center center;
}
/* Sticky Footer, place in html, body */
.sticky-footer(@footerHeight: 60px){
height: 100%;
/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by it's height */
margin: 0 auto -@footerHeight;
}
/* Set the fixed height of the footer here */
#push,
#footer {
height: @footerHeight;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment