Skip to content
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

Improve admin header #959

Closed
wants to merge 2 commits into from
Closed

Conversation

Murph33
Copy link
Contributor

@Murph33 Murph33 commented Mar 4, 2016

Make the header sticky and adjust the display of the page title and actions in response to #630. I'd like to draw attention to leaving the <div class="toolbar" data-hook="toolbar"> in. I wasn't certain it would be safe to take this out since someone might be hooking into the toolbar data-hook and it makes no difference in how the page renders. Also I took out the conditional for the page title to render the <h1> element. I made this choice since the simple concise flex box setup I went with relied on having a title on the page (or at least an empty h1). I believe there are no pages in the admin that don't have content for the page_title. Further, an empty h1 element shouldn't hurt anyone either on the off chance they removed the text for the page_title.

Before

before-header

(I skipped including a view of the screen scrolled down with no header in view. It seemed pointless)

After

after-header

Murph33 added 2 commits March 3, 2016 16:43
This will give us a fixed header in the admin area.
Use a flexbox to align the content in the content-header.  This is
semantically better than using a table display for non-tabular data and
is a move away from the 16 column skeleton that we will be eliminating.
@tvdeyen
Copy link
Member

tvdeyen commented Mar 4, 2016

I like the way the admin is heading to. Nice work. Nothing to complain (can you believe it)

👍

@@ -65,6 +65,10 @@ body {
@include clearfix;
}

.content-under-header {
padding-top: 89px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this value represent? If it's the header's height we should save that as a value: $height-header and use it here and on the header.

@Murph33
Copy link
Contributor Author

Murph33 commented Mar 4, 2016

After talking about it we're not sure we want to push in a sticky header quite yet but are happy with the other changes so we will leave this for debate and ponderings in #630 and make a new PR for the skeleton work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants