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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/elementsPanel.css

Issue 2327983002: [DevTools] Migrate StylesSidebarPane to TreeOutlineInShadow. (Closed)
Patch Set: filtering, tests Created 4 years, 2 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 172 }
173 173
174 .style-panes-wrapper { 174 .style-panes-wrapper {
175 overflow: auto; 175 overflow: auto;
176 } 176 }
177 177
178 .styles-section.read-only { 178 .styles-section.read-only {
179 background-color: #eee; 179 background-color: #eee;
180 } 180 }
181 181
182 .styles-section .style-properties li.not-parsed-ok {
183 margin-left: 0;
184 }
185
186 .styles-filter-engaged, 182 .styles-filter-engaged,
187 .styles-section .style-properties li.filter-match,
188 .styles-section .simple-selector.filter-match { 183 .styles-section .simple-selector.filter-match {
189 background-color: rgba(255, 255, 0, 0.5); 184 background-color: rgba(255, 255, 0, 0.5);
190 } 185 }
191 186
192 .-theme-with-dark-background .styles-filter-engaged, 187 .-theme-with-dark-background .styles-filter-engaged,
193 .-theme-with-dark-background .styles-section .style-properties li.filter-match,
194 .-theme-with-dark-background .styles-section .simple-selector.filter-match { 188 .-theme-with-dark-background .styles-section .simple-selector.filter-match {
195 background-color: hsla(133, 100%, 30%, 0.5); 189 background-color: hsla(133, 100%, 30%, 0.5);
196 } 190 }
197 191
198
199 .styles-section .style-properties li.overloaded.filter-match {
200 background-color: rgba(255, 255, 0, 0.25);
201 }
202
203 .-theme-with-dark-background .styles-section .style-properties li.overloaded.fil ter-match {
204 background-color: hsla(133, 100%, 30%, 0.25);
205 }
206
207 .styles-section .style-properties li.not-parsed-ok .exclamation-mark {
208 display: inline-block;
209 position: relative;
210 width: 11px;
211 height: 10px;
212 margin: 0 7px 0 0;
213 top: 1px;
214 left: -36px; /* outdent to compensate for the top-level property indent */
215 -webkit-user-select: none;
216 cursor: default;
217 z-index: 1;
218 }
219
220 .sidebar-pane-closing-brace { 192 .sidebar-pane-closing-brace {
221 clear: both; 193 clear: both;
222 } 194 }
223 195
224 .styles-section-title { 196 .styles-section-title {
225 background-origin: padding; 197 background-origin: padding;
226 background-clip: padding; 198 background-clip: padding;
227 word-wrap: break-word; 199 word-wrap: break-word;
228 white-space: normal; 200 white-space: normal;
229 } 201 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 margin: 0; 253 margin: 0;
282 padding: 2px 4px 0 0; 254 padding: 2px 4px 0 0;
283 list-style: none; 255 list-style: none;
284 clear: both; 256 clear: both;
285 } 257 }
286 258
287 .styles-section.matched-styles .style-properties { 259 .styles-section.matched-styles .style-properties {
288 padding-left: 0; 260 padding-left: 0;
289 } 261 }
290 262
291 .no-affect .style-properties li {
292 opacity: 0.5;
293 }
294
295 .no-affect .style-properties li.editing {
296 opacity: 1.0;
297 }
298
299 .styles-section .style-properties li {
300 margin-left: 12px;
301 padding-left: 22px;
302 white-space: normal;
303 text-overflow: ellipsis;
304 overflow: hidden;
305 cursor: auto;
306 }
307
308 .styles-section .style-properties li .webkit-css-property {
309 margin-left: -22px; /* outdent the first line of longhand properties (in an expanded shorthand) to compensate for the "padding-left" shift in .styles-sectio n .style-properties li */
310 }
311
312 .styles-section .style-properties > li {
313 padding-left: 38px;
314 clear: both;
315 min-height: 14px;
316 }
317
318 .styles-section .style-properties > li .webkit-css-property {
319 margin-left: -38px; /* outdent the first line of the top-level properties to compensate for the "padding-left" shift in .styles-section .style-properties > li */
320 }
321
322 .styles-section .style-properties > li.child-editing {
323 padding-left: 8px;
324 }
325
326 .styles-section .style-properties > li.child-editing .webkit-css-property {
327 margin-left: 0;
328 }
329
330 .styles-section.matched-styles .style-properties li {
331 margin-left: 0 !important;
332 }
333
334 .styles-section .style-properties li.child-editing {
335 word-wrap: break-word !important;
336 white-space: normal !important;
337 padding-left: 0;
338 }
339
340 .styles-section .style-properties ol {
341 display: none;
342 margin: 0;
343 -webkit-padding-start: 12px;
344 list-style: none;
345 }
346
347 .styles-section .style-properties ol.expanded {
348 display: block;
349 }
350
351 .styles-section.matched-styles .style-properties li.parent .expand-element {
352 -webkit-user-select: none;
353 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
354 -webkit-mask-size: 352px 168px;
355 margin-right: 2px;
356 margin-left: -6px;
357 background-color: #777;
358 width: 8px;
359 height: 10px;
360 display: inline-block;
361 }
362
363 @media (-webkit-min-device-pixel-ratio: 1.1) {
364 .styles-section.matched-styles .style-properties li.parent .expand-element {
365 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png);
366 }
367 } /* media */
368
369 .styles-section.matched-styles .style-properties li.parent .expand-element {
370 -webkit-mask-position: -4px -96px;
371 }
372
373 .styles-section.matched-styles .style-properties li.parent.expanded .expand-elem ent {
374 -webkit-mask-position: -20px -96px;
375 }
376
377 .styles-section .style-properties li .info {
378 padding-top: 4px;
379 padding-bottom: 3px;
380 }
381
382 .styles-section.matched-styles:not(.read-only):hover .style-properties .enabled- button {
383 visibility: visible;
384 }
385
386 .styles-section.matched-styles:not(.read-only) .style-properties li.disabled .en abled-button {
387 visibility: visible;
388 }
389
390 .styles-section .style-properties .enabled-button {
391 visibility: hidden;
392 float: left;
393 font-size: 10px;
394 margin: 0;
395 vertical-align: top;
396 position: relative;
397 z-index: 1;
398 width: 18px;
399 left: -40px; /* original -2px + (-38px) to compensate for the first line out dent */
400 top: 1px;
401 height: 13px;
402 }
403
404 .styles-section.matched-styles .style-properties ol.expanded {
405 margin-left: 16px;
406 }
407
408 .styles-section .style-properties .overloaded:not(.has-ignorable-error),
409 .styles-section .style-properties .inactive,
410 .styles-section .style-properties .disabled,
411 .styles-section .style-properties .not-parsed-ok:not(.has-ignorable-error) {
412 text-decoration: line-through;
413 }
414
415 .styles-section .style-properties .has-ignorable-error .webkit-css-property {
416 color: inherit;
417 }
418
419 .styles-section .style-properties .implicit,
420 .styles-section .style-properties .inherited {
421 opacity: 0.5;
422 }
423
424 .styles-section .style-properties .has-ignorable-error {
425 color: gray;
426 }
427
428 .styles-element-state-pane { 263 .styles-element-state-pane {
429 overflow: hidden; 264 overflow: hidden;
430 height: 66px; 265 height: 66px;
431 padding-left: 2px; 266 padding-left: 2px;
432 border-bottom: 1px solid rgb(189, 189, 189); 267 border-bottom: 1px solid rgb(189, 189, 189);
433 } 268 }
434 269
435 @keyframes styles-element-state-pane-slidein { 270 @keyframes styles-element-state-pane-slidein {
436 from { 271 from {
437 margin-top: -60px; 272 margin-top: -60px;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 border: none; 445 border: none;
611 width: 100%; 446 width: 100%;
612 background: transparent; 447 background: transparent;
613 margin-left: 4px; 448 margin-left: 4px;
614 } 449 }
615 450
616 .sidebar-pane.composite .metrics-and-styles .metrics { 451 .sidebar-pane.composite .metrics-and-styles .metrics {
617 border-bottom: none; 452 border-bottom: none;
618 } 453 }
619 454
620 .styles-section.styles-panel-hovered:not(.read-only) .style-properties .webkit-c ss-property:hover,
621 .styles-section.styles-panel-hovered:not(.read-only) .style-properties .value:ho ver,
622 .styles-section.styles-panel-hovered:not(.read-only) span.simple-selector:hover, 455 .styles-section.styles-panel-hovered:not(.read-only) span.simple-selector:hover,
623 .styles-section.styles-panel-hovered:not(.read-only) .media-text :hover{ 456 .styles-section.styles-panel-hovered:not(.read-only) .media-text :hover{
624 text-decoration: underline; 457 text-decoration: underline;
625 cursor: default; 458 cursor: default;
626 } 459 }
627 460
628 .styles-clipboard-only {
629 display: inline-block;
630 width: 0;
631 opacity: 0;
632 pointer-events: none;
633 white-space: pre;
634 }
635
636 li.child-editing .styles-clipboard-only {
637 display: none;
638 }
639
640 li.editing .enabled-button {
641 display: none !important;
642 }
643
644 .sidebar-separator { 461 .sidebar-separator {
645 background-color: #ddd; 462 background-color: #ddd;
646 padding: 0 5px; 463 padding: 0 5px;
647 border-top: 1px solid #ccc; 464 border-top: 1px solid #ccc;
648 border-bottom: 1px solid #ccc; 465 border-bottom: 1px solid #ccc;
649 color: rgb(50, 50, 50); 466 color: rgb(50, 50, 50);
650 white-space: nowrap; 467 white-space: nowrap;
651 text-overflow: ellipsis; 468 text-overflow: ellipsis;
652 overflow: hidden; 469 overflow: hidden;
653 line-height: 16px; 470 line-height: 16px;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 } 511 }
695 512
696 .events-pane .section { 513 .events-pane .section {
697 margin: 0; 514 margin: 0;
698 } 515 }
699 516
700 .events-pane .toolbar { 517 .events-pane .toolbar {
701 border-bottom: 1px solid #eee; 518 border-bottom: 1px solid #eee;
702 } 519 }
703 520
704 .style-properties li.editing {
705 margin-left: 10px;
706 text-overflow: clip;
707 }
708
709 .style-properties li.editing-sub-part {
710 padding: 3px 6px 8px 18px;
711 margin: -1px -6px -8px -6px;
712 text-overflow: clip;
713 }
714
715 .properties-widget-section { 521 .properties-widget-section {
716 padding: 2px 0px 2px 5px; 522 padding: 2px 0px 2px 5px;
717 flex: none; 523 flex: none;
718 } 524 }
719 525
720 .sidebar-pane-section-toolbar { 526 .sidebar-pane-section-toolbar {
721 position: absolute; 527 position: absolute;
722 right: 0; 528 right: 0;
723 bottom: 0; 529 bottom: 0;
724 visibility: hidden; 530 visibility: hidden;
725 background-color: rgba(255, 255, 255, 0.9); 531 background-color: rgba(255, 255, 255, 0.9);
726 } 532 }
727 533
728 .styles-pane:not(.is-editing-style) .styles-section.matched-styles:not(.read-onl y):hover .sidebar-pane-section-toolbar { 534 .styles-pane:not(.is-editing-style) .styles-section.matched-styles:not(.read-onl y):hover .sidebar-pane-section-toolbar {
729 visibility: visible; 535 visibility: visible;
730 } 536 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698