Fix z-index issue on button hover animation

This commit is contained in:
Alicia Sykes 2020-07-15 17:11:24 +01:00
parent 2b01f0b050
commit 800c95fb9a

View File

@ -127,7 +127,10 @@ img.cover-image {
font-family: 'Cutive Mono', monospace; font-family: 'Cutive Mono', monospace;
color: #fff; color: #fff;
font-size: 2rem; font-size: 2rem;
text-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2); z-index: 1;
text-shadow:
0 0 1px rgba(0, 0, 0, 0.2),
0 1px 0 rgba(0, 0, 0, 0.2);
} }
/* Description of button, on cover page */ /* Description of button, on cover page */
@ -137,6 +140,7 @@ img.cover-image {
font-size: 1.1rem; font-size: 1.1rem;
border-top: 1px solid #fff; border-top: 1px solid #fff;
padding-top: 2px; padding-top: 2px;
z-index: 1;
} }
/* View on GitHub button*/ /* View on GitHub button*/
@ -207,7 +211,6 @@ a.cover-link:link:after, a.cover-link:visited:after {
left: 50%; left: 50%;
top: 50%; top: 50%;
width: 150%; width: 150%;
z-index: -1;
-webkit-transition: all 0.75s ease 0s; -webkit-transition: all 0.75s ease 0s;
-moz-transition: all 0.75s ease 0s; -moz-transition: all 0.75s ease 0s;
-o-transition: all 0.75s ease 0s; -o-transition: all 0.75s ease 0s;