From 7d033e1c0e06a6e23d6009c34d4af1e4ffa4dc3b Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 14 Sep 2017 10:03:53 -0600 Subject: [PATCH] Bring back dark theme code block border This fixes https://github.com/vector-im/riot-web/issues/5013 and https://github.com/vector-im/riot-web/issues/4416 by only showing the border when the code block is hovered, and that the border is actually visible. The !important is needed to override the default border behaviour. Signed-off-by: Travis Ralston --- src/skins/vector/css/themes/_dark.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/skins/vector/css/themes/_dark.scss b/src/skins/vector/css/themes/_dark.scss index a8f162d9f9..c22c5a4442 100644 --- a/src/skins/vector/css/themes/_dark.scss +++ b/src/skins/vector/css/themes/_dark.scss @@ -131,6 +131,9 @@ $progressbar-color: #000; } // markdown overrides: +.mx_EventTile_content .markdown-body pre:hover { + border-color: #808080 !important; // inverted due to rules below +} .mx_EventTile_content .markdown-body { pre, code { filter: invert(1);