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

report: sticky topbar #8300

Merged
merged 7 commits into from
Apr 17, 2019
Merged

report: sticky topbar #8300

merged 7 commits into from
Apr 17, 2019

Conversation

connorjclark
Copy link
Collaborator

#8185

This is the skinny sticky header, containing the logo / URL.

I also put the export button in the top right. We aren't doing the sidebar menu yet, so it seems fine for that button to live there for now.

Removed the animation code for the previous header.

I disabled fireworks for now.

Help: Why won't the SVG logo show?

Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

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

The design doesn't have the top left URL be a link, but I like it as a link, but maybe keep it black instead of "url blue" to be more subtle?

lighthouse-core/report/html/report-styles.css Outdated Show resolved Hide resolved
Co-Authored-By: Hoten <cjamcl@gmail.com>
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@connorjclark
Copy link
Collaborator Author

The design doesn't have the top left URL be a link, but I like it as a link, but maybe keep it black instead of "url blue" to be more subtle?

done

@patrickhulce
Copy link
Collaborator

wow this is really coming together! 😍

only the share button padding jumped out at me bumping height a tad on button and shrinking the width a touch might make it feel a bit better? shrinking the icon a touch is also on the table I suppose
image

@connorjclark
Copy link
Collaborator Author

image

better?

@exterkamp
Copy link
Member

image

better?

I honestly can't get it to look 100%, it's either 4px or 5px from top? But it doesn't look right on either way. Since this is temporary, or is supposed to be, imo it looks good enough. If you really want to try to make it perfect I think it is 5px from top, so you could match that with right-padding. e.g.
image

@patrickhulce
Copy link
Collaborator

better?

much! :D

@exterkamp exterkamp added the 5.0 label Apr 16, 2019
Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

some nits but this can land.

--topbar-padding: 0 8px;

--logo-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="192px" height="192px" viewBox="0 0 192 192" version="1.1"><g id="symbol_1_black" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group"><g><rect id="Rectangle" x="0" y="0" width="192" height="192"/><path d="M67.7054588,179.352453 L70.3079591,158.532451 L119.643145,142.141282 L124.294541,179.352453 C115.41478,182.365787 105.898235,184 96,184 C86.1017646,184 76.5852201,182.365787 67.7054588,179.352453 L67.7054588,179.352453 Z M52.439998,172.48 C25.8942826,157.328 8,128.753717 8,96 C8,47.398942 47.398942,8 96,8 C144.601058,8 184,47.398942 184,96 C184,128.753717 166.105717,157.328 139.560002,172.48 L130,96 L136,96 L136,80 L128,80 L128,48 L96,28 L64,48 L64,80 L56,80 L56,96 L62,96 L52.4399988,172.48001 L52.439998,172.48 Z M113.875485,96 L116.756843,119.050869 L73.439198,133.48254 L78.1245155,96 L113.875485,96 Z M80,80 L80,56.8679623 L96,46.8679623 L112,56.8679623 L112,80 L80,80 Z" id="Shape" fill="%23000000"/></g></g></g></svg>');
Copy link
Member

Choose a reason for hiding this comment

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

can you run this through svgo? I think it'll knock some precision off those points.

and def the id="symbol_1_black" isn't used.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

neat tool

544 bytes → 360 bytes 66.18%

@@ -143,6 +149,7 @@
--circle-size-big: 96px;
--circle-size: 72px;
--header-padding: 16px 0 16px 0;
--icon-size: 20px;
Copy link
Member

Choose a reason for hiding this comment

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

--topbar-icon-size is a bit more clear.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

margin-right: 2px;

.lh-topbar__url {
margin-left: 8px;
Copy link
Member

Choose a reason for hiding this comment

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

seems like you could reuse --topbar-padding here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@paulirish paulirish merged commit e40e538 into master Apr 17, 2019
@paulirish paulirish deleted the report-ui-topbar branch April 17, 2019 21:53
@connorjclark connorjclark mentioned this pull request Apr 18, 2019
55 tasks
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.

5 participants