Skip to content

Instantly share code, notes, and snippets.

@ahmedghazi
Created October 31, 2016 16:53
Show Gist options
  • Save ahmedghazi/54044471194bae3492505f45a952e81c to your computer and use it in GitHub Desktop.
Save ahmedghazi/54044471194bae3492505f45a952e81c to your computer and use it in GitHub Desktop.
.close {
position: absolute;
right: 32px;
top: 32px;
width: 32px;
height: 32px;
opacity: 0.3;
}
.close:hover {
opacity: 1;
}
.close:before, .close:after {
position: absolute;
left: 15px;
content: ' ';
height: 33px;
width: 2px;
background-color: #333;
}
.close:before {
transform: rotate(45deg);
}
.close:after {
transform: rotate(-45deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment