Created
April 30, 2015 16:46
-
-
Save louy/af04e8e98a8b98a050f0 to your computer and use it in GitHub Desktop.
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
/** | |
* Fix element positioning when using adminbar | |
*/ | |
@mixin fixed-top( $space, $property: "top", $factor: 1 ) { | |
#{$property}: $space * $factor; | |
.admin-bar & { | |
#{$property}: ($space + 46px) * $factor; | |
@media (min-width: 783px) { | |
#{$property}: ($space + 32px) * $factor; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment