Bug 1440388 - devtools-reps: release v0.21.0; r=Honza.

This update the reps bundle and its CSS files, and adds
the images now used as background for some buttons.

MozReview-Commit-ID: 3gNJnFRRZmt

--HG--
extra : rebase_source : 178298becbbb1fcc938ff2e3a29f7982dd7a2efe
This commit is contained in:
Nicolas Chevobbe 2018-03-13 14:30:55 +01:00
Родитель f602b02aed
Коммит 2d1d4d7a1c
6 изменённых файлов: 1870 добавлений и 1551 удалений

Просмотреть файл

@ -333,3 +333,10 @@ devtools.jar:
content/netmonitor/src/assets/icons/play.svg (netmonitor/src/assets/icons/play.svg)
content/netmonitor/index.html (netmonitor/index.html)
content/netmonitor/initializer.js (netmonitor/initializer.js)
# Devtools-components
skin/images/devtools-components/arrow.svg (themes/images/devtools-components/arrow.svg)
# Devtools-reps
skin/images/devtools-reps/jump-definition.svg (themes/images/devtools-reps/jump-definition.svg)
skin/images/devtools-reps/open-inspector.svg (themes/images/devtools-reps/open-inspector.svg)

Просмотреть файл

@ -15,6 +15,7 @@
--node-color: var(--theme-highlight-purple);
--reference-color: var(--theme-highlight-blue);
--comment-node-color: var(--theme-comment);
--stack-function-color: var(--theme-highlight-red);
}
.theme-firebug {
@ -68,6 +69,7 @@
color: currentColor;
text-decoration: none;
font-style: italic;
cursor: pointer;
}
.objectBox-string a:hover {
@ -80,6 +82,24 @@
color: var(--object-color);
}
.objectBox-stackTrace-grid {
display: inline-grid;
grid-template-columns: auto auto;
margin-top: 3px;
}
.objectBox-stackTrace-fn::before {
content: "\3BB"; /* The "lambda" symbol */
color: var(--theme-body-color);
display: inline-block;
margin: 0 0.3em;
}
.objectBox-stackTrace-fn {
color: var(--stack-function-color);
padding-inline-start: 17px;
}
.objectBox-Location,
.location {
color: var(--location-color);
@ -210,35 +230,35 @@
/******************************************************************************/
/* Open DOMNode in inspector button */
.open-inspector svg {
fill: var(--comment-node-color);
button.open-inspector {
mask: url("chrome://devtools/skin/images/devtools-reps/open-inspector.svg") no-repeat;
display: inline-block;
background-color: var(--comment-node-color);
height: 16px;
width: 16px;
margin-left: .25em;
cursor: pointer;
vertical-align: middle;
}
.objectBox-node:hover .open-inspector svg,
.objectBox-textNode:hover .open-inspector svg,
.open-inspector svg:hover {
fill: var(--theme-highlight-blue);
.objectBox-node:hover .open-inspector,
.objectBox-textNode:hover .open-inspector,
.open-inspector:hover {
background-color: var(--theme-highlight-blue);
}
/******************************************************************************/
/* Jump to definition button */
.jump-definition svg {
stroke: var(--comment-node-color);
button.jump-definition {
mask: url("chrome://devtools/skin/images/devtools-reps/jump-definition.svg") no-repeat;
display: inline-block;
background-color: var(--comment-node-color);
height: 16px;
width: 16px;
margin-left: .25em;
cursor: pointer;
vertical-align: middle;
}
.jump-definition svg:hover {
stroke: var(--theme-highlight-blue);
.jump-definition:hover {
background-color: var(--theme-highlight-blue);
}
/******************************************************************************/
@ -270,14 +290,14 @@
user-select: none;
}
.tree button {
display: block;
}
.tree .tree-node {
display: flex;
}
.tree .tree-node:not(.focused):hover {
background-color: var(--theme-selection-background-hover);
}
.tree-indent {
display: inline-block;
width: 12px;
@ -293,7 +313,7 @@
/* For non expandable root nodes, we don't have .tree-indent elements, so we declare
the margin on the start of the node */
.tree-node[data-expandable="false"][aria-level="0"] {
.tree-node[data-expandable="false"][aria-level="1"] {
padding-inline-start: 15px
}
@ -301,35 +321,34 @@
cursor: default;
}
.tree .tree-node:not(.focused):hover {
background-color: #F0F9FE;
.tree-node img.arrow {
mask: url("chrome://devtools/skin/images/devtools-components/arrow.svg") no-repeat;
mask-size: 100%;
width: 9px;
height: 9px;
margin-inline-start: 1px;
margin-inline-end: 4px;
background-color: var(--theme-splitter-color, #9B9B9B);
transform: rotate(-90deg);
transition: transform 0.125s ease;
align-self: center;
}
html[dir="rtl"] .tree-node img.arrow {
transform: rotate(90deg);
}
.tree-node img.arrow.expanded.expanded {
transform: rotate(0deg);
}
.tree .tree-node.focused {
color: white;
background-color: var(--theme-selection-background, #0a84ff);
}
.tree-node.focused .arrow svg {
fill: currentColor;
}
.arrow svg {
fill: var(--theme-splitter-color, #9B9B9B);
transition: transform 0.125s ease;
width: 10px;
margin-inline-end: 5px;
transform: rotate(-90deg);
}
html[dir="rtl"] .arrow svg,
.arrow svg:dir(rtl),
.arrow svg:-moz-locale-dir(rtl) {
transform: rotate(90deg);
}
.arrow.expanded.expanded svg {
transform: rotate(0deg);
.tree-node.focused img.arrow {
background-color: currentColor;
}
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
@ -355,6 +374,21 @@ html[dir="rtl"] .arrow svg,
color: var(--theme-comment);
}
.tree.object-inspector .block .object-label,
.tree.object-inspector .block .object-label * {
color: var(--theme-body-color);
}
.tree.object-inspector .block .object-label:before {
content: "\2632 ";
font-size: 1.1em;
}
.object-inspector .object-delimiter {
color: var(--theme-comment);
}
.object-inspector .tree-node img.arrow {
display: inline-block;
vertical-align: middle;
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,6 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path d="M8 13.4c-.5 0-.9-.2-1.2-.6L.4 5.2C0 4.7-.1 4.3.2 3.7S1 3 1.6 3h12.8c.6 0 1.2.1 1.4.7.3.6.2 1.1-.2 1.6l-6.4 7.6c-.3.4-.7.5-1.2.5z"/>
</svg>

После

Ширина:  |  Высота:  |  Размер: 446 B

Просмотреть файл

@ -0,0 +1,8 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" stroke="#000" fill="none" stroke-linecap="round">
<path d="M5.5 3.5l2 2M5.5 7.5l2-2"/>
<path d="M7 5.5H4.006c-1.012 0-1.995 1.017-2.011 2.024-.005.023-.005 1.347 0 3.971" stroke-linejoin="round"/>
<path d="M10.5 5.5h4M9.5 3.5h5M9.5 7.5h5"/>
</svg>

После

Ширина:  |  Высота:  |  Размер: 528 B

Просмотреть файл

@ -0,0 +1,6 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path d="M8,3L12,3L12,7L14,7L14,8L12,8L12,12L8,12L8,14L7,14L7,12L3,12L3,8L1,8L1,7L3,7L3,3L7,3L7,1L8,1L8,3ZM10,10L10,5L5,5L5,10L10,10Z"/>
</svg>

После

Ширина:  |  Высота:  |  Размер: 442 B