mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 18:51:48 -10:00
<!-- Please describe your changes on the following line: --> This patch restores the layout trace viewer removed in https://github.com/servo/servo/commit/e7510ab90c3482233ca8b188d748216901041970 , with some changes that makes it work with https://github.com/servo/servo/pull/13214 Sorry for the minified 3rd party CSS frameworks, it was from the original version and I haven't got time to replace them with hand-crafted CSS. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because is a stand-alone debugging tool <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 0af9be94298c676f5bf7881847880e6f43955602
186 lines
4.0 KiB
CSS
186 lines
4.0 KiB
CSS
.jsondiffpatch-delta {
|
|
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
font-size: 12px;
|
|
margin: 0;
|
|
padding: 0 0 0 12px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.jsondiffpatch-delta pre {
|
|
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
font-size: 12px;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: inline-block;
|
|
}
|
|
|
|
ul.jsondiffpatch-delta {
|
|
list-style-type: none;
|
|
padding: 0 0 0 20px;
|
|
margin: 0;
|
|
}
|
|
|
|
.jsondiffpatch-delta ul {
|
|
list-style-type: none;
|
|
padding: 0 0 0 20px;
|
|
margin: 0;
|
|
}
|
|
|
|
.jsondiffpatch-added .jsondiffpatch-property-name,
|
|
.jsondiffpatch-added .jsondiffpatch-value pre,
|
|
.jsondiffpatch-modified .jsondiffpatch-right-value,
|
|
.jsondiffpatch-textdiff-added
|
|
{
|
|
background: #bbffbb;
|
|
}
|
|
|
|
.jsondiffpatch-deleted .jsondiffpatch-property-name,
|
|
.jsondiffpatch-deleted pre,
|
|
.jsondiffpatch-modified .jsondiffpatch-left-value pre,
|
|
.jsondiffpatch-textdiff-deleted
|
|
{
|
|
background: #ffbbbb;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.jsondiffpatch-unchanged, .jsondiffpatch-movedestination {
|
|
color: gray;
|
|
}
|
|
|
|
.jsondiffpatch-unchanged, .jsondiffpatch-movedestination > .jsondiffpatch-value {
|
|
transition: all 0.5s;
|
|
-webkit-transition: all 0.5s;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.jsondiffpatch-unchanged-showing .jsondiffpatch-unchanged,
|
|
.jsondiffpatch-unchanged-showing .jsondiffpatch-movedestination > .jsondiffpatch-value {
|
|
max-height: 100px;
|
|
}
|
|
|
|
.jsondiffpatch-unchanged-hidden .jsondiffpatch-unchanged,
|
|
.jsondiffpatch-unchanged-hidden .jsondiffpatch-movedestination > .jsondiffpatch-value {
|
|
max-height: 0;
|
|
}
|
|
|
|
.jsondiffpatch-unchanged-hiding .jsondiffpatch-movedestination > .jsondiffpatch-value,
|
|
.jsondiffpatch-unchanged-hidden .jsondiffpatch-movedestination > .jsondiffpatch-value {
|
|
display: block;
|
|
}
|
|
|
|
.jsondiffpatch-unchanged-visible .jsondiffpatch-unchanged,
|
|
.jsondiffpatch-unchanged-visible .jsondiffpatch-movedestination > .jsondiffpatch-value {
|
|
max-height: 100px;
|
|
}
|
|
|
|
.jsondiffpatch-unchanged-hiding .jsondiffpatch-unchanged,
|
|
.jsondiffpatch-unchanged-hiding .jsondiffpatch-movedestination > .jsondiffpatch-value {
|
|
max-height: 0;
|
|
}
|
|
|
|
.jsondiffpatch-unchanged-showing .jsondiffpatch-arrow,
|
|
.jsondiffpatch-unchanged-hiding .jsondiffpatch-arrow {
|
|
display: none;
|
|
}
|
|
|
|
.jsondiffpatch-value {
|
|
display: inline-block;
|
|
}
|
|
|
|
.jsondiffpatch-property-name {
|
|
display: inline-block;
|
|
padding-right: 5px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.jsondiffpatch-property-name:after {
|
|
content: ': ';
|
|
}
|
|
|
|
.jsondiffpatch-child-node-type-array > .jsondiffpatch-property-name:after {
|
|
content: ': [';
|
|
}
|
|
|
|
.jsondiffpatch-child-node-type-array:after {
|
|
content: '],';
|
|
}
|
|
|
|
div.jsondiffpatch-child-node-type-array:before {
|
|
content: '[';
|
|
}
|
|
|
|
div.jsondiffpatch-child-node-type-array:after {
|
|
content: ']';
|
|
}
|
|
|
|
.jsondiffpatch-child-node-type-object > .jsondiffpatch-property-name:after {
|
|
content: ': {';
|
|
}
|
|
|
|
.jsondiffpatch-child-node-type-object:after {
|
|
content: '},';
|
|
}
|
|
|
|
div.jsondiffpatch-child-node-type-object:before {
|
|
content: '{';
|
|
}
|
|
|
|
div.jsondiffpatch-child-node-type-object:after {
|
|
content: '}';
|
|
}
|
|
|
|
.jsondiffpatch-value pre:after {
|
|
content: ',';
|
|
}
|
|
|
|
li:last-child > .jsondiffpatch-value pre:after,
|
|
.jsondiffpatch-modified > .jsondiffpatch-left-value pre:after
|
|
{
|
|
content: '';
|
|
}
|
|
|
|
.jsondiffpatch-modified .jsondiffpatch-value {
|
|
display: inline-block;
|
|
}
|
|
|
|
.jsondiffpatch-modified .jsondiffpatch-right-value {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.jsondiffpatch-moved .jsondiffpatch-value {
|
|
display: none;
|
|
}
|
|
|
|
.jsondiffpatch-moved .jsondiffpatch-moved-destination {
|
|
display: inline-block;
|
|
background: #ffffbb;
|
|
color: #888;
|
|
}
|
|
|
|
.jsondiffpatch-moved .jsondiffpatch-moved-destination:before {
|
|
content: ' => ';
|
|
}
|
|
|
|
ul.jsondiffpatch-textdiff {
|
|
padding: 0;
|
|
}
|
|
|
|
.jsondiffpatch-textdiff-location {
|
|
color: #bbb;
|
|
display: inline-block;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.jsondiffpatch-textdiff-line {
|
|
display: inline-block;
|
|
}
|
|
|
|
.jsondiffpatch-textdiff-line-number:after {
|
|
content: ',';
|
|
}
|
|
|
|
.jsondiffpatch-error {
|
|
background: red;
|
|
color: white;
|
|
font-weight: bold;
|
|
} |