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

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

Issue 8208014: Update the notification bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/shared/css/expandable_bubble.css
===================================================================
--- chrome/browser/resources/shared/css/expandable_bubble.css (revision 0)
+++ chrome/browser/resources/shared/css/expandable_bubble.css (revision 0)
@@ -0,0 +1,110 @@
+/* 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.
+ */
+
+.expandable-bubble {
+ position: absolute;
+}
+
+.expandable-bubble[expanded] {
+ width: 300px;
+}
+
+.expandable-bubble-contents {
+ color: black;
+ left: 1px;
+ line-height: 150%;
+ padding: 6px 3px 5px 6px;
+ position: relative;
+ right: 1px;
+ top: 1px;
+ z-index: 3;
+}
+
+.expandable-bubble[expanded] > .expandable-bubble-close {
+ z-index : 8;
+}
+.expandable-bubble[expanded] > .expandable-bubble-contents {
+ z-index : 7;
+}
+.expandable-bubble[expanded] > .expandable-bubble-arrow {
+ z-index : 6;
+}
+.expandable-bubble[expanded] > .expandable-bubble-shadow {
+ z-index : 5; /* One higher then the close button on an unexpanded bubble. */
+}
+
+.expandable-bubble-title {
+ text-align: center;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.expandable-bubble[expanded] > .expandable-bubble-contents > .expandable-bubble-title {
+ text-align: left;
+}
+
+.expandable-bubble-close {
+ background-image: no-repeat 50% 50%;
+ height: 16px;
+ position: absolute;
+ right: 6px;
+ top: 6px;
+ width: 16px;
+ z-index: 4;
+}
+
+.expandable-bubble-close {
+ background-image: url('chrome://theme/IDR_CLOSE_BAR');
+}
+
+.expandable-bubble-close:hover {
+ background-image: url('chrome://theme/IDR_CLOSE_BAR_H');
+}
+
+.expandable-bubble-close:active {
+ background-image: url('chrome://theme/IDR_CLOSE_BAR_P');
+}
+
+.expandable-bubble-shadow {
+ bottom: -2px;
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 1;
+}
+
+.expandable-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;
+ bottom: -9px;
+ height: 15px;
+ position: absolute;
+ right: 15px;
+ width: 15px;
+ z-index: 2;
+ -webkit-transform: rotate(45deg);
+}
+
+.expandable-bubble-contents,
+.expandable-bubble-arrow {
+ background: white;
+}
+
+.expandable-bubble-shadow,
+.expandable-bubble-arrow {
+ border: 1px solid rgba(0, 0, 0, 0.3);
+ -webkit-box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
+}
+
+.expandable-bubble-shadow,
+.expandable-bubble-contents {
+ border-radius: 6px;
+ box-sizing: border-box;
+}
Property changes on: chrome\browser\resources\shared\css\expandable_bubble.css
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.html ('k') | chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698