[go: nahoru, domu]

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: center and style top-level runtimeError #9271

Merged
merged 7 commits into from
Jun 26, 2019

Conversation

connorjclark
Copy link
Collaborator
@connorjclark connorjclark commented Jun 24, 2019

Fixes #7011

Before:
See #9270

After:
image
image

@brendankenny
Copy link
Member

also, can this fix up for #7011?

Copy link
Collaborator
@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

LGTM

lighthouse-core/report/html/report-styles.css Outdated Show resolved Hide resolved
margin-left: auto;
margin-right: auto;
width: 50%;
background-color: var(--color-amber);
Copy link
Collaborator

Choose a reason for hiding this comment

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

feels like we might want a bit more padding with the new background style 🤷‍♂

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 and updated images

@brendankenny
Copy link
Member

@exterkamp since this is his thing

@@ -35,6 +35,7 @@
.lh-vars {
/* Palette using Material Design Colors
* https://www.materialui.co/colors */
--color-amber: #FFF8E1; /* 50 */
Copy link
Member

Choose a reason for hiding this comment

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

not sure what 50 means

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah I was confused too until I looked up the material ui table :) https://www.materialui.co/colors

Copy link
Member

Choose a reason for hiding this comment

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

oh, in that case, should be part of the name.

Omit "-{intensity}" if there is only one color of that hue.

isn't simplifying anything if it's helpful enough to have the intensity that we add it in a comment :)

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

@connorjclark connorjclark changed the title report: center toplevel errors report: center and style toplevel errors Jun 25, 2019
padding: var(--category-padding);
margin-left: auto;
margin-right: auto;
width: 50%;
Copy link
Member

Choose a reason for hiding this comment

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

50% seems a little arbitrary and has the box edges not matching up with the "grid" of the report.

max-width: calc(var(--report-width) - var(--category-padding) * 2);

this'll have it match most of the report content.

}
@media screen and (max-width: 964px) {
Copy link
Member

Choose a reason for hiding this comment

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

once the max-width is applied you can drop this whole MQ and rule

@brendankenny brendankenny changed the title report: center and style toplevel errors report: center and style top-level runtimeError Jun 26, 2019
@paulirish paulirish merged commit f6df91a into master Jun 26, 2019
@paulirish paulirish deleted the report-toplevel-errors-center branch June 26, 2019 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consistent style for lh-warnings
6 participants