Skip to content

Commit

Permalink
report: use full-bleed image thumbnails (#9238)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored and brendankenny committed Jul 20, 2019
1 parent d2ec9ff commit 7818c8a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lighthouse-core/report/html/report-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
--header-line-height: 24px;
--highlighter-background-color: var(--report-text-color);
--icon-square-size: calc(var(--score-icon-size) * 0.88);
--image-preview-size: 48px;
--metric-toggle-lines-fill: #7F7F7F;
--metrics-toggle-background-color: var(--color-gray-200);
--plugin-badge-background-color: var(--color-white);
Expand Down Expand Up @@ -208,6 +209,7 @@
--gauge-percentage-font-size: 26px;
--gauge-wrapper-width: 112px;
--header-padding: 16px 0 16px 0;
--image-preview-size: 24px;
--plugin-icon-size: 75%;
--pwa-icon-margin: 0 7px 0 -3px;
--report-font-size: 14px;
Expand Down Expand Up @@ -1300,7 +1302,6 @@
}

.lh-table {
--image-preview-size: 24px;
border-collapse: collapse;
/* Can't assign padding to table, so shorten the width instead. */
width: calc(100% - var(--audit-description-padding-left));
Expand Down Expand Up @@ -1347,8 +1348,10 @@
}


.lh-table-column--thumbnail {
width: calc(var(--image-preview-size) * 2);

.lh-table .lh-table-column--thumbnail {
width: var(--image-preview-size);
padding: 0;
}

.lh-table-column--url {
Expand Down Expand Up @@ -1377,9 +1380,10 @@
}

.lh-thumbnail {
height: var(--image-preview-size);
object-fit: cover;
width: var(--image-preview-size);
object-fit: contain;
height: var(--image-preview-size);
display: block;
}

.lh-text__url > a {
Expand Down

0 comments on commit 7818c8a

Please sign in to comment.