forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
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 elastic#7 from miukimiu/graph-prototype
Graph prototype more styles
- Loading branch information
Showing
15 changed files
with
1,418 additions
and
783 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
168 changes: 65 additions & 103 deletions
168
x-pack/legacy/plugins/graph/public/components/_app.scss
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,129 +1,91 @@ | ||
.gphGraph__bar { | ||
margin: 0px $euiSizeS $euiSizeS $euiSizeS; | ||
} | ||
|
||
.gphAddData { | ||
position: absolute; | ||
right: 0; | ||
bottom: 0; | ||
height: calc(100% - 116px); | ||
background-color: $euiPageBackgroundColor; | ||
width: $euiSizeXXL * 10; | ||
border-top: 1px solid $euiBorderColor; | ||
z-index: $euiZNavigation; | ||
@import "@elastic/eui/src/components/header/variables"; | ||
|
||
&__body { | ||
padding: $euiSize; | ||
// variables | ||
$sidebarWidth: $euiSizeXXL * 10; | ||
|
||
.euiPanel { | ||
margin-bottom: $euiSize; | ||
} | ||
.euiText { | ||
margin-bottom: $euiSizeXS; | ||
} | ||
} | ||
.gphGraph__workspace, | ||
.gphGraph__workspace__inner { | ||
position: relative; | ||
flex-grow: 1; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
&__editNodeName + &__editNodeName { | ||
margin-top: $euiSizeS; | ||
} | ||
.gphGraph__visContainer { | ||
position: absolute; | ||
top: 80px; | ||
left: 0; | ||
width: calc(100% - #{$sidebarWidth}); | ||
height: 100%; | ||
|
||
&__prependIcon { | ||
display: flex; | ||
width: $euiSize * 2; | ||
align-items: center; | ||
justify-content: center; | ||
background: $euiColorLightShade; | ||
border-right: 1px solid $euiBorderColor; | ||
.gphVisualization { | ||
height: 100%; | ||
} | ||
} | ||
|
||
&__circleIcon { | ||
display: flex; | ||
width: $euiSizeL; | ||
height: $euiSizeL; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 50%; | ||
|
||
.gphLegacyIcon { | ||
margin-right: 0; | ||
text-align: center; | ||
display: inline-flex; | ||
width: auto; | ||
font-size: 12px; | ||
} | ||
} | ||
.gphGraph__bar { | ||
padding: 0px $euiSizeS $euiSizeS $euiSizeS; | ||
border-bottom: 1px solid $euiBorderColor; | ||
} | ||
|
||
.gphAddData__header { | ||
.gphGraph__mainWrapper { | ||
flex-grow: 1; | ||
display: flex; | ||
border-bottom: 1px solid $euiBorderColor; | ||
padding: $euiSize 0; | ||
|
||
&__title { | ||
flex: 1; | ||
padding: 0 $euiSize; | ||
} | ||
|
||
&__title, | ||
&__toggleIcon { | ||
padding: 0 $euiSize; | ||
} | ||
flex-direction: column; | ||
} | ||
|
||
.gphGraph__openSidebar { | ||
@include euiBottomShadowSmall; | ||
position: absolute; | ||
top: $euiSizeS; | ||
right: $euiSizeXS; | ||
background: $euiColorEmptyShade; | ||
padding: $euiSizeXS; | ||
} | ||
|
||
.gphAddData__nodesArea { | ||
.gphGraph__graphWrapper { | ||
background-color: $euiColorEmptyShade; | ||
position: relative; | ||
padding: $euiSize $euiSizeS; | ||
border: $euiBorderThin; | ||
border-radius: $euiBorderRadius; | ||
margin-top: $euiSizeS; | ||
margin-bottom: $euiSize; | ||
} | ||
|
||
> span { | ||
margin-right: $euiSizeXS; | ||
.gphGraphSidebar { | ||
background-color: $euiPageBackgroundColor; | ||
width: $sidebarWidth; | ||
border-left: 1px solid $euiBorderColor; | ||
overflow: hidden; | ||
|
||
&:last-of-type { | ||
margin-right: 0 | ||
} | ||
> * { | ||
width: $sidebarWidth; | ||
} | ||
|
||
span + span { | ||
margin-top: $euiSizeXS; | ||
&__header { | ||
display: flex; | ||
border-bottom: 1px solid $euiBorderColor; | ||
padding: $euiSize 0; | ||
} | ||
&__title { | ||
flex: 1; | ||
padding: 0 $euiSize; | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
.gphAddData__nodesArea__delete { | ||
visibility: visible; | ||
opacity: 1; | ||
} | ||
&__title, | ||
&__toggleIcon { | ||
padding: 0 $euiSize; | ||
} | ||
|
||
&__delete { | ||
@include euiBottomShadowSmall; | ||
position: absolute; | ||
top: 50%; | ||
right: 0; | ||
margin-right: -$euiSizeS; | ||
margin-top: -$euiSizeM; | ||
background: $euiColorEmptyShade; | ||
padding: $euiSizeXS; | ||
visibility: hidden; | ||
opacity: 0; | ||
&__body { | ||
@include euiScrollBar; | ||
padding-bottom: 0; /* 1 */ | ||
flex-grow: 1; | ||
flex-basis: 1px; /* Fixes scrolling for Firefox */ | ||
overflow-y: auto; | ||
} | ||
} | ||
|
||
.gphAddData__nodesAddList { | ||
box-sizing: border-box; | ||
&__bodyOverflow { | ||
padding: $euiSize; | ||
|
||
.gphAddData__circleIcon { | ||
margin-right: $euiSizeS; | ||
> *:last-child { | ||
margin-bottom: $euiSize; /* 1 */ | ||
} | ||
} | ||
} | ||
|
||
.gphGraph__openSidebar { | ||
@include euiBottomShadowSmall; | ||
background: $euiColorEmptyShade; | ||
padding: $euiSizeXS; | ||
} | ||
|
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
Oops, something went wrong.