-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor search bar styles for responsiveness
- Loading branch information
1 parent
5d9a1fc
commit 48c74df
Showing
4 changed files
with
65 additions
and
55 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
66 changes: 62 additions & 4 deletions
66
plugins/main/public/components/common/search-bar/search-bar.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,13 +1,71 @@ | ||
.wz-search-bar-no-padding .globalQueryBar:not(:empty) { | ||
padding: 0px !important; | ||
} | ||
|
||
.wz-search-bar { | ||
&.no-padding .globalQueryBar:not(:empty) { | ||
padding: 0px !important; | ||
} | ||
|
||
> .euiFlexGroup { | ||
&:first-child { | ||
#GlobalFilterGroup { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
||
&-query { | ||
.osdQueryBar--withDatePicker { | ||
align-items: flex-end; | ||
|
||
> :first-child { | ||
margin-top: 8px; | ||
margin-bottom: 4px !important; | ||
|
||
@media only screen and (max-width: 574px) { | ||
margin-top: -8px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 575px) and (max-width: 767px) { | ||
.globalFilterGroup__filterBar { | ||
margin-top: 4px; | ||
} | ||
|
||
.globalFilterGroup__wrapper-isVisible { | ||
margin-top: 0; | ||
} | ||
|
||
.euiFlexGroup--responsive > .euiFlexItem { | ||
margin-bottom: 0 !important; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 767px) { | ||
.euiFlexGroup--responsive { | ||
-webkit-flex-wrap: wrap; | ||
flex-wrap: wrap; | ||
margin-left: 0; | ||
margin-right: 0; | ||
margin-bottom: 1px; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 574px) { | ||
.globalFilterGroup__wrapper-isVisible { | ||
margin-top: -6px; | ||
} | ||
|
||
.euiFlexGroup--responsive { | ||
margin-bottom: -3px; | ||
} | ||
|
||
> .euiFlexGroup.euiFlexGroup--gutterSmall.euiFlexGroup--directionRow.euiFlexGroup--responsive | ||
> .euiFlexItem.euiFlexItem--flexGrowZero { | ||
margin-bottom: 6px !important; | ||
} | ||
|
||
.osdQueryBar--withDatePicker > :first-child { | ||
margin-top: -8px; | ||
} | ||
} | ||
} |
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