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 #229 from ckeditor/cf/2808
Other: Introduced styles for ck-fake-panel. Part of ckeditor/ckeditor5-ui#501.
- Loading branch information
Showing
2 changed files
with
57 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
*/ | ||
|
||
@import "../../../mixins/_shadow.css"; | ||
|
||
:root { | ||
--ck-balloon-fake-panel-offset-horizontal: 6px; | ||
--ck-balloon-fake-panel-offset-vertical: 6px; | ||
} | ||
|
||
/* Let's use `.ck-balloon-panel` appearance. See: balloonpanel.css. */ | ||
.ck .ck-fake-panel div { | ||
@mixin ck-drop-shadow; | ||
|
||
min-height: 15px; | ||
|
||
background: var(--ck-color-panel-background); | ||
border: 1px solid var(--ck-color-panel-border); | ||
border-radius: var(--ck-border-radius); | ||
|
||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.ck .ck-fake-panel div:nth-child( 1 ) { | ||
margin-left: var(--ck-balloon-fake-panel-offset-horizontal); | ||
margin-top: var(--ck-balloon-fake-panel-offset-vertical); | ||
} | ||
|
||
.ck .ck-fake-panel div:nth-child( 2 ) { | ||
margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2); | ||
margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2); | ||
} | ||
.ck .ck-fake-panel div:nth-child( 3 ) { | ||
margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3); | ||
margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3); | ||
} | ||
|
||
/* If balloon is positioned above element, we need to move fake panel to the top. */ | ||
.ck .ck-balloon-panel_arrow_s + .ck-fake-panel, | ||
.ck .ck-balloon-panel_arrow_se + .ck-fake-panel, | ||
.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel { | ||
--ck-balloon-fake-panel-offset-vertical: -6px; | ||
} |