Commit 364c2ee1 authored by derek-knox's avatar derek-knox

Update styling for SSE markdown editor

parent 91895122
...@@ -2,30 +2,45 @@ ...@@ -2,30 +2,45 @@
* Overrides styles from ToastUI editor * Overrides styles from ToastUI editor
*/ */
// Toolbar buttons .tui-editor-defaultUI {
.tui-editor-defaultUI-toolbar .toolbar-button {
color: $gl-gray-600; // Toolbar buttons
border: 0; .tui-editor-defaultUI-toolbar .toolbar-button {
color: $gl-gray-600;
&:hover,
&:active {
color: $blue-500;
border: 0; border: 0;
&:hover,
&:active {
color: $blue-500;
border: 0;
}
} }
}
// Contextual menu's & popups // Contextual menu's & popups
.tui-editor-defaultUI .tui-popup-wrapper { .tui-popup-wrapper {
@include gl-overflow-hidden; @include gl-overflow-hidden;
@include gl-rounded-base; @include gl-rounded-base;
@include gl-border-gray-400; @include gl-border-gray-400;
hr { hr {
@include gl-m-0; @include gl-m-0;
@include gl-bg-gray-400; @include gl-bg-gray-400;
}
button {
@include gl-text-gray-800;
}
} }
button { /**
@include gl-text-gray-800; * Overrides styles from ToastUI's Code Mirror (markdown mode) editor.
* Toast UI internally overrides some of these using the `.tui-md-` prefix.
* https://codemirror.net/doc/manual.html#styling
*/
.te-md-container .CodeMirror * {
@include gl-font-monospace;
@include gl-font-size-monospace;
@include gl-line-height-20;
} }
} }
---
title: Update the static site editor's markdown mode text to monospace to better reflect a code-editing experience
merge_request: 35347
author: Derek Knox
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment