Skip to content

Instantly share code, notes, and snippets.

@jamiehs

jamiehs/sass-mixins.scss

Last active Aug 29, 2015
Embed
What would you like to do?
Magical mixins with trees
@mixin gallery-items($size) {
.item {
float: left;
.thumbnail {
margin-bottom: $size/4;
text-align: center;
width: $size;
height: $size;
.vertical-helper {
display: inline-block;
height: 100%;
vertical-align: middle;
width: 1px;
}
}
}
}
#some-page {
.gallery {
@include gallery-items(200px);
}
}
#some-other-page {
#other-element {
.another-gallery {
@include gallery-items(400px);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.