| OLD | NEW |
| 1 /* Copyright (c) 2012 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 .bubble { | 5 .bubble { |
| 6 position: absolute; | 6 position: absolute; |
| 7 white-space: normal; | 7 white-space: normal; |
| 8 /* Height is dynamic, width fixed. */ | 8 /* Height is dynamic, width fixed. */ |
| 9 width: 300px; | 9 width: 300px; |
| 10 z-index: 9999; | 10 z-index: 9999; |
| 11 } | 11 } |
| 12 | 12 |
| 13 .bubble-content { | 13 .bubble-content { |
| 14 color: black; | 14 color: black; |
| 15 left: 1px; | |
| 16 line-height: 150%; | 15 line-height: 150%; |
| 16 margin: 1px; |
| 17 padding: 8px 11px 12px; | 17 padding: 8px 11px 12px; |
| 18 position: relative; | 18 position: relative; |
| 19 right: 1px; | |
| 20 top: 1px; | |
| 21 width: 298px; | |
| 22 z-index: 3; | 19 z-index: 3; |
| 23 } | 20 } |
| 24 | 21 |
| 25 /* When the close button is there, we need more padding on the right of the | 22 /* When the close button is there, we need more padding on the right of the |
| 26 * bubble. */ | 23 * bubble. */ |
| 27 .bubble-close:not([hidden]) ~ .bubble-content { | 24 .bubble-close:not([hidden]) ~ .bubble-content { |
| 28 -webkit-padding-end: 22px; | 25 -webkit-padding-end: 22px; |
| 29 } | 26 } |
| 30 | 27 |
| 31 .bubble-close { | 28 .bubble-close { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 59 | 56 |
| 60 .bubble-close:active { | 57 .bubble-close:active { |
| 61 background-image: -webkit-image-set( | 58 background-image: -webkit-image-set( |
| 62 url('../../../../../ui/resources/default_100_percent/close_bar_pressed.png') | 59 url('../../../../../ui/resources/default_100_percent/close_bar_pressed.png') |
| 63 1x, | 60 1x, |
| 64 url('../../../../../ui/resources/default_200_percent/close_bar_pressed.png') | 61 url('../../../../../ui/resources/default_200_percent/close_bar_pressed.png') |
| 65 2x); | 62 2x); |
| 66 } | 63 } |
| 67 | 64 |
| 68 .bubble-shadow { | 65 .bubble-shadow { |
| 69 bottom: -2px; | 66 bottom: 0; |
| 70 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); | 67 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); |
| 71 left: 0; | 68 left: 0; |
| 72 position: absolute; | 69 position: absolute; |
| 73 right: 0; | 70 right: 0; |
| 74 top: 0; | 71 top: 0; |
| 75 z-index: 1; | 72 z-index: 1; |
| 76 } | 73 } |
| 77 | 74 |
| 78 .bubble-arrow { | 75 .bubble-arrow { |
| 79 -webkit-transform: rotate(45deg); | 76 -webkit-transform: rotate(45deg); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 96 | 93 |
| 97 .bubble-shadow, | 94 .bubble-shadow, |
| 98 .bubble-content { | 95 .bubble-content { |
| 99 border-radius: 6px; | 96 border-radius: 6px; |
| 100 box-sizing: border-box; | 97 box-sizing: border-box; |
| 101 } | 98 } |
| 102 | 99 |
| 103 .auto-close-bubble { | 100 .auto-close-bubble { |
| 104 position: fixed; | 101 position: fixed; |
| 105 } | 102 } |
| OLD | NEW |