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

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: a 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
97 .console-timestamp,
98 .console-message-repeat-count,
99 .expand-group-icon,
100 .nesting-level-markers-wrapper,
101 .message-level-icon {
102 -webkit-user-select: none;
103 flex: none;
104 }
105
106 .console-timestamp,
107 .message-level-icon {
pfeldman 2017/02/04 01:55:19 let's name these consistently.
luoe 2017/02/06 19:51:55 Done.
108 margin-top: 4px;
109 }
110
98 .console-timestamp { 111 .console-timestamp {
99 color: gray; 112 color: gray;
100 -webkit-user-select: none;
101 flex: none;
102 margin-right: 5px; 113 margin-right: 5px;
103 } 114 }
104 115
105 .message-level-icon, .command-result-icon { 116 .message-level-icon {
106 position: absolute; 117 min-width: 18px;
107 left: -17px;
108 top: 4px;
109 -webkit-user-select: none;
110 } 118 }
111 119
112 .console-message-repeat-count { 120 .console-message-repeat-count {
113 margin: 2px 0 0 10px; 121 margin-top: 2px;
114 flex: none; 122 margin-right: 5px;
115 }
116
117 .repeated-message {
118 margin-left: 4px;
119 } 123 }
120 124
121 .repeated-message .message-level-icon { 125 .repeated-message .message-level-icon {
122 display: none; 126 visibility: hidden;
123 } 127 }
124 128
125 .repeated-message .console-message-stack-trace-toggle, 129 .repeated-message .console-message-stack-trace-toggle,
126 .repeated-message > .console-message-text { 130 .repeated-message > .console-message-text {
127 flex: 1; 131 flex: 1;
128 } 132 }
129 133
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 { 134 .console-info {
138 color: rgb(128, 128, 128); 135 color: rgb(128, 128, 128);
139 font-style: italic; 136 font-style: italic;
140 padding-bottom: 2px; 137 padding-bottom: 2px;
141 } 138 }
142 139
143 .console-group .console-group > .console-group-messages {
144 margin-left: 16px;
145 }
146
147 .console-group-title { 140 .console-group-title {
148 font-weight: bold; 141 font-weight: bold;
149 } 142 }
150 143
151 .expand-group-icon { 144 .expand-group-icon {
152 -webkit-user-select: none;
153 position: absolute;
154 background-color: rgb(110, 110, 110); 145 background-color: rgb(110, 110, 110);
155 left: -14px; 146 max-width: 10px;
147 margin-top: 2px;
156 } 148 }
157 149
158 .console-group { 150 .console-group {
159 position: relative; 151 position: relative;
160 } 152 }
161 153
162 .console-message-wrapper { 154 .console-message-wrapper {
155 padding-left: 7px;
163 display: flex; 156 display: flex;
164 border-bottom: 1px solid rgb(240, 240, 240); 157 border-bottom: 1px solid rgb(240, 240, 240);
165 } 158 }
166 159
167 .console-message-wrapper.console-adjacent-user-command-result { 160 .console-message-wrapper.console-adjacent-user-command-result {
168 border-bottom: none; 161 border-bottom: none;
169 } 162 }
170 163
171 .console-message-wrapper.console-error-level { 164 .console-message-wrapper.console-error-level {
172 border-top: 1px solid hsl(0, 100%, 92%); 165 border-top: 1px solid hsl(0, 100%, 92%);
173 border-bottom: 1px solid hsl(0, 100%, 92%); 166 border-bottom: 1px solid hsl(0, 100%, 92%);
174 margin-top: -1px; 167 margin-top: -1px;
175 } 168 }
176 169
177 .console-message-wrapper.console-warning-level { 170 .console-message-wrapper.console-warning-level {
178 border-top: 1px solid hsl(50, 100%, 88%); 171 border-top: 1px solid hsl(50, 100%, 88%);
179 border-bottom: 1px solid hsl(50, 100%, 88%); 172 border-bottom: 1px solid hsl(50, 100%, 88%);
180 margin-top: -1px; 173 margin-top: -1px;
181 } 174 }
182 175
183 .console-message-wrapper .nesting-level-marker { 176 .nesting-level-markers-wrapper {
184 width: 14px;
185 flex: 0 0 auto;
186 border-right: 1px solid #a5a5a5;
187 position: relative;
188 margin-bottom: -1px; 177 margin-bottom: -1px;
189 } 178 }
190 179
180 .console-message-wrapper .nesting-level-marker {
181 border-right: 1px solid #a5a5a5;
182 position: relative;
183 margin: 0 8px 0 4px;
184 height: 100%;
185 display: inline-block;
186 }
187
191 .console-message-wrapper:last-child .nesting-level-marker::before, 188 .console-message-wrapper:last-child .nesting-level-marker::before,
192 .console-message-wrapper .nesting-level-marker.group-closed::before { 189 .console-message-wrapper .nesting-level-marker.group-closed::before {
193 content: ""; 190 content: "";
194 } 191 }
195 192
196 .console-message-wrapper .nesting-level-marker::before { 193 .console-message-wrapper .nesting-level-marker::before {
197 border-bottom: 1px solid #a5a5a5; 194 border-bottom: 1px solid #a5a5a5;
198 position: absolute; 195 position: absolute;
199 top: 0; 196 top: 0;
200 left: 0; 197 left: 0;
201 margin-left: 100%;
202 width: 3px; 198 width: 3px;
203 height: 100%; 199 height: 100%;
204 box-sizing: border-box; 200 box-sizing: border-box;
205 } 201 }
206 202
207 .console-error-level { 203 .console-error-level {
208 background-color: hsl(0, 100%, 97%); 204 background-color: hsl(0, 100%, 97%);
209 } 205 }
210 206
211 .-theme-with-dark-background .console-error-level { 207 .-theme-with-dark-background .console-error-level {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 .console-message-stack-trace-wrapper { 350 .console-message-stack-trace-wrapper {
355 flex: 1 1 auto; 351 flex: 1 1 auto;
356 display: flex; 352 display: flex;
357 flex-direction: column; 353 flex-direction: column;
358 align-items: stretch; 354 align-items: stretch;
359 } 355 }
360 356
361 .console-message-stack-trace-wrapper > * { 357 .console-message-stack-trace-wrapper > * {
362 flex: none; 358 flex: none;
363 } 359 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698