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

Side by Side Diff: chrome/browser/resources/chromeos/login/bubble.css

Issue 9310050: [cros] Error bubble on login is displayed to the left of Gaia frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New bubble style. Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 * Css based bubble. 5 * Css based bubble.
6 */ 6 */
7 7
8 .bubble { 8 .bubble {
9 -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); 9 -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
10 background: white; 10 background: white;
11 border: 1px solid rgba(0, 0, 0, 0.25); 11 /* border: 1px solid rgba(0, 0, 0, 0.25); */
xiyuan 2012/02/07 17:51:40 nit: Remove no-longer-needed code.
Ivan Korotkov 2012/02/07 17:57:28 Done.
12 border-radius: 10px; 12 font: normal 12px 'Open Sans';
13 margin: 10px 2px 2px 2px; 13 margin: 2px;
14 padding: 10px; 14 outline: 1px solid rgba(0, 0, 0, 0.2);
15 padding: 16px;
15 position: absolute; 16 position: absolute;
16 max-width: 250px; 17 max-width: 250px;
17 } 18 }
18 19
19 .bubble:before { 20 .bubble:before {
20 content: ""; 21 content: "";
21 border-color: transparent transparent rgba(0, 0, 0, 0.25) transparent;
22 border-style: solid; 22 border-style: solid;
23 border-width: 8px; 23 border-width: 8px;
24 display: block; 24 display: block;
25 left: 10px;
26 position: absolute; 25 position: absolute;
26 }
27
28 .bubble-top:before {
29 border-color: rgba(0, 0, 0, 0.25) transparent transparent transparent;
30 bottom: -16px;
31 }
32
33 html[dir=ltf] .bubble-top:before {
34 left: 17px;
35 }
36
37 html[dir=rtl] .bubble-top:before {
38 right: 17px;
39 }
40
41 html[dir=ltr] .bubble-right:before,
42 html[dir=rtl] .bubble-left:before {
43 border-color: transparent rgba(0, 0, 0, 0.25) transparent transparent;
44 left: -16px;
45 top: 17px;
46 }
47
48 .bubble-bottom:before {
49 border-color: transparent transparent rgba(0, 0, 0, 0.25) transparent;
27 top: -16px; 50 top: -16px;
28 } 51 }
29 52
53 html[dir=ltr] .bubble-bottom:before {
54 left: 17px;
55 }
56
57 html[dir=rtl] .bubble-bottom:before {
58 right: 17px;
59 }
60
61 html[dir=ltr] .bubble-left:before,
62 html[dir=rtl] .bubble-right:before {
63 border-color: transparent transparent transparent rgba(0, 0, 0, 0.25);
64 right: -16px;
65 top: 17px;
66 }
67
30 .bubble:after { 68 .bubble:after {
31 content: ""; 69 content: "";
32 border-color: transparent transparent white transparent;
33 border-style: solid; 70 border-style: solid;
34 border-width: 8px; 71 border-width: 8px;
35 display: block; 72 display: block;
36 left: 10px;
37 position: absolute; 73 position: absolute;
74 }
75
76 .bubble-top:after {
77 border-color: white transparent transparent transparent;
78 bottom: -15px;
79 }
80
81 html[dir=ltr] .bubble-top:after {
82 left: 17px;
83 }
84
85 html[dir=rtl] .bubble-top:after {
86 right: 17px;
87 }
88
89 html[dir=ltr] .bubble-right:after,
90 html[dir=rtl] .bubble-left:after {
91 border-color: transparent white transparent transparent;
92 left: -15px;
93 top: 17px;
94 }
95
96 .bubble-bottom:after {
97 border-color: transparent transparent white transparent;
38 top: -15px; 98 top: -15px;
39 } 99 }
100
101 html[dir=ltr] .bubble-bottom:after {
102 left: 17px;
103 }
104
105 html[dir=rtl] .bubble-bottom:after {
106 right: 17px;
107 }
108
109 html[dir=ltr] .bubble-left:after,
110 html[dir=rtl] .bubble-right:after {
111 border-color: transparent transparent transparent white;
112 right: -15px;
113 top: 17px;
114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698