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

55 lines
1.1 KiB
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
}
}
2021-01-03 14:25:43 +05:30
/**
* Styling below ensures that YouTube videos are displayed in the editor the same as they would in about.gitlab.com
2021-09-04 01:27:46 +05:30
* https://gitlab.com/gitlab-com/www-gitlab-com/-/blob/main/source/stylesheets/_base.scss#L977
2021-01-03 14:25:43 +05:30
*/
.video_container {
padding-bottom: 56.25%;
}