css: Move `pre code` reset rules to `rendered_markdown` class block.

Moves and simplifies the `pre code` rules in `rendered_markdown.css`
so that they are all part of the `rendered_markdown` class block.
This commit is contained in:
Lauryn Menard 2023-03-03 17:03:59 +01:00 committed by Tim Abbott
parent 69e224cd87
commit f1e60014fa
1 changed files with 9 additions and 15 deletions

View File

@ -527,6 +527,15 @@
}
}
pre code {
font-size: inherit;
padding: 0;
white-space: inherit;
overflow-x: scroll;
color: inherit;
border: 0;
}
/* Style copy-to-clipboard button inside code blocks */
.copy_codeblock {
visibility: hidden;
@ -646,12 +655,6 @@ pre {
padding: 5px 7px 3px;
}
.rendered_markdown pre code {
font-size: inherit;
padding: 0;
white-space: inherit;
}
/* Both the horizontal scrollbar in <pre/> as well as
vertical scrollbar in the <textarea/> is styled similarly. */
.message_edit_form textarea,
@ -674,15 +677,6 @@ pre {
}
}
pre code {
overflow-x: scroll;
white-space: pre;
padding: 0;
color: inherit;
background-color: transparent;
border: 0;
}
/* Style inline code inside a link
to look more like a normal link */
a code {