| 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 |
| 12 .computed-style-property-inherited { | 11 .computed-style-property-inherited { |
| 13 opacity: 0.5; | 12 opacity: 0.5; |
| 14 } | 13 } |
| 15 | 14 |
| 16 .computed-style-trace-button { | 15 .trace-link { |
| 17 display: none; | 16 float: right; |
| 18 position: absolute; | 17 padding-left: 1em; |
| 19 border: 0 transparent none; | 18 position: relative; |
| 20 background-color: transparent; | 19 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 } | 20 } |
| 28 | 21 |
| 29 .computed-style-property:hover .computed-style-trace-button { | 22 .trace-link a::before { |
| 30 display: inline-block; | 23 content: attr(data-uncopyable); |
| 24 text-decoration: underline; |
| 31 } | 25 } |
| 32 | 26 |
| 33 .computed-style-trace-button:hover { | 27 .property-trace { |
| 34 opacity: 1; | 28 text-overflow: ellipsis; |
| 29 overflow: hidden; |
| 30 flex-grow: 1; |
| 35 } | 31 } |
| 36 | 32 |
| 37 .computed-style-trace-button > .glyph { | 33 .property-trace-inactive .property-trace-value { |
| 38 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png); | 34 text-decoration: line-through; |
| 39 -webkit-mask-size: 352px 168px; | |
| 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 } | 35 } |
| 49 | 36 |
| 50 @media (-webkit-min-device-pixel-ratio: 1.5) { | 37 .property-trace-selector { |
| 51 .computed-style-trace-button > .glyph { | 38 color: gray; |
| 52 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png); | |
| 53 } | 39 } |
| 54 } /* media */ | |
| 55 | 40 |
| 56 .computed-style-property { | 41 .tree-outline li:hover { |
| 57 position: relative; | 42 background-color: #f3f3f3; |
| 58 padding-left: 14px; | 43 cursor: pointer; |
| 59 } | 44 } |
| 45 |
| 46 /* FIXME: Patch TreeElement styles to use flex for title layout. */ |
| 47 |
| 48 .tree-outline li { |
| 49 display: flex; |
| 50 align-items: center; |
| 51 } |
| 52 |
| 53 .tree-outline li::before { |
| 54 float: none; |
| 55 position: static; |
| 56 top: 0px; |
| 57 flex: none; |
| 58 -webkit-mask-position: -3px -97px; |
| 59 background-color: rgb(110, 110, 110); |
| 60 } |
| 61 |
| 62 .tree-outline li.parent.expanded::before { |
| 63 -webkit-mask-position: -19px -97px; |
| 64 } |
| OLD | NEW |