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

Commit

Permalink
Fixed: ck-rounded-corners not respected because selection wrapped in …
Browse files Browse the repository at this point in the history
….ck-editor (the mixin uses @nest).
  • Loading branch information
oleq committed Mar 23, 2018
1 parent 0cd9f6d commit abdc61e
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions theme/ckeditor5-editor-classic/classiceditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,38 @@

@import "../mixins/_rounded.css";

.ck.ck-editor {
& .ck-editor__top {
& .ck-sticky-panel {
& .ck-toolbar {
@mixin ck-rounded-corners {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

border-bottom-width: 0;
.ck.ck-editor__top {
& .ck-sticky-panel {
& .ck-toolbar {
@mixin ck-rounded-corners {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

& .ck-sticky-panel__content_sticky .ck-toolbar {
border-bottom-width: 1px;
border-bottom-width: 0;
}

& .ck-sticky-panel__content_sticky .ck-toolbar {
border-bottom-width: 1px;

@mixin ck-rounded-corners {
border-radius: 0;
}
@mixin ck-rounded-corners {
border-radius: 0;
}
}
}
}

/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */
& .ck-editor__main .ck-editor__editable {
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */
background: var(--ck-color-base-background);
/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */
.ck.ck-editor__main .ck-editor__editable {
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */
background: var(--ck-color-base-background);

@mixin ck-rounded-corners {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
@mixin ck-rounded-corners {
border-top-left-radius: 0;
border-top-right-radius: 0;
}

&:not(.ck-focused) {
border-color: var(--ck-color-base-border);
}
&:not(.ck-focused) {
border-color: var(--ck-color-base-border);
}
}

0 comments on commit abdc61e

Please sign in to comment.