OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2015 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 .computed-properties { | 7 .computed-properties { |
8 padding: 2px 2px 4px 4px; | |
9 -webkit-user-select: text; | 8 -webkit-user-select: text; |
10 } | 9 } |
11 | 10 |
| 11 .computed-style-property { |
| 12 display: flex; |
| 13 flex-wrap: wrap; |
| 14 } |
| 15 |
| 16 .computed-style-property .property-name { |
| 17 width: 16em; |
| 18 text-overflow: ellipsis; |
| 19 overflow: hidden; |
| 20 } |
| 21 |
| 22 .computed-style-property .property-value { |
| 23 min-width: 5em; |
| 24 } |
| 25 |
12 .computed-style-property-inherited { | 26 .computed-style-property-inherited { |
13 opacity: 0.5; | 27 opacity: 0.5; |
14 } | 28 } |
15 | 29 |
16 .computed-style-trace-button { | 30 .trace-link { |
17 display: none; | 31 float: right; |
18 position: absolute; | 32 padding-left: 1em; |
19 border: 0 transparent none; | 33 position: relative; |
20 background-color: transparent; | 34 z-index: 1; |
21 height: 25px; | |
22 width: 26px; | |
23 transform: scale(0.75); | |
24 left: -10px; | |
25 top: -6px; | |
26 opacity: 0.5; | |
27 } | 35 } |
28 | 36 |
29 .computed-style-property:hover .computed-style-trace-button { | 37 .trace-link a::before { |
| 38 content: attr(data-uncopyable); |
| 39 text-decoration: underline; |
| 40 } |
| 41 |
| 42 .property-trace { |
| 43 text-overflow: ellipsis; |
| 44 overflow: hidden; |
| 45 flex-grow: 1; |
| 46 } |
| 47 |
| 48 .property-trace-selector { |
| 49 color: gray; |
| 50 padding-left: 2em; |
| 51 } |
| 52 |
| 53 .property-trace-value { |
| 54 position: relative; |
30 display: inline-block; | 55 display: inline-block; |
31 } | 56 } |
32 | 57 |
33 .computed-style-trace-button:hover { | 58 .property-trace-inactive .property-trace-value::before { |
34 opacity: 1; | 59 position: absolute; |
| 60 content: "."; |
| 61 border-bottom: 1px solid rgba(0, 0, 0, 0.35); |
| 62 top: 0; |
| 63 bottom: 5px; |
| 64 left: 0; |
| 65 right: 0; |
35 } | 66 } |
36 | 67 |
37 .computed-style-trace-button > .glyph { | 68 .tree-outline li.odd-row { |
38 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png); | 69 position: relative; |
39 -webkit-mask-size: 352px 168px; | 70 background-color: #F5F5F5; |
40 -webkit-mask-position: -224px -24px; | |
41 background-color: rgba(0, 0, 0, 0.75); | |
42 position: absolute; | |
43 top: 0; | |
44 right: 0; | |
45 bottom: 0; | |
46 left: 0; | |
47 margin: 0 -1px; | |
48 } | 71 } |
49 | 72 |
50 @media (-webkit-min-device-pixel-ratio: 1.5) { | 73 .tree-outline, .tree-outline ol { |
51 .computed-style-trace-button > .glyph { | 74 padding-left: 0; |
52 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png); | |
53 } | 75 } |
54 } /* media */ | |
55 | 76 |
56 .computed-style-property { | 77 .tree-outline li:hover { |
57 position: relative; | 78 background-color: rgb(235, 242, 252); |
58 padding-left: 14px; | 79 cursor: pointer; |
59 } | 80 } |
| 81 |
| 82 /* FIXME: Patch TreeElement styles to use flex for title layout. */ |
| 83 |
| 84 .tree-outline li { |
| 85 display: flex; |
| 86 align-items: baseline; |
| 87 } |
| 88 |
| 89 .tree-outline li::before { |
| 90 float: none; |
| 91 flex: none; |
| 92 -webkit-mask-position: -3px -97px; |
| 93 background-color: rgb(110, 110, 110); |
| 94 margin-left: 4px; |
| 95 } |
| 96 |
| 97 .tree-outline li.parent.expanded::before { |
| 98 -webkit-mask-position: -19px -97px; |
| 99 } |
OLD | NEW |