parent
8a2e386531
commit
314b2e7ba6
7 changed files with 29 additions and 0 deletions
|
@ -551,6 +551,18 @@ $left-gutter: 64px;
|
|||
background-color: $codeblock-background-color;
|
||||
}
|
||||
|
||||
code:not(pre *) {
|
||||
background-color: $inlinecode-background-color;
|
||||
border: 1px solid $inlinecode-border-color;
|
||||
border-radius: 4px;
|
||||
// The horizontal padding is added by gfm.css .markdown-body
|
||||
padding: $spacing-2 0;
|
||||
// Avoid inline code blocks to be sticked when on multiple lines
|
||||
line-height: $font-22px;
|
||||
// Avoid the border to be glued to the other words
|
||||
margin-right: $spacing-2;
|
||||
}
|
||||
|
||||
code {
|
||||
white-space: pre-wrap; /* don't collapse spaces in inline code blocks */
|
||||
}
|
||||
|
|
|
@ -49,6 +49,14 @@ limitations under the License.
|
|||
:is(ol, ul) + br:last-of-type {
|
||||
display: none;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: $monospace-font-family !important;
|
||||
background-color: $inlinecode-background-color;
|
||||
border: 1px solid $inlinecode-border-color;
|
||||
border-radius: 4px;
|
||||
padding: $spacing-2;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_WysiwygComposer_Editor_content_placeholder::before {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue