-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design PR: layout tweaks, responsive styles #72944
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.homManageData .homManageData__container { | ||
@include euiBreakpoint('xs', 's') { | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.homManageData .euiIcon__fillSecondary { | ||
fill: $euiColorDarkestShade; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,22 @@ | |
min-height: $euiSize*16; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since my mistake of assuming there was a 32px gutter option for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Due to the margin being applied by the EuiFlex items, the |
||
display: flex; | ||
|
||
.homSolutionsPanel--restrictHalfWidth { | ||
.homSolutionsPanel__column { | ||
max-width: 50%; | ||
} | ||
|
||
@include euiBreakpoint('xs', 's') { | ||
flex-direction: column; | ||
|
||
.homSolutionsPanel__column { | ||
max-width: 100%; | ||
} | ||
} | ||
|
||
.homSolutionPanel__cardSecondary { | ||
flex-basis: $euiSizeXL * 4; | ||
} | ||
|
||
.homSolutionsPanel__solutionPanel { | ||
display: flex; | ||
align-items: stretch; | ||
|
@@ -25,6 +37,11 @@ | |
flex-direction: column; | ||
justify-content: center; | ||
padding: $euiSize; | ||
|
||
@include euiBreakpoint('xs', 's') { | ||
ryankeairns marked this conversation as resolved.
Show resolved
Hide resolved
|
||
height: auto; | ||
text-align: center; | ||
} | ||
} | ||
} | ||
|
||
|
@@ -36,6 +53,10 @@ | |
position: absolute; | ||
width: auto; | ||
} | ||
|
||
@include euiBreakpoint('xs', 's') { | ||
border-radius: $euiBorderRadius $euiBorderRadius 0 0; | ||
} | ||
} | ||
|
||
.homSolutionsPanel__enterpriseSearch { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if it would be better to set the padding to
$euiSizeXL $euiSize
by default, and then if the below solutions container is rendered/visible, then a modifier class is added to apply additional bottom padding (to account for the overlap of those solution cards).Also, I imagine we probably want to have some top padding always applied to the
.homPage
element, to ensure that page contents are properly spaced from the header when the solution cards aren't present.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic for checking solutions exists a layer deeper than the home page, so that presents a challenge. As a simple alternative, I've changed the solutions component (that contains said logic) to output a larger spacer when no solutions exist. This results in the following layout:
The extra padding in the header remains, but it feels less noticeable (to me) with the 'add data' panel pushing down from the header a bit. I think this gets us by for now given this feels like an edge case scenario.