From 502e5274a723076f9b0ca5d324e5c0f0f4506286 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Thu, 23 May 2024 11:39:20 +0200 Subject: [PATCH] pages/portfolio : style pour les liens --- src/pages/portfolio.astro | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/pages/portfolio.astro b/src/pages/portfolio.astro index ea24b12..7a0464b 100644 --- a/src/pages/portfolio.astro +++ b/src/pages/portfolio.astro @@ -42,4 +42,34 @@ figcaption { p { line-height: 1.5; } + +a { + position: relative; + text-decoration: none; + color: #ff66ff; + padding: 2px; + transition: color 0.1s; +} + +a::before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + bottom: 0; + left: 0; + background-color: #ff66ff; + transform: scaleY(0.1); + transition: transform 0.1s ease-out; + transform-origin: bottom; + z-index: -1; +} + +a:hover::before { + transform: scaleY(1); +} + +a:hover { + color: white; +}