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

Commit

Permalink
Merge branch 'master' into t/ckeditor5/416d
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Oct 10, 2019
2 parents 0b7d882 + 202f95a commit 8e9b78a
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 8e9b78a

Please sign in to comment.