From 800c95fb9ab78744654540caf3a914688219daeb Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 15 Jul 2020 17:11:24 +0100 Subject: [PATCH] Fix z-index issue on button hover animation --- styles.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/styles.css b/styles.css index 3d5f1dd..8e2355a 100644 --- a/styles.css +++ b/styles.css @@ -127,7 +127,10 @@ img.cover-image { font-family: 'Cutive Mono', monospace; color: #fff; 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 */ @@ -137,6 +140,7 @@ img.cover-image { font-size: 1.1rem; border-top: 1px solid #fff; padding-top: 2px; + z-index: 1; } /* View on GitHub button*/ @@ -207,7 +211,6 @@ a.cover-link:link:after, a.cover-link:visited:after { left: 50%; top: 50%; width: 150%; - z-index: -1; -webkit-transition: all 0.75s ease 0s; -moz-transition: all 0.75s ease 0s; -o-transition: all 0.75s ease 0s;