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

47 lines
894 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 {
2020-11-24 15:15:51 +05:30
color: $gray-500;
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;
2020-10-24 23:57:45 +05:30
@include gl-border-gray-200;
2020-06-23 00:09:42 +05:30
2020-07-28 23:09:34 +05:30
hr {
@include gl-m-0;
2020-10-24 23:57:45 +05:30
@include gl-bg-gray-200;
2020-07-28 23:09:34 +05:30
}
button {
2020-10-24 23:57:45 +05:30
@include gl-text-gray-700;
2020-07-28 23:09:34 +05:30
}
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
}
}