mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 04:23:58 +03:00
UBER-1039: Codeblock style fixes. (#3829)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
b4795677ad
commit
b0b40ca93e
@ -75,7 +75,7 @@
|
||||
{:else if node.nodeName === 'BLOCKQUOTE'}
|
||||
<blockquote><svelte:self nodes={node.childNodes} /></blockquote>
|
||||
{:else if node.nodeName === 'CODE'}
|
||||
<code class="proseCode"><svelte:self nodes={node.childNodes} /></code>
|
||||
<pre class="proseCode"><svelte:self nodes={node.childNodes} /></pre>
|
||||
{:else if node.nodeName === 'PRE'}
|
||||
<pre class="proseCodeBlock"><svelte:self nodes={node.childNodes} /></pre>
|
||||
{:else if node.nodeName === 'BR'}
|
||||
|
@ -47,6 +47,8 @@ table.proseTable {
|
||||
}
|
||||
|
||||
.proseCode {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0 .25rem;
|
||||
font-family: var(--mono-font);
|
||||
color: var(--theme-content-color);
|
||||
@ -63,11 +65,11 @@ table.proseTable {
|
||||
border-radius: .25rem;
|
||||
padding: .5rem;
|
||||
|
||||
code { white-space: normal; }
|
||||
pre { white-space: pre-wrap; }
|
||||
}
|
||||
|
||||
// Fixes for MessageViewer
|
||||
pre.proseCodeBlock > code.proseCode {
|
||||
pre.proseCodeBlock > pre.proseCode {
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
|
Loading…
Reference in New Issue
Block a user