-
-
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 #7591 from ckeditor/i/7457
Feature (link): Added the icon indication in the top-right corner of the image that informs the image is linked. Closes #7457. Internal (theme-lark): Added the linked image indication styles.
- Loading branch information
Showing
7 changed files
with
66 additions
and
5 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Linking Image | ||
|
||
Both images should have defined the `linkHref` attribute. | ||
Only the first image should have: | ||
- defined the `linkHref` attribute. | ||
- the linked image icon indicator in the top-right corner (the element should be placed inside the `<a>` element). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
/* | ||
* 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-link-image_icon { | ||
position: absolute; | ||
top: var(--ck-spacing-medium); | ||
right: var(--ck-spacing-medium); | ||
width: 18px; | ||
height: 18px; | ||
padding: 5px; | ||
border-radius: var(--ck-border-radius); | ||
|
||
& svg { | ||
fill: currentColor; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.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,9 @@ | ||
/* | ||
* 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-link-image_icon { | ||
color: hsl(0, 0%, 100%); | ||
background: hsla(0, 0%, 0%, .4); | ||
} |