-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring back dark theme code block border #5037
Conversation
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this not be some SCSS Var?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly. I'm not sure what the guidelines are for this, as it's an override from the base, but intentionally doesn't affect the light theme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit of a grey area (hah) - in this instance given all the other stuff nearby are hardcoded for now i'm happy to let it slip.
lgtm, thanks! |
that said, i'm a bit worried that we've ended up with |
/me makes mental note to open a maintenance PR in that respect |
(since when did GFM automatically put swatches next to hex colors?! |
This fixes #5013 and #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.