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

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

Issue 10108001: Refactor print preview web ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 8 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
Index: chrome/browser/resources/print_preview/previewarea/margin_control.css
diff --git a/chrome/browser/resources/print_preview/previewarea/margin_control.css b/chrome/browser/resources/print_preview/previewarea/margin_control.css
new file mode 100644
index 0000000000000000000000000000000000000000..7a4ff6f1e247160f36492c36e927ea6441737626
--- /dev/null
+++ b/chrome/browser/resources/print_preview/previewarea/margin_control.css
@@ -0,0 +1,68 @@
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+.margin-control {
+ -webkit-transition: opacity 150ms linear;
+ position: absolute;
+}
+
+.margin-control.invisible {
+ opacity: 0;
+}
+
+.margin-control.margin-control-top,
+.margin-control.margin-control-bottom {
+ cursor: ns-resize;
+ padding: 8px 0;
+ width: 100%;
+}
+
+.margin-control.margin-control-left,
+.margin-control.margin-control-right {
+ cursor: ew-resize;
+ height: 100%;
+ padding: 0 8px;
+}
+
+.margin-control-top .margin-control-line,
+.margin-control-bottom .margin-control-line {
+ border-top: 2px dashed rgb(64, 128, 250);
+ width: 100%;
+}
+
+.margin-control-left .margin-control-line,
+.margin-control-right .margin-control-line {
+ border-left: 2px dashed rgb(64, 128, 250);
+ height: 100%;
+}
+
+.margin-control-textbox {
+ position: absolute;
+ width: 60px;
+}
+
+.margin-control-textbox.invalid {
+ background-color: rgb(193, 27, 23);
+}
+
+.margin-control-top .margin-control-textbox {
+ left: 50%;
+ top: 0;
+}
+
+.margin-control-right .margin-control-textbox {
+ right: 0;
+ top: 50%;
+}
+
+.margin-control-bottom .margin-control-textbox {
+ bottom: 0;
+ right: 50%;
+}
+
+.margin-control-left .margin-control-textbox {
+ bottom: 50%;
+ left: 0;
+}

Powered by Google App Engine
This is Rietveld 408576698