Skip to content

Commit

Permalink
Merge pull request #8298 from ckeditor/i/8296
Browse files Browse the repository at this point in the history
Internal (theme-lark): Fixed button separators in the link UI. Closes #8296.
  • Loading branch information
jodator committed Oct 21, 2020
2 parents b5d1596 + 0d42d87 commit 4e98872
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";

.ck-vertical-form .ck-button::after {
.ck-vertical-form > .ck-button:nth-last-child(2)::after {
border-right: 1px solid var(--ck-color-base-border);
}

Expand Down Expand Up @@ -48,8 +48,9 @@
}
}

/* 'button' selector must be used because those styles shouldn't be added to other elements, like 'a'. Example in LinkActionsView. */
& button.ck-button {
/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */
& > .ck-button:nth-last-child(1),
& > .ck-button:nth-last-child(2) {
padding: var(--ck-spacing-standard);
margin-top: var(--ck-spacing-standard);

Expand All @@ -68,7 +69,9 @@
border-right: 1px solid var(--ck-color-base-border);
}
}
}

& > .ck-button:nth-last-child(2) {
&::after {
border-right: 1px solid var(--ck-color-base-border);
}
Expand Down

0 comments on commit 4e98872

Please sign in to comment.