2020-06-04 11:08:21 -04:00
|
|
|
/**
|
|
|
|
* Overrides styles from ToastUI editor
|
|
|
|
*/
|
|
|
|
|
2020-07-01 14:08:50 -04:00
|
|
|
.tui-editor-defaultUI {
|
|
|
|
|
|
|
|
// Toolbar buttons
|
|
|
|
.tui-editor-defaultUI-toolbar .toolbar-button {
|
2020-08-20 14:10:16 -04:00
|
|
|
color: $gray-500;
|
2020-05-13 17:08:55 -04:00
|
|
|
border: 0;
|
2020-07-01 14:08:50 -04:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
color: $blue-500;
|
|
|
|
border: 0;
|
|
|
|
}
|
2020-05-13 17:08:55 -04:00
|
|
|
}
|
2020-06-04 11:08:21 -04:00
|
|
|
|
2020-07-01 14:08:50 -04:00
|
|
|
// Contextual menu's & popups
|
|
|
|
.tui-popup-wrapper {
|
|
|
|
@include gl-overflow-hidden;
|
|
|
|
@include gl-rounded-base;
|
2020-07-29 17:09:52 -04:00
|
|
|
@include gl-border-gray-200;
|
2020-06-04 11:08:21 -04:00
|
|
|
|
2020-07-01 14:08:50 -04:00
|
|
|
hr {
|
|
|
|
@include gl-m-0;
|
2020-07-29 17:09:52 -04:00
|
|
|
@include gl-bg-gray-200;
|
2020-07-01 14:08:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
2020-08-18 17:09:57 -04:00
|
|
|
@include gl-text-gray-700;
|
2020-07-01 14:08:50 -04:00
|
|
|
}
|
2020-06-04 11:08:21 -04:00
|
|
|
}
|
|
|
|
|
2020-07-01 14:08:50 -04:00
|
|
|
/**
|
|
|
|
* 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;
|
2020-06-04 11:08:21 -04:00
|
|
|
}
|
|
|
|
}
|
2020-10-16 05:09:06 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Styling below ensures that YouTube videos are displayed in the editor the same as they would in about.gitlab.com
|
|
|
|
* https://gitlab.com/gitlab-com/www-gitlab-com/-/blob/master/source/stylesheets/_base.scss#L977
|
|
|
|
*/
|
|
|
|
.video_container {
|
|
|
|
padding-bottom: 56.25%;
|
|
|
|
}
|