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

Side by Side Diff: chrome/browser/resources/extensions/extension_error.css

Issue 1016413004: [Extensions] Update Error Console UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dan's Created 5 years, 8 months 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 2013 The Chromium Authors. All rights reserved. 1 /* Copyright 2013 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 .extension-error-list-heading {
6 align-content: flex-start;
7 display: flex;
8 flex-direction: row;
9 justify-content: space-between;
10 padding: 3px;
11 }
12
13 .extension-error-list-heading span {
14 font-weight: bold;
15 }
16
5 .extension-error-list a { 17 .extension-error-list a {
6 cursor: pointer; 18 cursor: pointer;
7 } 19 }
8 20
9 .extension-error-list-contents { 21 .extension-error-list-contents {
10 -webkit-transition: max-height 150ms; 22 -webkit-padding-start: 0;
23 cursor: pointer;
Dan Beam 2015/04/22 21:02:38 ^ why cursor: pointer; ? to know that you can cli
Devlin 2015/04/22 23:17:31 Exactly.
11 list-style-type: none; 24 list-style-type: none;
12 overflow-y: hidden; 25 margin-bottom: 0;
26 margin-top: 0;
13 } 27 }
14 28
15 .extension-error-list-contents.active { 29 #no-errors-span {
16 max-height: 200px; 30 -webkit-margin-start: 10px;
31 display: none;
17 } 32 }
18 33
19 .extension-error-list-contents, 34 .extension-error-list-contents:empty + #no-errors-span {
20 .extension-error-list-contents.deactivating { 35 display: block;
21 /* Simply toggling .active on and off doesn't transition both ways as it
22 * changes the display type of some li elements. To fix this, .deactivating
23 * is added while the list is closing to change only the max-height. */
24 max-height: 50px;
25 } 36 }
26 37
27 .extension-error-list-contents.scrollable { 38 .extension-error-list-contents.scrollable {
28 overflow-y: auto; 39 overflow-y: auto;
29 } 40 }
30 41
31 /* These next three rules hide all except for the most recent three entries in 42 .extension-error-list-contents .extension-error-metadata:hover {
32 * the list, unless the list is active. */ 43 background-color: #eee;
33 .extension-error-list-contents li {
34 display: none;
35 }
36 .extension-error-list-contents.active li,
37 .extension-error-list ul li:nth-last-child(-n + 3) {
38 display: initial;
39 } 44 }
40 45
41 .extension-error-list-contents { 46 .extension-error-list-contents
42 -webkit-padding-start: 20px; 47 .extension-error-metadata.extension-error-active {
43 } 48 background-color: rgba(0, 100, 255, 0.1);
44
45 .extension-error-list-show-more {
46 text-align: center;
47 width: 100%;
48 }
49
50 .extension-error-list-show-more button {
51 width: auto;
52 } 49 }
53 50
54 .extension-error-metadata { 51 .extension-error-metadata {
55 -webkit-padding-end: 1px; 52 -webkit-padding-end: 1px;
53 -webkit-padding-start: 3px;
56 display: flex; 54 display: flex;
57 flex-direction: row; 55 flex-direction: row;
58 margin-bottom: 1px;
59 margin-top: 1px;
60 } 56 }
61 57
62 .extension-error-icon { 58 .extension-error-icon {
63 -webkit-margin-end: 3px; 59 -webkit-margin-end: 3px;
64 -webkit-margin-start: 3px;
65 height: 15px; 60 height: 15px;
66 vertical-align: middle;
67 width: 15px; 61 width: 15px;
68 } 62 }
69 63
70 .extension-error-message { 64 .extension-error-message {
65 -webkit-margin-end: 15px;
71 flex: 1; 66 flex: 1;
67 margin-bottom: 0;
68 margin-top: 0;
72 overflow: hidden; 69 overflow: hidden;
73 text-overflow: ellipsis; 70 }
74 vertical-align: middle; 71
75 white-space: nowrap; 72 .extension-error-metadata {
73 align-items: center;
74 display: flex;
75 }
76
77 .extension-error-metadata > .error-delete-button {
78 background-color: transparent;
79 background-image: url(chrome://theme/IDR_CLOSE_DIALOG);
80 background-position: center;
81 background-repeat: no-repeat;
Dan Beam 2015/04/22 21:02:38 nit: isn't this the same as background: url(chr
Devlin 2015/04/22 23:17:31 background: url(chrome://theme/IDR_CLOSE_DIALOG) n
82 height: 14px;
83 opacity: 0.6;
84 width: 14px;
85 }
86
87 .extension-error-metadata > .error-delete-button:hover {
88 opacity: 0.8;
89 }
90
91 .extension-error-metadata > .error-delete-button:active {
92 opacity: 1.0;
76 } 93 }
77 94
78 .extension-error-severity-info .extension-error-message { 95 .extension-error-severity-info .extension-error-message {
79 color: #333; 96 color: #333;
80 } 97 }
81 .extension-error-severity-info .extension-error-icon { 98 .extension-error-severity-info .extension-error-icon,
99 .extension-error-info-icon {
82 content: url(extension_error_severity_info.png); 100 content: url(extension_error_severity_info.png);
83 } 101 }
84 102
85 .extension-error-severity-warning .extension-error-message { 103 .extension-error-severity-warning .extension-error-message {
86 color: rgba(250, 145, 0, 255); 104 color: rgba(250, 145, 0, 255);
87 } 105 }
88 .extension-error-severity-warning .extension-error-icon { 106 .extension-error-severity-warning .extension-error-icon,
107 .extension-error-warning-icon {
89 content: url(extension_error_severity_warning.png); 108 content: url(extension_error_severity_warning.png);
90 } 109 }
91 110
92 .extension-error-severity-fatal .extension-error-message { 111 .extension-error-severity-fatal .extension-error-message {
93 color: rgba(200, 50, 50, 255); 112 color: rgba(200, 50, 50, 255);
94 } 113 }
95 .extension-error-severity-fatal .extension-error-icon { 114 .extension-error-severity-fatal .extension-error-icon,
115 .extension-error-fatal-icon {
96 content: url(extension_error_severity_fatal.png); 116 content: url(extension_error_severity_fatal.png);
97 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698