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

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

Issue 2623143002: DevTools: insert console message decorations in order
Patch Set: address comment Created 3 years, 10 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 /* 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 padding: 2px 0; 59 padding: 2px 0;
60 overflow-y: auto; 60 overflow-y: auto;
61 word-wrap: break-word; 61 word-wrap: break-word;
62 -webkit-user-select: text; 62 -webkit-user-select: text;
63 transform: translateZ(0); 63 transform: translateZ(0);
64 } 64 }
65 65
66 #console-prompt { 66 #console-prompt {
67 clear: right; 67 clear: right;
68 position: relative; 68 position: relative;
69 margin: 0 22px 0 20px; 69 margin: 0 22px 0 21px;
70 min-height: 18px; /* Sync with ConsoleViewMessage.js */ 70 min-height: 18px; /* Sync with ConsoleViewMessage.js */
71 } 71 }
72 72
73 #console-prompt .CodeMirror { 73 #console-prompt .CodeMirror {
74 padding: 3px 0 1px 0; 74 padding: 3px 0 1px 0;
75 } 75 }
76 76
77 #console-prompt .CodeMirror-line { 77 #console-prompt .CodeMirror-line {
78 padding-top: 0; 78 padding-top: 0;
79 } 79 }
80 80
81 #console-prompt .CodeMirror-lines { 81 #console-prompt .CodeMirror-lines {
82 padding-top: 0; 82 padding-top: 0;
83 } 83 }
84 84
85 #console-prompt .console-prompt-icon { 85 #console-prompt .console-prompt-icon {
86 position: absolute; 86 position: absolute;
87 left: -13px; 87 left: -14px;
88 top: 5px; 88 top: 5px;
89 -webkit-user-select: none; 89 -webkit-user-select: none;
90 } 90 }
91 91
92 .console-message, 92 .console-message,
93 .console-user-command { 93 .console-user-command {
94 clear: right; 94 clear: right;
95 position: relative; 95 position: relative;
96 padding: 3px 22px 1px 0; 96 padding: 3px 22px 1px 0;
97 margin-left: 24px;
98 min-height: 18px; /* Sync with ConsoleViewMessage.js */ 97 min-height: 18px; /* Sync with ConsoleViewMessage.js */
99 flex: auto; 98 flex: auto;
100 display: flex; 99 display: flex;
101 } 100 }
102 101
103 .console-message > * { 102 .console-message > * {
104 flex: auto; 103 flex: auto;
105 } 104 }
106 105
107 .console-timestamp { 106 .message-decoration-wrapper {
108 color: gray;
109 -webkit-user-select: none; 107 -webkit-user-select: none;
110 flex: none; 108 flex: none;
109 display: flex;
110 }
111
112 .message-timestamp,
113 .message-level-icon {
114 margin-top: 3px;
115 }
116
117 .message-timestamp {
118 color: gray;
111 margin-right: 5px; 119 margin-right: 5px;
112 } 120 }
113 121
114 .message-level-icon, .command-result-icon { 122 .message-level-icon {
115 position: absolute; 123 min-width: 18px;
116 left: -17px;
117 top: 4px;
118 -webkit-user-select: none;
119 } 124 }
120 125
121 .console-message-repeat-count { 126 .message-repeat-count {
122 margin: 2px 0 0 10px; 127 margin-top: 2px;
123 flex: none; 128 margin-right: 5px;
124 }
125
126 .repeated-message {
127 margin-left: 4px;
128 } 129 }
129 130
130 .repeated-message .message-level-icon { 131 .repeated-message .message-level-icon {
131 display: none; 132 visibility: hidden;
132 } 133 }
133 134
134 .repeated-message .console-message-stack-trace-toggle, 135 .repeated-message .console-message-stack-trace-toggle,
135 .repeated-message > .console-message-text { 136 .repeated-message > .console-message-text {
136 flex: 1; 137 flex: 1;
137 } 138 }
138 139
139 .console-error-level .repeated-message,
140 .console-warning-level .repeated-message,
141 .console-verbose-level .repeated-message,
142 .console-info-level .repeated-message {
143 display: flex;
144 }
145
146 .console-info { 140 .console-info {
147 color: rgb(128, 128, 128); 141 color: rgb(128, 128, 128);
148 font-style: italic; 142 font-style: italic;
149 padding-bottom: 2px; 143 padding-bottom: 2px;
150 } 144 }
151 145
152 .console-group .console-group > .console-group-messages {
153 margin-left: 16px;
154 }
155
156 .console-group-title { 146 .console-group-title {
157 font-weight: bold; 147 font-weight: bold;
158 } 148 }
159 149
160 .expand-group-icon { 150 .expand-group-icon {
161 -webkit-user-select: none;
162 position: absolute;
163 background-color: rgb(110, 110, 110); 151 background-color: rgb(110, 110, 110);
164 left: -14px; 152 max-width: 10px;
153 margin-top: 2px;
165 } 154 }
166 155
167 .console-group { 156 .console-group {
168 position: relative; 157 position: relative;
169 } 158 }
170 159
171 .console-message-wrapper { 160 .console-message-wrapper {
161 padding-left: 7px;
172 display: flex; 162 display: flex;
173 border-bottom: 1px solid rgb(240, 240, 240); 163 border-bottom: 1px solid rgb(240, 240, 240);
164 position: relative;
174 } 165 }
175 166
176 .console-message-wrapper.console-adjacent-user-command-result { 167 .console-message-wrapper.console-adjacent-user-command-result {
177 border-bottom: none; 168 border-bottom: none;
178 } 169 }
179 170
180 .console-message-wrapper.console-error-level { 171 .console-message-wrapper.console-error-level {
181 border-top: 1px solid hsl(0, 100%, 92%); 172 border-top: 1px solid hsl(0, 100%, 92%);
182 border-bottom: 1px solid hsl(0, 100%, 92%); 173 border-bottom: 1px solid hsl(0, 100%, 92%);
183 margin-top: -1px; 174 margin-top: -1px;
184 } 175 }
185 176
186 .console-message-wrapper.console-warning-level { 177 .console-message-wrapper.console-warning-level {
187 border-top: 1px solid hsl(50, 100%, 88%); 178 border-top: 1px solid hsl(50, 100%, 88%);
188 border-bottom: 1px solid hsl(50, 100%, 88%); 179 border-bottom: 1px solid hsl(50, 100%, 88%);
189 margin-top: -1px; 180 margin-top: -1px;
190 } 181 }
191 182
192 .console-message-wrapper .nesting-level-marker { 183 .console-message-wrapper .message-nesting-level-marker {
193 width: 14px;
194 flex: 0 0 auto;
195 border-right: 1px solid #a5a5a5; 184 border-right: 1px solid #a5a5a5;
196 position: relative; 185 margin: -1px 8px -1px 4px;
197 margin-bottom: -1px;
198 } 186 }
199 187
200 .console-message-wrapper:last-child .nesting-level-marker::before, 188 .console-message-wrapper:last-child .message-nesting-level-marker::before,
201 .console-message-wrapper .nesting-level-marker.group-closed::before { 189 .console-message-wrapper .message-nesting-level-marker.group-closed::before {
202 content: ""; 190 content: "";
203 } 191 }
204 192
205 .console-message-wrapper .nesting-level-marker::before { 193 .console-message-wrapper .message-nesting-level-marker::before {
206 border-bottom: 1px solid #a5a5a5; 194 border-bottom: 1px solid #a5a5a5;
207 position: absolute; 195 position: absolute;
208 top: 0; 196 bottom: -1px;
209 left: 0;
210 margin-left: 100%;
211 width: 3px; 197 width: 3px;
212 height: 100%;
213 box-sizing: border-box; 198 box-sizing: border-box;
199 z-index: 1;
214 } 200 }
215 201
216 .console-error-level { 202 .console-error-level {
217 background-color: hsl(0, 100%, 97%); 203 background-color: hsl(0, 100%, 97%);
218 } 204 }
219 205
220 .-theme-with-dark-background .console-error-level { 206 .-theme-with-dark-background .console-error-level {
221 background-color: hsl(0, 100%, 8%); 207 background-color: hsl(0, 100%, 8%);
222 } 208 }
223 209
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 .console-message-stack-trace-wrapper { 354 .console-message-stack-trace-wrapper {
369 flex: 1 1 auto; 355 flex: 1 1 auto;
370 display: flex; 356 display: flex;
371 flex-direction: column; 357 flex-direction: column;
372 align-items: stretch; 358 align-items: stretch;
373 } 359 }
374 360
375 .console-message-stack-trace-wrapper > * { 361 .console-message-stack-trace-wrapper > * {
376 flex: none; 362 flex: none;
377 } 363 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698