From 56f11fcb8f12b414d8d18bf1a235addd26a1317e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 19 Oct 2024 21:30:21 +0300 Subject: [PATCH] web: only underline links on hover --- web/src/index.css | 10 +++++++++- web/src/ui/Lightbox.tsx | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/web/src/index.css b/web/src/index.css index 127fd2f..880b4fe 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -20,7 +20,7 @@ pre, code { font-family: "Fira Code", monospace; } -button { +button, a.button { cursor: pointer; font-size: 1em; background: none; @@ -36,6 +36,14 @@ button { } } +a { + text-decoration: none; + + &:hover:not(.button) { + text-decoration: underline; + } +} + :root { --primary-color: #00c853; --primary-color-light: #92ffc0; diff --git a/web/src/ui/Lightbox.tsx b/web/src/ui/Lightbox.tsx index 930731d..83f2e9d 100644 --- a/web/src/ui/Lightbox.tsx +++ b/web/src/ui/Lightbox.tsx @@ -167,7 +167,7 @@ export class Lightbox extends Component { - +