summaryrefslogtreecommitdiffstats
path: root/ui/webui/resources/css/expandable_bubble.css
blob: ee4bc03dbc2c7a77f99df62d33e3bf09cbdc205a (plain)
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
/* 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. */

.expandable-bubble {
  -webkit-border-image: url('chrome://theme/IDR_APP_NOTIFICATION_SMALL_BUBBLE')
                        5 5 7 6 stretch;
  -webkit-box-sizing: border-box;
  -webkit-user-select: none;
  border-width: 5px 5px 7px 6px;
  color: #444;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  position: absolute;
  z-index: 1;
}

.expandable-bubble::after {
  bottom: -1px;
  content: url('chrome://theme/IDR_APP_NOTIFICATION_NUB');
  display: block;
  height: 7px;
  position: absolute;
  right: 5px;  /* TODO(finnur): Need to handle RTL properly. */
  width: 9px;
}

.expandable-bubble > .expandable-bubble-contents > .expandable-bubble-title {
  display: inline-block;
  margin-left: 1px;
  margin-top : -3px;
  overflow: hidden;
  white-space: nowrap;
}

.expandable-bubble[masked] > .expandable-bubble-contents >
    .expandable-bubble-title::after {
  content: url('chrome://theme/IDR_APP_NOTIFICATION_NUB_MASK');
  display: block;
  height: 15px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
}

.expandable-bubble[expanded] > .expandable-bubble-contents >
    .expandable-bubble-title {
  font-size: 13px;
  margin-bottom: 3px;
  margin-left: 0;
}

.expandable-bubble-close {
  background-image: no-repeat 50% 50%;
  height: 16px;
  position: absolute;
  right: 0;
  top: 0;
  width: 16px;
  z-index: 2;
}

.expandable-bubble[expanded] {
  padding: 3px;
  z-index: 3;  /* One higher then the close button on an unexpanded bubble. */
}

.expandable-bubble[expanded] > .expandable-bubble-close {
  z-index: 4;
}

.expandable-bubble-close {
  background-image: -webkit-image-set(
      url('../../../resources/default_100_percent/close_bar.png') 1x,
      url('../../../resources/default_200_percent/close_bar.png') 2x);
}

.expandable-bubble-close:hover {
  background-image: -webkit-image-set(
      url('../../../resources/default_100_percent/close_bar_hover.png') 1x,
      url('../../../resources/default_200_percent/close_bar_hover.png') 2x);
}

.expandable-bubble-close:active {
  background-image: -webkit-image-set(
    url('../../../resources/default_100_percent/close_bar_pressed.png') 1x,
    url('../../../resources/default_200_percent/close_bar_pressed.png') 2x);
}