debian-mirror-gitlab/app/assets/stylesheets/components/rich_content_editor.scss

47 lines
897 B
SCSS
Raw Normal View History

2020-06-23 00:09:42 +05:30
/**
* Overrides styles from ToastUI editor
*/
2020-07-28 23:09:34 +05:30
.tui-editor-defaultUI {
// Toolbar buttons
.tui-editor-defaultUI-toolbar .toolbar-button {
color: $gl-gray-600;
2020-05-24 23:13:21 +05:30
border: 0;
2020-07-28 23:09:34 +05:30
&:hover,
&:active {
color: $blue-500;
border: 0;
}
2020-05-24 23:13:21 +05:30
}
2020-06-23 00:09:42 +05:30
2020-07-28 23:09:34 +05:30
// Contextual menu's & popups
.tui-popup-wrapper {
@include gl-overflow-hidden;
@include gl-rounded-base;
@include gl-border-gray-400;
2020-06-23 00:09:42 +05:30
2020-07-28 23:09:34 +05:30
hr {
@include gl-m-0;
@include gl-bg-gray-400;
}
button {
@include gl-text-gray-800;
}
2020-06-23 00:09:42 +05:30
}
2020-07-28 23:09:34 +05:30
/**
* 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-23 00:09:42 +05:30
}
}