Skip to content

Commit

Permalink
embedded panel styles (#58654)
Browse files Browse the repository at this point in the history
Merging to WIP draft branch
  • Loading branch information
ryankeairns authored Feb 27, 2020
1 parent 7f08b83 commit af080f0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const embeddablesRegistry: {
const renderEmbeddable = (embeddableObject: IEmbeddable, domNode: HTMLElement) => {
return (
<div
className="embeddable"
className="canvasEmbeddable"
style={{ width: domNode.offsetWidth, height: domNode.offsetHeight, cursor: 'auto' }}
>
<I18nContext>
Expand Down
24 changes: 24 additions & 0 deletions x-pack/legacy/plugins/canvas/public/style/hackery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,27 @@
max-height: 680px; // limit for large screen displays
}
}

.canvasEmbeddable .embPanel {
border: none;
background: none;

.embPanel__title {
margin-bottom: $euiSizeXS;
}

.embPanel__optionsMenuButton {
border-radius: $euiBorderRadius;
}

.canvas-isFullscreen & {
.embPanel__optionsMenuButton {
opacity: 0;
}

&:focus .embPanel__optionsMenuButton,
&:hover .embPanel__optionsMenuButton {
opacity: 1;
}
}
}

0 comments on commit af080f0

Please sign in to comment.