Skip to content

Commit

Permalink
Merge pull request #44 from ahuglajbclajep/isolate-github-corner-style
Browse files Browse the repository at this point in the history
Move `.github-corner` style to corner.css
  • Loading branch information
tholman authored Jul 15, 2020
2 parents 02b58a1 + e87eda6 commit 3a97379
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 40 deletions.
39 changes: 39 additions & 0 deletions css/corner.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
0% {
transform: rotate(0deg);
}

20% {
transform: rotate(-25deg);
}

40% {
transform: rotate(10deg);
}

60% {
transform: rotate(-25deg);
}

80% {
transform: rotate(10deg);
}

100% {
transform: rotate(0deg);
}
}

@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}

.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
42 changes: 2 additions & 40 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Author: Tim Holman
*/

@import "corner.css";

* {
box-sizing: border-box;
}
Expand Down Expand Up @@ -72,46 +74,6 @@ p {
font-size: 10px;
}

.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
0% {
transform: rotate(0deg);
}

20% {
transform: rotate(-25deg);
}

40% {
transform: rotate(10deg);
}

60% {
transform: rotate(-25deg);
}

80% {
transform: rotate(10deg);
}

100% {
transform: rotate(0deg);
}
}

@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}

.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}

/**
* Footer
*/
Expand Down

0 comments on commit 3a97379

Please sign in to comment.