8
0
Просмотр исходного кода

Merge pull request #47 from ckeditor/t/46

t/46: Made the .ck-editor always relatively positioned.
Piotrek Koszuliński 9 лет назад
Родитель
Сommit
835c977e91
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      packages/ckeditor5-theme-lark/theme/components/editor.scss

+ 5 - 0
packages/ckeditor5-theme-lark/theme/components/editor.scss

@@ -5,6 +5,11 @@
 @include ck-editor {
 	@include ck-rounded-corners();
 
+	// All the elements within `.ck-editor` are positioned relatively to it.
+	// If any element needs to be positioned with respect to the <body>, etc.,
+	// it must land outside of the `.ck-editor` in DOM.
+	position: relative;
+
 	.ck-editor__top {
 		.ck-toolbar {
 			border-top: 0;