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

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

Issue 8233030: Print Preview: Making margin lines draggable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing rounding error corner case. Created 9 years, 2 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
Index: chrome/browser/resources/print_preview/margins.css
diff --git a/chrome/browser/resources/print_preview/margins.css b/chrome/browser/resources/print_preview/margins.css
new file mode 100644
index 0000000000000000000000000000000000000000..a2642a057fb6bda2ff4a9f48448b37d049c1fd0b
--- /dev/null
+++ b/chrome/browser/resources/print_preview/margins.css
@@ -0,0 +1,55 @@
+input[type='text'].margin-box {
Evan Stade 2011/10/17 21:36:45 license header
dpapad 2011/10/17 23:28:06 Done.
+ background-color: #2a2a2a;
+ color: #fff;
+ cursor: auto;
+ font-family: arial;
+ font-size: 10px;
+ height: 15px;
+ padding: 5px 10px;
+ position: absolute;
+ text-align: center;
+ width: 40px;
+ z-index: 3;
+}
+
+input[type='text'].margin-box.invalid {
+ background-color: #c11b17;
+}
+
+.margins-ui-pair {
+ background-color: transparent;
+ border-color: transparent;
+ position: absolute;
+}
+
+.margins-ui-pair.right,
+.margins-ui-pair.left {
+ cursor: ew-resize;
+}
+
+.margins-ui-pair.top,
+.margins-ui-pair.bottom {
+ cursor: ns-resize;
+}
+
+.margins-ui-pair.front {
+ z-index: 10;
+}
+
+.margins-ui-pair.back {
+ z-index: 0;
+}
+
+.margin-line {
+ border-color: #4080FA;
+ border-style: dashed;
+ border-width: 1px;
+ pointer-events: none;
+ position: absolute;
+}
+
+#customized-margins {
+ position: absolute;
+ top: 0;
+}
+
Evan Stade 2011/10/17 21:36:45 can you make sure you don't have extra newlines at
dpapad 2011/10/17 23:28:06 Done.
« no previous file with comments | « chrome/browser/resources/print_preview/margin_utils.js ('k') | chrome/browser/resources/print_preview/margins_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698