1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
/* 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.
*/
.bubble {
position: absolute;
/* Height is dynamic, width fixed. */
width: 300px;
z-index: 9999;
}
.bubble-contents {
color: black;
left: 1px;
line-height: 150%;
padding: 8px 11px 12px;
position: relative;
right: 1px;
top: 1px;
width: 298px;
z-index: 3;
}
.bubble-close {
background-image: no-repeat 50% 50%;
height: 16px;
position: absolute;
right: 6px;
top: 6px;
width: 16px;
z-index: 4;
}
html[dir='rtl'] .bubble-close {
left: 6px;
right: auto;
}
.bubble-close {
background-image: -webkit-image-set(
url('../../../../../ui/resources/default_100_percent/close_bar.png') 1x,
url('../../../../../ui/resources/default_200_percent/close_bar.png') 2x);
}
.bubble-close:hover {
background-image: -webkit-image-set(
url('../../../../../ui/resources/default_100_percent/close_bar_hover.png')
1x,
url('../../../../../ui/resources/default_200_percent/close_bar_hover.png')
2x);
}
.bubble-close:active {
background-image: -webkit-image-set(
url('../../../../../ui/resources/default_100_percent/close_bar_pressed.png')
1x,
url('../../../../../ui/resources/default_200_percent/close_bar_pressed.png')
2x);
}
.bubble-shadow {
bottom: -2px;
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 1;
}
.bubble-arrow {
-webkit-transform: rotate(45deg);
/* 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;
left: 22px;
position: absolute;
right: 22px;
width: 15px;
z-index: 2;
}
.bubble-contents,
.bubble-arrow {
background: white;
}
.bubble-arrow[is-right='true'] {
left: auto;
}
.bubble-arrow[is-right='false'] {
right: auto;
}
.bubble-arrow[is-top='true'] {
bottom: auto;
top: -8px;
}
.bubble-shadow,
.bubble-arrow {
border: 1px solid rgba(0, 0, 0, 0.3);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.bubble-shadow,
.bubble-contents {
border-radius: 6px;
box-sizing: border-box;
}
|