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

Commit

Permalink
Merge pull request #205 from ckeditor/t/ckeditor5/416
Browse files Browse the repository at this point in the history
Feature: Improved responsiveness of the form and actions views in narrow viewports (see ckeditor/ckeditor5#416).
  • Loading branch information
dkonopka authored Oct 26, 2018
2 parents 9faf4e1 + 1f1438f commit 74dbe69
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
18 changes: 18 additions & 0 deletions theme/linkactions.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,30 @@
* For licensing, see LICENSE.md.
*/

@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rwd.css";

.ck.ck-link-actions {
display: flex;
flex-direction: row;
flex-wrap: nowrap;

& .ck-link-actions__preview {
display: inline-block;

& .ck-button__label {
overflow: hidden;
}
}

@mixin ck-media-phone {
flex-wrap: wrap;

& .ck-link-actions__preview {
flex-basis: 100%;
}

& .ck-button:not(.ck-link-actions__preview) {
flex-basis: 50%;
}
}
}
20 changes: 17 additions & 3 deletions theme/linkform.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,26 @@
* For licensing, see LICENSE.md.
*/

@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rwd.css";

.ck.ck-link-form {
& .ck-labeled-input {
display: inline-block;
}
display: flex;
flex-direction: row;
flex-wrap: nowrap;

& .ck-label {
display: none;
}

@mixin ck-media-phone {
flex-wrap: wrap;

& .ck-labeled-input {
flex-basis: 100%;
}

& .ck-button {
flex-basis: 50%;
}
}
}

0 comments on commit 74dbe69

Please sign in to comment.