Skip to content

Instantly share code, notes, and snippets.

@LoyEgor
Created June 25, 2017 14:21
Show Gist options
  • Save LoyEgor/b2e3d056529edc098a44bf01b17d8d21 to your computer and use it in GitHub Desktop.
Save LoyEgor/b2e3d056529edc098a44bf01b17d8d21 to your computer and use it in GitHub Desktop.
style for close icon
&:after,
&:before {
content: '';
@s: 2px;
width: 100%;
height: @s;
background-color: @brandcol1;
display: block;
position: absolute;
left: 0;
top: 50%;
margin-top: -@s/2;
}
&:before {
transform: rotate(45deg);
}
&:after {
transform: rotate(-45deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment