Bug 1580936 - [Inactive CSS] Final visual polish, Part Two r=jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D46043

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Michael Ratcliffe 2019-09-19 15:16:11 +00:00
Родитель 6adb0e04b4
Коммит 3383b709fe
3 изменённых файлов: 10 добавлений и 24 удалений

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

@ -133,6 +133,7 @@ class MenuList extends PureComponent {
onMouseOut: this.onMouseOutOrBlur,
onFocus: this.onMouseOverOrFocus,
onBlur: this.onMouseOutOrBlur,
className: "menu-standard-padding",
};
if (this.props.id) {
@ -147,7 +148,7 @@ class MenuList extends PureComponent {
}
});
if (hasCheckbox) {
attr.className = "checkbox-container";
attr.className = "checkbox-container menu-standard-padding";
}
return div(attr, this.props.children);

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

@ -44,7 +44,7 @@ class InactiveCssTooltipHelper {
doc.l10n.resumeObserving();
// Size the content.
tooltip.setContentSize({ width: 275, height: Infinity });
tooltip.setContentSize({ width: 267, height: Infinity });
}
/**

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

@ -79,9 +79,9 @@ strong {
.devtools-tooltip-inactive-css {
color: var(--theme-arrowpanel-color);
padding: 7px 14px 9px;
font-size: 12px;
margin: 0;
padding: 10px 14px 12px 14px;
font-size: 12px;
}
.devtools-tooltip-inactive-css,
@ -268,9 +268,9 @@ strong {
/* Tooltip : doorhanger style */
.tooltip-container[type="doorhanger"] > .tooltip-panel {
padding: 2px 0;
color: var(--theme-arrowpanel-color);
margin: 4px;
margin: 0;
padding: 0;
max-width: 320px;
}
@ -349,24 +349,9 @@ strong {
margin-left: calc(var(--overhang) + var(--shadow-margin));
}
.tooltip-container[type="doorhanger"].tooltip-top > .tooltip-panel {
/*
* Drop the margin between the doorhanger and the arrow and add extra
* padding.
*/
margin-bottom: 0;
padding-top: 6px;
padding-bottom: 2px;
}
.tooltip-container[type="doorhanger"].tooltip-bottom > .tooltip-panel {
/*
* Drop the margin between the doorhanger and the arrow and add extra
* padding.
*/
margin-top: 0;
padding-top: 6px;
padding-bottom: 6px;
.tooltip-container[type="doorhanger"] .menu-standard-padding {
margin: 0;
padding: 6px 0;
}
.tooltip-container[type="doorhanger"].tooltip-top > .tooltip-arrow {