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

Commit

Permalink
Merge pull request #246 from ckeditor/t/ckeditor5-widget/99
Browse files Browse the repository at this point in the history
Internal: Aligned widget class names to the refactoring in ckeditor5-widget (see ckeditor/ckeditor5-widget#99).
  • Loading branch information
Reinmar authored Oct 9, 2019
2 parents a75fbf1 + 67c1273 commit 202f95a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions theme/ckeditor5-widget/widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
}
}

.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 {
.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,
.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle: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
Expand All @@ -58,8 +58,8 @@
margin-top: calc(1em + var(--ck-widget-handler-icon-size));
}

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

Expand Down Expand Up @@ -107,7 +107,7 @@
/* Show the selection handler when the widget is selected. */
&.ck-widget_selected,
&.ck-widget_selected:hover {
& .ck-widget__selection-handler {
& .ck-widget__selection-handle {
opacity: 1;
background-color: var(--ck-color-focus-border);

Expand All @@ -119,14 +119,14 @@
}

/* Show the selection handler on mouse hover over the widget. */
&:hover .ck-widget__selection-handler {
&:hover .ck-widget__selection-handle {
opacity: 1;
background-color: var(--ck-color-widget-hover-border);
}
}

/* In a RTL environment, align the selection handler to the right side of the widget */
.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler {
.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
left: auto;
right: calc(0px - var(--ck-widget-outline-thickness));
}
Expand All @@ -137,8 +137,8 @@
&.ck-widget_selected:hover {
outline-color: var(--ck-color-widget-blurred-border);

& .ck-widget__selection-handler,
& .ck-widget__selection-handler:hover {
& .ck-widget__selection-handle,
& .ck-widget__selection-handle:hover {
background: var(--ck-color-widget-blurred-border);
}
}
Expand Down

0 comments on commit 202f95a

Please sign in to comment.