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

Commit

Permalink
Fix: Fixed broken to-do list layout in RTL content (see ckeditor/cked…
Browse files Browse the repository at this point in the history
…itor5-list#134).
  • Loading branch information
oleq committed Sep 19, 2019
1 parent 130f4e8 commit 7e7d268
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions theme/ckeditor5-ui/components/list/list.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import "../../../mixins/_disabled.css";
@import "../../../mixins/_rounded.css";
@import "../../../mixins/_shadow.css";
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";

:root {
--ck-todo-list-checkmark-size: 16px;
Expand Down Expand Up @@ -103,8 +104,16 @@
width: var(--ck-todo-list-checkmark-size);
height: var(--ck-todo-list-checkmark-size);
vertical-align: middle;
left: calc( var(--ck-spacing-large) * -1.5 );
margin-right: calc( var(--ck-spacing-large) * -1 );

@mixin ck-dir ltr {
left: calc( var(--ck-spacing-large) * -1.5 );
margin-right: calc( var(--ck-spacing-large) * -1 );
}

@mixin ck-dir rtl {
right: calc( var(--ck-spacing-large) * -1.5 );
margin-left: calc( var(--ck-spacing-large) * -1 );
}

&::before {
content: '';
Expand Down

0 comments on commit 7e7d268

Please sign in to comment.