Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 .elements-disclosure { | 7 .elements-disclosure { |
| 8 width: 100%; | 8 width: 100%; |
| 9 display: inline-block; | 9 display: inline-block; |
| 10 line-height: normal; | 10 line-height: normal; |
| 11 } | 11 } |
| 12 | 12 |
| 13 .elements-disclosure li { | 13 .elements-disclosure li { |
| 14 /** Keep margin-left & padding-left in sync with ElementsTreeElements.update Decorators **/ | 14 /** Keep margin-left & padding-left in sync with ElementsTreeElements.update Decorators **/ |
| 15 padding: 0 0 0 14px; | 15 padding: 0 0 0 14px; |
| 16 margin-top: 1px; | 16 margin-top: 1px; |
| 17 margin-left: -2px; | 17 margin-left: -2px; |
| 18 word-wrap: break-word; | 18 word-wrap: break-word; |
| 19 position: relative; | 19 position: relative; |
| 20 min-height: 14px; | 20 min-height: 14px; |
| 21 } | 21 } |
| 22 | 22 |
| 23 .elements-disclosure li.parent { | 23 .elements-disclosure li.parent { |
| 24 /** Keep it in sync with ElementsTreeElements.updateDecorators **/ | 24 /** Keep it in sync with ElementsTreeElements.updateDecorators **/ |
| 25 margin-left: -13px; | 25 margin-left: -13px; |
| 26 } | 26 } |
| 27 | 27 |
| 28 .elements-disclosure li.selected:after { | 28 .elements-disclosure li .selected-hint { |
| 29 display: inline; | |
| 30 } | |
| 31 | |
| 32 .elements-disclosure li .selected-hint:before { | |
| 33 content: "== $0"; | |
| 29 font-style: italic; | 34 font-style: italic; |
| 30 content: " == $0"; | |
| 31 color: black; | |
| 32 opacity: 0.6; | 35 opacity: 0.6; |
| 33 position: absolute; | 36 position: absolute; |
| 37 white-space: nowrap; | |
| 38 margin-left: 4px; | |
| 39 } | |
| 40 | |
| 41 .elements-disclosure li:not(.selected) .selected-hint:before { | |
|
lushnikov
2017/03/24 22:05:11
you don't need half of these styles; let's make a
luoe
2017/03/25 01:38:23
Extra styles removed.
| |
| 42 content: ""; | |
| 34 } | 43 } |
| 35 | 44 |
| 36 .elements-disclosure li.selected.editing-as-html:after { | 45 .elements-disclosure li.selected.editing-as-html:after { |
| 37 display: none; | 46 display: none; |
| 38 } | 47 } |
| 39 | 48 |
| 40 .elements-disclosure ol li.selected:focus:after { | 49 .elements-disclosure ol li.selected:focus:after { |
| 41 color: white; | 50 color: white; |
| 42 } | 51 } |
| 43 | 52 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 356 border-color: hsla(0,0%,0%,0.1); | 365 border-color: hsla(0,0%,0%,0.1); |
| 357 } | 366 } |
| 358 | 367 |
| 359 .elements-tree-outline ol.shadow-root { | 368 .elements-tree-outline ol.shadow-root { |
| 360 border-color: hsla(0,0%,80%,1); | 369 border-color: hsla(0,0%,80%,1); |
| 361 } | 370 } |
| 362 | 371 |
| 363 li.selected:not(.always-parent) + ol.children { | 372 li.selected:not(.always-parent) + ol.children { |
| 364 border-color: hsla(216,68%,80%,1) !important; | 373 border-color: hsla(216,68%,80%,1) !important; |
| 365 } | 374 } |
| OLD | NEW |