Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

t/ckeditor5-widget/66: Renamed the .ck-widget_selectable class to .ck-widget_with-selection-handler #215

Merged
merged 1 commit into from
Jan 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions theme/ckeditor5-table/tableediting.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,3 @@
}
}
}

.ck-editor__editable > .table:first-child,
.ck-editor__editable blockquote > .table:first-child {
/* Do not truncate selection handler if table is a first-child in the blockquote or content.
https://github.com/ckeditor/ckeditor5-block-quote/issues/28
https://github.com/ckeditor/ckeditor5-widget/issues/44 */
margin-top: calc(1em + var(--ck-widget-handler-icon-size));
}
12 changes: 11 additions & 1 deletion theme/ckeditor5-widget/widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@
}
}

.ck .ck-widget.ck-widget_selectable {
.ck-editor__editable > .ck-widget.ck-widget_with-selection-handler:first-child,
.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handler:first-child {
/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.
In fact, anything with overflow: hidden.
https://github.com/ckeditor/ckeditor5-block-quote/issues/28
https://github.com/ckeditor/ckeditor5-widget/issues/44
https://github.com/ckeditor/ckeditor5-widget/issues/66 */
margin-top: calc(1em + var(--ck-widget-handler-icon-size));
}

.ck .ck-widget.ck-widget_with-selection-handler {
& .ck-widget__selection-handler {
padding: 4px;
box-sizing: border-box;
Expand Down