| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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 background: rgba(0, 0, 0, 0.8); | 9 background: rgba(0, 0, 0, 0.8); |
| 10 border-radius: 2px; | 10 border-radius: 2px; |
| 11 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); | 11 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); |
| 12 color: rgba(255, 255, 255, 0.87); | 12 color: rgba(255, 255, 255, 0.87); |
| 13 font-size: 12px; | 13 font-size: 12px; |
| 14 margin: 2px; | 14 margin: 2px; |
| 15 max-width: 250px; | 15 max-width: 250px; |
| 16 padding: 8px; | 16 padding: 8px; |
| 17 position: absolute; | 17 position: absolute; |
| 18 transition: opacity 200ms ease-in-out; | 18 transition: opacity 200ms ease-in-out; |
| 19 } | 19 } |
| 20 | 20 |
| 21 body.chromeos .bubble { | 21 body.chromeos .bubble { |
| 22 margin: unset; |
| 22 padding: 16px; | 23 padding: 16px; |
| 23 } | 24 } |
| 24 | 25 |
| 25 /* --- oldstyle begin --- */ | 26 /* --- oldstyle begin --- */ |
| 26 | 27 |
| 27 .bubble[oldstyle] { | 28 .bubble[oldstyle] { |
| 28 background: white; | 29 background: white; |
| 29 border: 1px solid rgba(0, 0, 0, 0.25); | 30 border: 1px solid rgba(0, 0, 0, 0.25); |
| 30 color: unset; | 31 color: unset; |
| 31 } | 32 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 131 |
| 131 body.chromeos .error-message-bubble::before { | 132 body.chromeos .error-message-bubble::before { |
| 132 -webkit-mask-image: url(../../ui/webui/resources/images/warning.svg); | 133 -webkit-mask-image: url(../../ui/webui/resources/images/warning.svg); |
| 133 -webkit-mask-position: left top; | 134 -webkit-mask-position: left top; |
| 134 -webkit-mask-repeat: no-repeat; | 135 -webkit-mask-repeat: no-repeat; |
| 135 -webkit-mask-size: 20px; | 136 -webkit-mask-size: 20px; |
| 136 background-color: rgb(255,255,255); | 137 background-color: rgb(255,255,255); |
| 137 content: ''; | 138 content: ''; |
| 138 display: block; | 139 display: block; |
| 139 height: 20px; | 140 height: 20px; |
| 140 left: 8px; | 141 left: 16px; |
| 141 position: absolute; | 142 position: absolute; |
| 142 top: 8px; | 143 top: 8px; |
| 143 width: 20px; | 144 width: 20px; |
| 144 } | 145 } |
| 145 | 146 |
| 146 body:not(.chromeos) .error-message-bubble { | 147 body:not(.chromeos) .error-message-bubble { |
| 147 -webkit-padding-start: 30px; | 148 -webkit-padding-start: 30px; |
| 148 background: url(chrome://theme/IDR_WARNING) left top no-repeat; | 149 background: url(chrome://theme/IDR_WARNING) left top no-repeat; |
| 149 background-size: 24px; | 150 background-size: 24px; |
| 150 } | 151 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 163 text-decoration: none; | 164 text-decoration: none; |
| 164 } | 165 } |
| 165 | 166 |
| 166 .error-message-bubble-padding { | 167 .error-message-bubble-padding { |
| 167 margin-bottom: 10px; | 168 margin-bottom: 10px; |
| 168 } | 169 } |
| 169 | 170 |
| 170 html[dir=rtl] .error-message-bubble { | 171 html[dir=rtl] .error-message-bubble { |
| 171 background-position: right top; | 172 background-position: right top; |
| 172 } | 173 } |
| OLD | NEW |