Skip to content

Commit

Permalink
Merge pull request #4 from cchaos/graph/field-manager/design
Browse files Browse the repository at this point in the history
Design PR
  • Loading branch information
flash1293 authored Sep 23, 2019
2 parents 371cac1 + 35d342b commit d590985
Show file tree
Hide file tree
Showing 7 changed files with 172 additions and 182 deletions.
5 changes: 5 additions & 0 deletions x-pack/legacy/plugins/graph/public/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@mixin gphFieldBadgeSize {
height: $euiSizeL;
// Subtract 2 for the border
line-height: $euiSizeL - 2px;
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
.gphFieldEditorBadge {
// 3px to line up with a badge with visible border (gphFieldPickerButton)
padding: 3px $euiSizeM 3px 0;
.gphFieldEditor__badge {
@include gphFieldBadgeSize;
}

.gphFieldEditorBadge--disabled {
.gphFieldEditor__badge--disabled,
.gphFieldEditor__badge--disabled:focus {
opacity: 0.7;
text-decoration: line-through;
}

.gphFieldEditorBadge__icon {
display: inline-flex;
align-items: center;
justify-content: center;

margin: $euiSizeXS;
padding: 0;

text-align: center;
}

.gphFieldEditorBadge__icon--dark {
color: $euiColorEmptyShade;
}

.gphFieldEditorBadge__icon--light {
color: $euiColorDarkestShade;
.gphFieldEditor__badgeIcon {
width: auto;
margin-right: $euiSizeXS;
}

.gphFieldEditor__displayForm {
padding: $euiSizeL;
padding: $euiSizeS;
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
.gphFieldPickerList {
.gphFieldPicker__popoverPanel {
width: 350px;
padding: $euiSizeXS;
}

.gphFieldPickerButton {
.gphFieldPicker__selectableList {
margin: 0 (-$euiSizeXS) (-$euiSizeXS);
}

.gphFieldPicker__button {
@include gphFieldBadgeSize;
color: $euiColorPrimary;
background-color: $euiColorEmptyShade;
border: 1px solid $euiColorLightShade;
padding: $euiSizeXS $euiSizeM;
}
}
Loading

0 comments on commit d590985

Please sign in to comment.