Last active
August 29, 2015 14:06
-
-
Save owise1/5a6e19ee491930fa6b78 to your computer and use it in GitHub Desktop.
General Less Mixin
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
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