@ckeditor/ckeditor5-ui
Version:
The UI framework and standard UI library of CKEditor 5.
57 lines (45 loc) • 1.07 kB
CSS
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
:root {
/* Make sure the balloon arrow does not float over its children. */
--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);
}
.ck.ck-balloon-panel {
display: none;
position: absolute;
z-index: var(--ck-z-panel);
&.ck-balloon-panel_with-arrow {
&::before,
&::after {
content: "";
position: absolute;
}
&::before {
z-index: var(--ck-balloon-panel-arrow-z-index);
}
&::after {
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
}
}
&[class*="arrow_n"] {
&::before {
z-index: var(--ck-balloon-panel-arrow-z-index);
}
&::after {
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
}
}
&[class*="arrow_s"] {
&::before {
z-index: var(--ck-balloon-panel-arrow-z-index);
}
&::after {
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
}
}
&.ck-balloon-panel_visible {
display: block;
}
}