-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
14 changed files
with
827 additions
and
943 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/** | ||
* Nodes | ||
*/ | ||
|
||
.gphNode-disabled{ | ||
opacity:0.3; | ||
} | ||
|
||
.gphNode__circle { | ||
fill: $euiColorMediumShade; | ||
|
||
// SASSTODO: Can't definitively change modifier class | ||
// because it's not easy to tell what's a class and what's | ||
// part of the data object since they are named the same | ||
&.selectedNode { | ||
stroke-width: $euiSizeXS; | ||
stroke: transparentize($euiColorPrimary, .25); | ||
} | ||
} | ||
|
||
.gphNode__text { | ||
fill: $euiColorDarkestShade; | ||
|
||
&--lowOpacity{ | ||
fill-opacity: 0.5; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Forms | ||
*/ | ||
|
||
.gphFormGroup--small { | ||
margin-bottom: $euiSizeS; | ||
} | ||
|
||
.gphColorPicker__color, | ||
.gphIconPicker__icon { | ||
margin: $euiSizeXS; | ||
cursor: pointer; | ||
|
||
&.selectedNode, | ||
&:hover, | ||
&:focus { | ||
transform: scale(1.4); | ||
} | ||
} | ||
|
||
.gphIconPicker__icon { | ||
opacity: .7; | ||
|
||
&.selectedNode, | ||
&:hover, | ||
&:focus { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
.gphIndexSelect{ | ||
max-width: $euiSizeL * 10; | ||
margin-right: $euiSizeXS; | ||
|
||
&-unselected { | ||
@include euiFocusRing; | ||
} | ||
} | ||
|
||
.gphAddButton { | ||
background: $euiColorPrimary; | ||
color: $euiColorEmptyShade; | ||
border-radius: 50%; | ||
font-size: $euiFontSizeXS; | ||
margin: 2px $euiSizeS 0 $euiSizeXS; | ||
@include size(26px); // same as svg | ||
|
||
&:hover:not(:disabled) { | ||
background: shadeOrTint($euiColorPrimary, 10%, 10%); | ||
cursor: pointer; | ||
} | ||
|
||
&:disabled { | ||
background: $euiColorMediumShade; | ||
cursor: not-allowed; | ||
} | ||
|
||
&-focus { | ||
@include euiFocusRing; | ||
} | ||
} | ||
|
||
.gphFieldList { | ||
min-width: $euiSizeXL * 10; | ||
} | ||
|
||
/** | ||
* Utilities | ||
*/ | ||
|
||
.gphNoUserSelect{ | ||
user-select: none; | ||
-webkit-touch-callout: none; | ||
-webkit-tap-highlight-color: transparent; | ||
} |
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,14 @@ | ||
// Import the EUI global scope so we can use EUI constants | ||
@import 'ui/public/styles/_styling_constants'; | ||
|
||
/* Graph plugin styles */ | ||
|
||
// Prefix all styles with "gph" to avoid conflicts. | ||
// Examples | ||
// gphChart | ||
// gphChart__legend | ||
// gphChart__legend--small | ||
// gphChart__legend-isLoading | ||
|
||
@import './main'; | ||
@import './templates/index'; |
Oops, something went wrong.