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

Introduced styles for LinkFormView with manual decorators. #233

Merged
merged 8 commits into from
Jun 25, 2019
40 changes: 40 additions & 0 deletions theme/ckeditor5-link/linkform.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,43 @@
}
}

/* Style link form differently when manual decoratos are available.
* See: https://github.com/ckeditor/ckeditor5-link/issues/186.
*/
.ck.ck-link-form_layout-vertical {
display: block;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This goes to ckeditor5-link/theme/linkform.css.

padding: 0;
min-width: var(--ck-input-text-width);

& .ck-labeled-input {
margin: var(--ck-spacing-standard);

& .ck-input-text {
min-width: 0;
width: 100%;
}
}

& .ck-button {
padding: var(--ck-spacing-standard);
margin: 0;
border-radius: 0;
border: 0;
border-top: 1px solid var(--ck-color-base-border);
width: 50%;

&:first-of-type {
border-right: 1px solid var(--ck-color-base-border);
}
}

/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */
& .ck.ck-list {
margin-left: 0;
}

& .ck-list .ck-switchbutton {
border: 0;
}
}