Skip to content

Commit

Permalink
ResultField & ResultHeader: Mobile responsiveness tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Dec 7, 2020
1 parent ed4528a commit a2573bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@
font-size: $euiFontSizeS;
line-height: $euiLineHeight;
display: grid;
grid-template-columns: calc(35% + #{$euiSizeS * 7} ) $euiSize * 2 1fr;
grid-template-columns: 0.85fr $euiSizeXL 1fr;
grid-gap: $euiSizeXS;

&__separator {
text-align: center;

&:after {
content: '=>';
color: $euiColorDarkShade;
}
}

&__value {
padding-left: $euiSizeS;
padding-left: $euiSize;
overflow: hidden;

@include euiBreakpoint('xs') {
padding-left: 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,25 @@
align-items: flex-start;
margin-bottom: $euiSizeS;

@include euiBreakpoint('xs') {
flex-direction: column;
}

&__column {
display: flex;
flex-wrap: wrap;

@include euiBreakpoint('xs') {
flex-direction: column;
}

& + &,
.appSearchResultHeaderItem + .appSearchResultHeaderItem {
margin-left: $euiSizeL;

@include euiBreakpoint('xs') {
margin-left: 0;
}
}
}
}

0 comments on commit a2573bd

Please sign in to comment.