-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also fixes #1207
- Loading branch information
Showing
14 changed files
with
510 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import '../../src/theme_dark'; | ||
@import './components/guide_components'; | ||
@import './views/header/global_filter_group'; | ||
@import './views/date_picker/global_date_picker'; |
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,3 +1,4 @@ | ||
@import '../../src/theme_k6_dark'; | ||
@import './components/guide_components'; | ||
@import './views/header/global_filter_group'; | ||
@import './views/date_picker/global_date_picker'; |
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,3 +1,4 @@ | ||
@import '../../src/theme_k6_light'; | ||
@import './components/guide_components'; | ||
@import './views/header/global_filter_group'; | ||
@import './views/date_picker/global_date_picker'; |
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,4 +1,4 @@ | ||
@import '../../src/theme_light'; | ||
@import './components/guide_components'; | ||
@import './views/header/global_filter_group'; | ||
|
||
@import './views/date_picker/global_date_picker'; |
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,97 @@ | ||
//// GLOBAL Date picker | ||
|
||
// sass-lint:disable no-important | ||
.euiGlobalDatePicker__quickSelectButton { | ||
// Override prepend border since button already lives inside another prepend | ||
border-right: none !important; | ||
|
||
.euiGlobalDatePicker__quickSelectButtonText { | ||
// Override specificity from universal and sibiling selectors | ||
margin-right: $euiSizeXS !important; | ||
} | ||
} | ||
|
||
.euiGlobalDatePicker.euiFormControlLayout { | ||
max-width: 480px; | ||
|
||
> .euiFormControlLayout__childrenWrapper { | ||
flex: 1 1 100%; | ||
overflow: hidden; | ||
|
||
> .euiDatePickerRange { | ||
max-width: none; | ||
width: auto; | ||
|
||
// sass-lint:disable nesting-depth | ||
.euiPopover__anchor { | ||
display: block; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.euiGlobalDatePicker__dateButton { | ||
@include euiFormControlText; | ||
display: block; | ||
width: 100%; | ||
padding: 0 $euiSizeS; | ||
line-height: $euiFormControlHeight - 2px; | ||
height: $euiFormControlHeight - 2px; | ||
word-break: break-all; | ||
transition: background $euiAnimSpeedFast ease-in; | ||
|
||
$backgroundColor: tintOrShade($euiColorSuccess, 90%, 70%); | ||
$textColor: makeHighContrastColor($euiColorSuccess, $backgroundColor); | ||
|
||
&-isSelected, | ||
&-needsUpdating, | ||
&:hover, | ||
&:focus { | ||
background-color: $backgroundColor; | ||
} | ||
|
||
&-needsUpdating { | ||
color: $textColor; | ||
} | ||
|
||
&-isInvalid { | ||
$backgroundColor: tintOrShade($euiColorDanger, 90%, 70%); | ||
$textColor: makeHighContrastColor($euiColorDanger, $backgroundColor); | ||
background-color: $backgroundColor; | ||
color: $textColor; | ||
} | ||
|
||
.euiFormControlLayout__prepend { | ||
border: none; | ||
} | ||
} | ||
|
||
.euiGlobalDatePicker__dateButton--start { | ||
text-align: right; | ||
} | ||
|
||
.euiGlobalDatePicker__dateButton--end { | ||
text-align: left; | ||
} | ||
|
||
.euiGlobalDatePicker__updateButton { | ||
// Just wide enough for all 3 states | ||
min-width: $euiButtonMinWidth + ($euiSizeXS * 1.5); | ||
} | ||
|
||
.euiGlobalDatePicker__popoverSection { | ||
@include euiScrollBar; | ||
max-height: $euiSizeM * 11; | ||
overflow: hidden; | ||
overflow-y: auto; | ||
} | ||
|
||
@include euiBreakpoint('xs', 's') { | ||
.euiGlobalDatePicker__updateButton { | ||
min-width: 0; | ||
|
||
.euiGlobalDatePicker__updateButtonText { | ||
display: none; | ||
} | ||
} | ||
} |
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.