-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 #8802 from ckeditor/i/6744-resize-theme
Internal (widget): The visual styles of widget-resize should be placed in the theme-lark package. Closes #6744.
- Loading branch information
Showing
3 changed files
with
57 additions
and
40 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
packages/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css
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,44 @@ | ||
/* | ||
* 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-resizer-size: 10px; | ||
|
||
/* Set the resizer with a 50% offset. */ | ||
--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px); | ||
--ck-resizer-border-width: 1px; | ||
} | ||
|
||
.ck .ck-widget__resizer { | ||
outline: 1px solid var(--ck-color-resizer); | ||
} | ||
|
||
.ck .ck-widget__resizer__handle { | ||
width: var(--ck-resizer-size); | ||
height: var(--ck-resizer-size); | ||
background: var(--ck-color-focus-border); | ||
border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%); | ||
border-radius: var(--ck-resizer-border-radius); | ||
|
||
&.ck-widget__resizer__handle-top-left { | ||
top: var(--ck-resizer-offset); | ||
left: var(--ck-resizer-offset); | ||
} | ||
|
||
&.ck-widget__resizer__handle-top-right { | ||
top: var(--ck-resizer-offset); | ||
right: var(--ck-resizer-offset); | ||
} | ||
|
||
&.ck-widget__resizer__handle-bottom-right { | ||
bottom: var(--ck-resizer-offset); | ||
right: var(--ck-resizer-offset); | ||
} | ||
|
||
&.ck-widget__resizer__handle-bottom-left { | ||
bottom: var(--ck-resizer-offset); | ||
left: var(--ck-resizer-offset); | ||
} | ||
} |
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