This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from ckeditor/i/6112
Feature: Brought styles for various UI views: the compact toolbar, table form, table form row and header, table cell properties form, and table properties form (see ckeditor/ckeditor5/issues/6112).
- Loading branch information
Showing
9 changed files
with
208 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* 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-form { | ||
padding: 0 0 var(--ck-spacing-large); | ||
|
||
&:focus { | ||
/* https://github.com/ckeditor/ckeditor5-link/issues/90 */ | ||
outline: none; | ||
} | ||
|
||
& .ck.ck-input-text { | ||
min-width: 100%; | ||
width: 0; | ||
} | ||
|
||
& .ck.ck-dropdown { | ||
min-width: 100%; | ||
|
||
& .ck-dropdown__button { | ||
&:not(:focus) { | ||
border: 1px solid var(--ck-color-base-border); | ||
} | ||
|
||
& .ck-button__label { | ||
width: 100%; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
|
||
:root { | ||
--ck-table-form-header-height: 38px; | ||
} | ||
|
||
.ck.ck-form__header { | ||
padding: 0 var(--ck-spacing-large); | ||
height: var(--ck-table-form-header-height); | ||
line-height: var(--ck-table-form-header-height); | ||
border-bottom: 1px solid var(--ck-color-base-border); | ||
|
||
& .ck-form__header__label { | ||
font-weight: bold; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* 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-form__row { | ||
padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0; | ||
|
||
/* Ignore labels that work as fieldset legends */ | ||
& > *:not(.ck-label) { | ||
& + * { | ||
margin-left: var(--ck-spacing-large); | ||
} | ||
} | ||
|
||
& > .ck-label { | ||
width: 100%; | ||
min-width: 100%; | ||
} | ||
|
||
&.ck-table-form__action-row { | ||
margin-top: var(--ck-spacing-large); | ||
|
||
& .ck-button .ck-button__label { | ||
color: var(--ck-color-text); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* 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-cell-properties-form { | ||
width: 320px; | ||
|
||
& .ck-form__row { | ||
& .ck-table-cell-properties-form__background, | ||
& .ck-table-cell-properties-form__padding { | ||
width: 50%; | ||
} | ||
|
||
&.ck-table-cell-properties-form__alignment-row { | ||
& .ck.ck-toolbar { | ||
background: none; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* 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-properties-form { | ||
width: 320px; | ||
|
||
& .ck-form__row { | ||
&.ck-table-properties-form__dimensions-row, | ||
&.ck-table-properties-form__alignment-row { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
|
||
&.ck-table-properties-form__dimensions-row { | ||
& .ck-labeled-view > .ck-label { | ||
font-size: 10px; | ||
} | ||
|
||
& .ck-table-properties-form__width { | ||
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); | ||
} | ||
} | ||
|
||
&.ck-table-properties-form__alignment-row { | ||
& .ck.ck-toolbar { | ||
background: none; | ||
|
||
& .ck-toolbar__items > * { | ||
width: 40px; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters