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

Side by Side Diff: ui/login/bubble.css

Issue 2467783002: ChromeOS: update alignment of user POD error bubble. (Closed)
Patch Set: Update after review. Also fixed CSS styles. Created 4 years, 1 month 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
OLDNEW
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 -webkit-transition: opacity 200ms ease-in-out; 9 -webkit-transition: opacity 200ms ease-in-out;
10 background: rgba(0, 0, 0, 0.8); 10 background: rgba(0, 0, 0, 0.8);
11 border-radius: 2px; 11 border-radius: 2px;
12 color: rgba(255, 255, 255, 0.87); 12 color: rgba(255, 255, 255, 0.87);
13 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 13 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
14 font-size: 12px; 14 font-size: 12px;
15 margin: 2px; 15 margin: 2px;
16 max-width: 250px; 16 max-width: 250px;
17 padding: 16px; 17 padding: 8px;
18 position: absolute; 18 position: absolute;
19 } 19 }
20 20
21 .error-message-bubble::before {
22 -webkit-mask-image: url(../../ui/webui/resources/images/warning.svg);
23 -webkit-mask-position: left top;
24 -webkit-mask-repeat: no-repeat;
25 -webkit-mask-size: 20px;
26 background-color: rgb(255,255,255);
27 content: '';
28 display: block;
29 height: 20px;
30 left: 8px;
31 position: absolute;
32 top: 8px;
33 width: 100%;
xiyuan 2016/11/03 16:54:40 nit: can we use a fixed width, e.g. 20px ?
Alexander Alekseev 2016/11/03 22:15:30 Done.
34 }
35
21 .error-message-bubble { 36 .error-message-bubble {
22 -webkit-padding-start: 30px; 37 -webkit-padding-start: 20px;
23 background: url(chrome://theme/IDR_WARNING) left top no-repeat; 38 }
24 background-size: 24px; 39
40 .bubble[match-width] .error-message-bubble {
41 -webkit-padding-start: unset;
42 padding-top: 20px;
43 }
44
45 .bubble a {
46 color: #7baaf7;
47 text-decoration: none;
25 } 48 }
26 49
27 .error-message-bubble-padding { 50 .error-message-bubble-padding {
28 margin-bottom: 10px; 51 margin-bottom: 10px;
29 } 52 }
30 53
31 html[dir=rtl] .error-message-bubble { 54 html[dir=rtl] .error-message-bubble {
32 background-position: right top; 55 background-position: right top;
33 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698