Skip to content

Instantly share code, notes, and snippets.

@kerotaa
Last active December 23, 2015 05:49
Show Gist options
  • Save kerotaa/6589280 to your computer and use it in GitHub Desktop.
Save kerotaa/6589280 to your computer and use it in GitHub Desktop.
@mixin close-button($size: 32px, $border-width: 1px, $color: #000) {
@include inline-block;
position: relative;
width: $size;
height: $size;
&:hover {
cursor: pointer;
}
&::before, &::after {
content: "";
display: block;
position: absolute;
top: 50%;
left: 0;
width: $size;
height: $border-width;
background-color: $color;
}
&::before {
@include rotate(45deg);
}
&::after {
@include rotate(-45deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment