diff --git a/lighthouse-core/report/html/report-styles.css b/lighthouse-core/report/html/report-styles.css index 8785c5653e80..0a3388fb1fe3 100644 --- a/lighthouse-core/report/html/report-styles.css +++ b/lighthouse-core/report/html/report-styles.css @@ -51,6 +51,7 @@ --color-gray: #000000; --color-green-700: #018642; --color-green: #0CCE6B; + --color-orange-50: #FFF3E0; --color-orange-700: #D04900; --color-orange: #FFA400; --color-red-700: #EB0F00; @@ -63,10 +64,10 @@ --color-average: var(--color-orange); --color-fail-secondary: var(--color-red-700); --color-fail: var(--color-red); + --color-hover: var(--color-gray-50); --color-informative: var(--color-blue-900); --color-pass-secondary: var(--color-green-700); --color-pass: var(--color-green); - --color-hover: var(--color-gray-50); /* Component variables */ --audit-description-padding-left: calc(var(--score-icon-size) + var(--score-icon-margin-left) + var(--score-icon-margin-right)); @@ -139,7 +140,10 @@ --topbar-height: 32px; --topbar-logo-size: 24px; --topbar-padding: 0 8px; - --toplevel-warning-padding: 22px; + --toplevel-warning-background-color: var(--color-orange-50); + --toplevel-warning-message-text-color: #BD4200; + --toplevel-warning-padding: 18px; + --toplevel-warning-text-color: var(--report-text-color); /* SVGs */ --plugin-icon-url-dark: url('data:image/svg+xml;utf8,'); @@ -186,8 +190,11 @@ --report-border-color-secondary: var(--color-gray-200); --report-text-color-secondary: var(--color-gray-400); --report-text-color: var(--color-gray-100); - --topbar-background-color: var(--color-gray); --snippet-color: var(--color-cyan-500); + --topbar-background-color: var(--color-gray); + --toplevel-warning-background-color: #544B40; + --toplevel-warning-message-text-color: var(--color-orange-700); + --toplevel-warning-text-color: var(--color-gray-100); /* SVGs */ --plugin-icon-url: var(--plugin-icon-url-dark); @@ -1016,16 +1023,21 @@ .lh-warnings--toplevel { --item-margin: calc(var(--header-line-height) / 4); - color: var(--report-text-color-secondary); + color: var(--toplevel-warning-text-color); margin-left: auto; margin-right: auto; max-width: calc(var(--report-width) - var(--category-padding) * 2); - background-color: var(--color-amber-50); + background-color: var(--toplevel-warning-background-color); padding: var(--toplevel-warning-padding); + border-radius: 8px; +} + +.lh-warnings__msg { + color: var(--toplevel-warning-message-text-color); + margin: 0; } .lh-warnings ul { - padding-left: calc(var(--category-padding) * 2); margin: 0; } .lh-warnings li { diff --git a/lighthouse-core/report/html/templates.html b/lighthouse-core/report/html/templates.html index 6af232a56b5f..02b009ec8130 100644 --- a/lighthouse-core/report/html/templates.html +++ b/lighthouse-core/report/html/templates.html @@ -18,7 +18,7 @@