Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6349)

Unified Diff: chrome/browser/resources/md_downloads/downloads.html

Issue 2803653003: MD Downloads: improve early loading shim (Closed)
Patch Set: . Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/item.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/downloads.html
diff --git a/chrome/browser/resources/md_downloads/downloads.html b/chrome/browser/resources/md_downloads/downloads.html
index c299f81f60a6bd83bba84b61d709156d0c03bdd1..789c1d5fdcf38d08b89c02f33ba63748795d110e 100644
--- a/chrome/browser/resources/md_downloads/downloads.html
+++ b/chrome/browser/resources/md_downloads/downloads.html
@@ -1,18 +1,22 @@
<!doctype html>
-<html dir="$i18n{textdirection}" lang="$i18n{language}">
+<html dir="$i18n{textdirection}" lang="$i18n{language}" class="loading">
<head>
<meta charset="utf-8">
<title>$i18n{title}</title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css">
- <link rel="stylesheet" href="chrome://resources/css/md_colors.css">
<style>
html {
--downloads-card-margin: 24px;
--downloads-card-width: 640px;
- background: var(--md-background-color);
+ background: #f1f1f1;
}
- html,
+ .loading {
+ /* --google-blue-700 disguised. Replaced when downloads-toolbar loads. */
+ border-top: 56px solid rgb(51, 103, 214);
+ }
+
+ html:not(.loading),
body {
height: 100%;
}
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698