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

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

Powered by Google App Engine
This is Rietveld 408576698