@ckeditor/ckeditor5-theme-lark
Version:
A bright theme for CKEditor 5.
40 lines (33 loc) • 1.2 kB
CSS
/*
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
/* See ckeditor/ckeditor5#936. */
.ck.ck-placeholder, .ck .ck-placeholder {
@mixin ck-media-forced-colors {
/*
* This is needed for Edge on Windows to use the right color for the placeholder content (::before).
* See https://github.com/ckeditor/ckeditor5/issues/14907.
*/
forced-color-adjust: preserve-parent-color;
}
&::before {
cursor: text;
@mixin ck-media-default-colors {
color: var(--ck-color-engine-placeholder-text);
}
@mixin ck-media-forced-colors {
/*
* In the high contrast mode there is no telling between regular and placeholder text. Using
* italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.
*/
font-style: italic;
/*
* Without this margin, the caret will not show up and blink when the user puts the selection
* in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.
*/
margin-left: 1px;
}
}
}