mirror of https://github.com/zulip/zulip.git
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:
parent
69e224cd87
commit
f1e60014fa
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue