Skip to content

Instantly share code, notes, and snippets.

@jcasabona
Created March 22, 2018 16:59
Show Gist options
  • Select an option

  • Save jcasabona/4c0bb345eeb34d66d1b685b12620df80 to your computer and use it in GitHub Desktop.

Select an option

Save jcasabona/4c0bb345eeb34d66d1b685b12620df80 to your computer and use it in GitHub Desktop.
a {
@include card();
transition: all 1s ease;
@include breakpoint($bp-small, 'max') {
display: block;
margin: $margin-base;
}
&:hover,
&:focus,
&:active {
background: lighten($color-primary, 15%);
transform: rotate(-2deg);
@include breakpoint($bp-large + 1) {
transform: rotate(-5deg);
}
&:nth-child(even) {
transform: rotate(2deg);
@include breakpoint($bp-large + 1) {
transform: rotate(5deg);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment