-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EuiSuperDatePicker design followup (#1389)
- Loading branch information
Showing
23 changed files
with
158 additions
and
169 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 |
---|---|---|
@@ -1 +1,5 @@ | ||
@import 'mixins'; | ||
|
||
@import 'date_popover/index'; | ||
@import 'quick_select_popover/index'; | ||
@import 'super_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,10 @@ | ||
@mixin euiSuperDatePickerText { | ||
@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; | ||
} |
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
36 changes: 36 additions & 0 deletions
36
src/components/date_picker/super_date_picker/date_popover/_date_popover_button.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.euiDatePopoverButton__popover .euiDatePopoverButton__popoverAnchor { | ||
display: block; | ||
} | ||
|
||
.euiDatePopoverButton { | ||
@include euiSuperDatePickerText; | ||
|
||
$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; | ||
} | ||
} | ||
|
||
.euiDatePopoverButton--start { | ||
text-align: right; | ||
} | ||
|
||
.euiDatePopoverButton--end { | ||
text-align: left; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/components/date_picker/super_date_picker/date_popover/_date_popover_content.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.euiDatePopoverContent { | ||
width: $euiFormMaxWidth; | ||
max-width: 100%; | ||
} | ||
|
||
.euiDatePopoverContent__padded { | ||
padding: $euiSizeS; | ||
} |
2 changes: 2 additions & 0 deletions
2
src/components/date_picker/super_date_picker/date_popover/_index.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import 'date_popover_button'; | ||
@import 'date_popover_content'; |
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
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
Oops, something went wrong.