@ckeditor/ckeditor5-theme-lark
Version:
A bright theme for CKEditor 5.
71 lines (58 loc) • 1.61 kB
CSS
/*
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
@import "../../../mixins/_rounded.css";
@import "../../../mixins/_shadow.css";
@import "../../../mixins/_focus.css";
:root {
--ck-menu-bar-menu-panel-max-width: 75vw;
}
.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {
@mixin ck-rounded-corners;
@mixin ck-drop-shadow;
background: var(--ck-color-dropdown-panel-background);
border: 1px solid var(--ck-color-dropdown-panel-border);
bottom: 0;
height: fit-content;
max-width: var(--ck-menu-bar-menu-panel-max-width);
/* Corner border radius consistent with the button. */
&.ck-menu-bar__menu__panel_position_es,
&.ck-menu-bar__menu__panel_position_se {
border-top-left-radius: 0;
}
&.ck-menu-bar__menu__panel_position_ws,
&.ck-menu-bar__menu__panel_position_sw {
border-top-right-radius: 0;
}
&.ck-menu-bar__menu__panel_position_en,
&.ck-menu-bar__menu__panel_position_ne {
border-bottom-left-radius: 0;
}
&.ck-menu-bar__menu__panel_position_wn,
&.ck-menu-bar__menu__panel_position_nw {
border-bottom-right-radius: 0;
}
&:focus {
outline: none;
}
}
.ck.ck-menu-bar {
& .ck-list-item-button {
&:focus,
&:active {
border-color: transparent;
box-shadow: none;
}
}
&.ck-menu-bar_focus-border-enabled .ck-list-item-button {
&:focus,
&:active {
/* Fix truncated shadows due to rendering order. */
position: relative;
z-index: 2;
@mixin ck-focus-ring;
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
}
}
}