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

Unified Diff: chrome/browser/resources/print_preview/print_preview.css

Issue 8872051: Print preview: Display a dummy page when a user visits chrome://print directly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years 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
Index: chrome/browser/resources/print_preview/print_preview.css
===================================================================
--- chrome/browser/resources/print_preview/print_preview.css (revision 113720)
+++ chrome/browser/resources/print_preview/print_preview.css (working copy)
@@ -420,3 +420,45 @@
.button-strip button {
display: block;
}
+
+#dummy-box {
Lei Zhang 2011/12/09 01:16:56 CSS from dbeam. This would have taken me *years*.
dpapad 2011/12/12 19:26:30 Made some small changes to in order to have the "T
Lei Zhang 2011/12/13 02:25:19 Sure.
+ -webkit-box-align: stretch;
+ -webkit-box-flex: 1;
+ -webkit-box-orient: vertical;
+ background: #ccc;
+ display: -webkit-box;
+ height: 100%;
+ margin: 0;
+ min-height: 100%;
+ min-width: 100%;
+ position: relative;
+ width: 100%;
+}
+
+#dummy-page {
+ -webkit-box-flex: 1;
+ background: white;
+ box-shadow: 0 0 8px rgba(0, 0, 0, .4);
+ height: auto;
+ margin: 10px;
+}
+
+#dummy-article {
+ left: 50%;
+ position: absolute;
+ top: 50%;
+}
+
+#intentionally-blank {
+ color: black;
+ display: inline-block;
+ font-style: italic;
+ height: 50px;
+ left: -225px;
+ line-height: 50px;
+ position: absolute;
+ text-align: center;
+ text-decoration: none;
+ top: -25px;
+ width: 450px;
+}

Powered by Google App Engine
This is Rietveld 408576698