From 56a124b83d1791f635518ab64876bbced95c2e52 Mon Sep 17 00:00:00 2001 From: weru Date: Wed, 12 Apr 2023 19:42:02 +0300 Subject: [PATCH] toggle line wrap on hover #2 Signed-off-by: weru --- assets/css/style.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/assets/css/style.css b/assets/css/style.css index 63ca199..104bc85 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -277,6 +277,19 @@ pre { color: var(--body-text-color); } +pre:hover { + word-wrap: break-word; + white-space: pre-wrap; +} + +pre:hover code { + word-break: break-all; +} + +pre:hover .shell { + align-items: flex-start; +} + pre code { padding: 0; color: inherit;