mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
ooooops, fix dark theme code blocks correctly
This commit is contained in:
parent
e7ba618bbe
commit
b45108d80d
@ -316,7 +316,7 @@ limitations under the License.
|
||||
font-family: inherit ! important;
|
||||
white-space: normal ! important;
|
||||
line-height: inherit ! important;
|
||||
// color: inherit; // unclear why we ever had this? it breaks plain code blocks on dark theme...
|
||||
color: inherit;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@ -331,7 +331,9 @@ limitations under the License.
|
||||
|
||||
.mx_EventTile_content .markdown-body code {
|
||||
background-color: #f8f8f8;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.mx_EventTile_copyButton {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
@ -343,14 +345,17 @@ limitations under the License.
|
||||
height: 19px;
|
||||
background-image: url($copy-button-url);
|
||||
}
|
||||
|
||||
.mx_EventTile_body pre {
|
||||
position: relative;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.mx_EventTile:hover .mx_EventTile_body pre
|
||||
{
|
||||
border: 1px solid $primary-hairline-color;
|
||||
}
|
||||
|
||||
.mx_EventTile_body pre:hover .mx_EventTile_copyButton
|
||||
{
|
||||
visibility: visible;
|
||||
|
Loading…
Reference in New Issue
Block a user