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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/consoleView.css

Issue 2536073002: DevTools: [Console] migrate message level icons to UI.Icon (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 left: -17px; 118 left: -17px;
119 top: 9px; 119 top: 9px;
120 width: 10px; 120 width: 10px;
121 height: 10px; 121 height: 10px;
122 margin-top: -4px; 122 margin-top: -4px;
123 -webkit-user-select: none; 123 -webkit-user-select: none;
124 background-image: url(Images/smallIcons.png); 124 background-image: url(Images/smallIcons.png);
125 background-size: 190px 30px; 125 background-size: 190px 30px;
126 } 126 }
127 127
128 .message-level-icon {
129 position: absolute;
130 left: -17px;
131 top: 5px;
132 -webkit-user-select: none;
133 }
134
128 @media (-webkit-min-device-pixel-ratio: 1.1) { 135 @media (-webkit-min-device-pixel-ratio: 1.1) {
129 .console-message::before, 136 .console-message::before,
130 .console-user-command::before, 137 .console-user-command::before,
131 #console-prompt::before, 138 #console-prompt::before,
132 .console-group-title::before { 139 .console-group-title::before {
133 background-image: url(Images/smallIcons_2x.png); 140 background-image: url(Images/smallIcons_2x.png);
134 } 141 }
135 } /* media */ 142 } /* media */
136 143
137 .console-message-repeat-count { 144 .console-message-repeat-count {
138 margin: 2px 0 0 10px; 145 margin: 2px 0 0 10px;
139 flex: none; 146 flex: none;
140 } 147 }
141 148
142 .repeated-message { 149 .repeated-message {
143 margin-left: 4px; 150 margin-left: 4px;
144 } 151 }
145 152
146 .console-error-level .repeated-message::before, 153 .repeated-message .message-level-icon {
147 .console-revokedError-level .repeated-message::before, 154 display: none;
148 .console-warning-level .repeated-message::before,
149 .console-debug-level .repeated-message::before,
150 .console-info-level .repeated-message::before {
151 visibility: hidden;
152 } 155 }
153 156
154 .repeated-message .console-message-stack-trace-toggle, 157 .repeated-message .console-message-stack-trace-toggle,
155 .repeated-message > .console-message-text { 158 .repeated-message > .console-message-text {
156 flex: 1; 159 flex: 1;
157 } 160 }
158 161
159 .console-error-level .repeated-message, 162 .console-error-level .repeated-message,
160 .console-revokedError-level .repeated-message, 163 .console-revokedError-level .repeated-message,
161 .console-log-level .repeated-message, 164 .console-log-level .repeated-message,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 293 }
291 294
292 .-theme-with-dark-background .console-debug-level .console-message-text { 295 .-theme-with-dark-background .console-debug-level .console-message-text {
293 color: hsl(220, 100%, 65%) !important; 296 color: hsl(220, 100%, 65%) !important;
294 } 297 }
295 298
296 .console-message.console-warning-level { 299 .console-message.console-warning-level {
297 background-color: rgb(255, 250, 224); 300 background-color: rgb(255, 250, 224);
298 } 301 }
299 302
300 .console-error-level .console-message::before,
301 .console-revokedError-level .console-message::before,
302 .console-warning-level .console-message::before,
303 .console-debug-level .console-message::before,
304 .console-info-level .console-message::before {
305 background-image: url(Images/smallIcons.png);
306 background-size: 190px 30px;
307 width: 10px;
308 height: 10px;
309 }
310
311 @media (-webkit-min-device-pixel-ratio: 1.1) {
312 .console-error-level .console-message::before,
313 .console-revokedError-level .console-message::before,
314 .console-warning-level .console-message::before,
315 .console-debug-level .console-message::before,
316 .console-info-level .console-message::before {
317 background-image: url(Images/smallIcons_2x.png);
318 }
319 } /* media */
320
321 .console-warning-level .console-message::before {
322 background-position: -60px 0;
323 }
324
325 .console-error-level .console-message::before {
326 background-position: -20px 0;
327 }
328
329 .console-revokedError-level .console-message::before {
330 background-position: -40px 0;
331 }
332
333 .console-info-level .console-message::before {
334 background-position: -80px 0;
335 }
336
337 .console-user-command .console-message { 303 .console-user-command .console-message {
338 margin-left: -24px; 304 margin-left: -24px;
339 padding-right: 0; 305 padding-right: 0;
340 border-bottom: none; 306 border-bottom: none;
341 } 307 }
342 308
343 .console-user-command::before { 309 .console-user-command::before {
344 background-position: 0 -20px; 310 background-position: 0 -20px;
345 } 311 }
346 312
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 447
482 @media (-webkit-min-device-pixel-ratio: 1.1) { 448 @media (-webkit-min-device-pixel-ratio: 1.1) {
483 .console-message-stack-trace-toggle .console-message-text::before { 449 .console-message-stack-trace-toggle .console-message-text::before {
484 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png); 450 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png);
485 } 451 }
486 } /* media */ 452 } /* media */
487 453
488 .console-message-stack-trace-toggle.expanded .console-message-text::before { 454 .console-message-stack-trace-toggle.expanded .console-message-text::before {
489 -webkit-mask-position: -20px -96px; 455 -webkit-mask-position: -20px -96px;
490 } 456 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698