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

Unified Diff: chrome/browser/resources/shared/css/bubble.css

Issue 7461160: ntp4 info bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: arv review Created 9 years, 4 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/ntp4/new_tab.js ('k') | chrome/browser/resources/shared/js/cr/ui/bubble.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/shared/css/bubble.css
diff --git a/chrome/browser/resources/shared/css/bubble.css b/chrome/browser/resources/shared/css/bubble.css
new file mode 100644
index 0000000000000000000000000000000000000000..3fbfafe63694f8f951db166a3f1d098df126a969
--- /dev/null
+++ b/chrome/browser/resources/shared/css/bubble.css
@@ -0,0 +1,67 @@
+/* Copyright (c) 2011 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.
+ */
+
+.bubble {
+ /* These margins correlate to the difference between the tip of the arrow
+ * and the bottom left of the bubble. */
+ margin-left: -30px;
+ margin-top: -8px;
+ position: absolute;
+ /* Height is dynamic, width fixed. */
+ width: 200px;
+ z-index: 9999;
+}
+
+.bubble-contents {
+ left: 1px;
+ padding: 10px;
+ position: relative;
+ text-align: left;
+ top: 1px;
+ width: 198px;
+ z-index: 3;
+}
+
+.bubble-shadow {
+ bottom: -2px;
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 1;
+}
+
+.bubble-arrow {
+ /* The tip of the arrow. */
+ border-bottom-right-radius: 1px;
+ /* No border on the right or top (inner sides of the rotated square) because
+ * it would overlap/darken the content shadow. */
+ border-right: none;
+ border-top: none;
+ height: 15px;
+ left: 22px;
+ position: absolute;
+ bottom: -9px;
+ width: 15px;
+ z-index: 2;
+ -webkit-transform: rotate(45deg);
+}
+
+.bubble-contents,
+.bubble-arrow {
+ background: white;
+}
+
+.bubble-shadow,
+.bubble-arrow {
+ border: 1px solid rgba(0, 0, 0, 0.3);
+ -webkit-box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.3);
+}
+
+.bubble-shadow,
+.bubble-contents {
+ border-radius: 6px;
+ box-sizing: border-box;
+}
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.js ('k') | chrome/browser/resources/shared/js/cr/ui/bubble.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698