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

Unified Diff: chrome/browser/resources/pdf/scrollbars_mac.css

Issue 1036943004: Use custom scrollbars for print preview on non-retina mac displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « chrome/browser/resources/pdf/pdf_scripting_api.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/scrollbars_mac.css
diff --git a/chrome/browser/resources/pdf/scrollbars_mac.css b/chrome/browser/resources/pdf/scrollbars_mac.css
new file mode 100644
index 0000000000000000000000000000000000000000..aaebda052ec47b2bf9085d447b414cd4bc752263
--- /dev/null
+++ b/chrome/browser/resources/pdf/scrollbars_mac.css
@@ -0,0 +1,33 @@
+/* Copyright 2015 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. */
+
+/*
+ * Imitate mac scrollbars on non-retina displays to workaround crbug.com/466039.
+ */
+@media
+(-webkit-max-device-pixel-ratio: 1) {
+
+::-webkit-scrollbar {
+ height: 14px;
+ width: 14px;
+}
+
+::-webkit-scrollbar-track,
+::-webkit-scrollbar-corner {
+ background-color: rgb(242,242,242);
+}
+
+::-webkit-scrollbar-thumb:vertical,
+::-webkit-scrollbar-thumb:horizontal {
+ -webkit-border-radius: 7px;
+ background-color: rgb(198,198,198);
+ border: 3px solid rgb(242,242,242);
+}
+
+::-webkit-scrollbar-thumb:vertical:hover,
+::-webkit-scrollbar-thumb:horizontal:hover {
+ background-color: rgb(126,126,126);
+}
+
+}
« no previous file with comments | « chrome/browser/resources/pdf/pdf_scripting_api.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698