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 #276 from ckeditor/i/6553
Browse files Browse the repository at this point in the history
Internal: Replaced the `.ck-labeled-input` class with `.ck-labeled-field-view` . Closes ckeditor/ckeditor5#6553.
  • Loading branch information
oleq authored Apr 8, 2020
2 parents 685fead + af6c448 commit e50e1bf
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion theme/ckeditor5-image/textalternativeform.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
padding: 0;
width: calc(.8 * var(--ck-input-text-width));

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

& .ck-input-text {
Expand Down
5 changes: 2 additions & 3 deletions theme/ckeditor5-link/linkform.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
padding: 0;
width: calc(.8 * var(--ck-input-text-width));

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

& .ck-input-text {
Expand Down Expand Up @@ -74,7 +74,7 @@
padding: 0;
min-width: var(--ck-input-text-width);

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

& .ck-input-text {
Expand Down Expand Up @@ -122,4 +122,3 @@
}
}
}

4 changes: 2 additions & 2 deletions theme/ckeditor5-media-embed/mediaform.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
padding: 0;
width: calc(.8 * var(--ck-input-text-width));

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

& .ck-input-text {
Expand All @@ -38,7 +38,7 @@
}

/* Let the long error messages wrap in the narrow form. */
& .ck-labeled-input__error {
& .ck-labeled-field-view__error {
white-space: normal;
}
}
Expand Down
10 changes: 5 additions & 5 deletions theme/ckeditor5-table/tableform.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.ck.ck-table-form {
& .ck-form__row {
&.ck-table-form__border-row {
& .ck-labeled-view {
& .ck-labeled-field-view {
& > .ck-label {
font-size: var(--ck-font-size-tiny);
text-align: center;
Expand All @@ -34,7 +34,7 @@
&.ck-table-form__dimensions-row {
padding: 0;

& .ck-labeled-view > .ck-label {
& .ck-labeled-field-view > .ck-label {
font-size: 10px;
text-align: center;
}
Expand All @@ -54,8 +54,8 @@
}
}

& .ck.ck-labeled-view {
& .ck.ck-labeled-view__status {
& .ck.ck-labeled-field-view {
& .ck.ck-labeled-field-view__status {
@mixin ck-rounded-corners;

background: var(--ck-color-base-error);
Expand All @@ -75,7 +75,7 @@
}

/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-view__status {
& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {
display: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

.ck.ck-labeled-view .ck-labeled-view__status {
.ck.ck-labeled-field-view .ck-labeled-field-view__status {
font-size: var(--ck-font-size-small);
margin-top: var(--ck-spacing-small);

Expand All @@ -12,11 +12,11 @@
white-space: normal;
}

.ck.ck-labeled-view .ck-labeled-view__status_error {
.ck.ck-labeled-field-view .ck-labeled-field-view__status_error {
color: var(--ck-color-base-error);
}

.ck.ck-labeled-view > .ck.ck-label {
.ck.ck-labeled-field-view > .ck.ck-label {
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
Expand Down

0 comments on commit e50e1bf

Please sign in to comment.