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

Commit

Permalink
Feature: Added styles of new fields in the table cell properties view…
Browse files Browse the repository at this point in the history
…. Code refactoring (see ckeditor/ckeditor5#6189).
  • Loading branch information
oleq committed Feb 7, 2020
2 parents 7693efd + a585a3c commit c2bf945
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13 deletions.
24 changes: 21 additions & 3 deletions theme/ckeditor5-table/tablecellproperties.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,33 @@
width: 320px;

& .ck-form__row {
& .ck-table-cell-properties-form__background,
& .ck-table-cell-properties-form__padding {
width: 50%;
&.ck-table-cell-properties-form__dimensions-row,
&.ck-table-cell-properties-form__padding-row {
padding: 0;
}

&.ck-table-cell-properties-form__alignment-row {
& .ck.ck-toolbar {
background: none;
}
}

& .ck-table-cell-properties-form__padding-row {
width: 35%;
}

&.ck-table-cell-properties-form__dimensions-row {
& .ck-labeled-view > .ck-label {
font-size: 10px;
}

& .ck-table-cell-properties-form__width {
margin-right: var(--ck-spacing-small);
}

& .ck-table-cell-properties-form__height {
margin-left: var(--ck-spacing-small);
}
}
}
}
14 changes: 14 additions & 0 deletions theme/ckeditor5-table/tableform.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

.ck.ck-table-form {
& .ck-table-form__dimension-operator {
margin: 0;
align-self: start;
display: inline-block;
height: var(--ck-ui-component-min-height);
line-height: var(--ck-ui-component-min-height);
}
}
11 changes: 1 addition & 10 deletions theme/ckeditor5-table/tableproperties.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
& .ck-form__row {
&.ck-table-properties-form__dimensions-row,
&.ck-table-properties-form__alignment-row {
padding-left: 0;
padding-right: 0;
padding: 0;
}

&.ck-table-properties-form__dimensions-row {
Expand All @@ -22,14 +21,6 @@
margin-right: var(--ck-spacing-small);
}

& .ck-table-properties-form__dimension-operator {
margin: 0;
align-self: start;
display: inline-block;
height: var(--ck-ui-component-min-height);
line-height: var(--ck-ui-component-min-height);
}

& .ck-table-properties-form__height {
margin-left: var(--ck-spacing-small);
}
Expand Down

0 comments on commit c2bf945

Please sign in to comment.