Add code blocks to rich text editor (#9921)
* Applies small changes to code block display in timeline * Makes the composer code block look like the timeline display, but without line numbers * Adds a button to allow code blocks to be implemented * Adds tests for the new button
This commit is contained in:
parent
422802ea6d
commit
a63da74f06
5 changed files with 32 additions and 3 deletions
|
@ -46,10 +46,23 @@ limitations under the License.
|
|||
|
||||
// model output always includes a linebreak but we do not want the user
|
||||
// to see it when writing input in lists
|
||||
:is(ol, ul) + br:last-of-type {
|
||||
:is(ol, ul, pre) + br:last-of-type {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> pre {
|
||||
font-size: $font-15px;
|
||||
line-height: $font-24px;
|
||||
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding: $spacing-8 $spacing-12;
|
||||
|
||||
background-color: $inlinecode-background-color;
|
||||
border: 1px solid $inlinecode-border-color;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: $monospace-font-family !important;
|
||||
background-color: $inlinecode-background-color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue