Bug 1696660 - Share more content from toolkit global.css files. r=desktop-theme-reviewers,Itiel

Differential Revision: https://phabricator.services.mozilla.com/D107335
This commit is contained in:
Tim Nguyen 2021-03-06 19:44:43 +00:00
Родитель 9d610c9f98
Коммит 82dd844b5b
5 изменённых файлов: 79 добавлений и 152 удалений

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

@ -74,6 +74,8 @@ xul|iframe {
}
}
/* XXX(ntim): [mode="text"] is only used by comm-central */
xul|toolbar[mode="text"] .toolbarbutton-text {
padding: 0 !important;
margin: 3px 5px !important;
@ -108,19 +110,13 @@ html|*#print-preview-pageNumber {
margin: 0 4px;
}
/* ::::: Miscellaneous formatting ::::: */
/* XXX(ntim): this might not be useful now that lwthemes no longer set backgrounds on :root */
:root:-moz-lwtheme {
appearance: none;
}
:root[lwtheme-image]:-moz-lwtheme-darktext {
text-shadow: 0 -0.5px 1.5px white;
}
:root[lwtheme-image]:-moz-lwtheme-brighttext {
text-shadow: 1px 1px 1.5px black;
}
/* Separators */
xul|separator:not([orient="vertical"]) {
height: 1.5em;
@ -149,50 +145,14 @@ xul|separator.groove[orient="vertical"] {
margin-inline: 0.4em;
}
xul|description,
xul|label {
cursor: default;
margin-block: 1px 2px;
margin-inline: 6px 5px;
}
xul|description {
margin-bottom: 4px;
}
xul|label[disabled="true"] {
color: GrayText;
}
.tooltip-label {
margin: 0;
}
.header {
font-weight: bold;
}
.indent {
margin-inline-start: 23px;
}
.box-padded {
padding: 5px;
}
.text-link {
color: -moz-nativehyperlinktext;
cursor: pointer;
}
.text-link:hover {
text-decoration: underline;
}
/* Link focus outline */
.text-link:-moz-focusring {
outline: 1px dotted;
}
/* Other margins */
html|input {
margin: 2px 4px;
}
@ -201,8 +161,6 @@ xul|notification > xul|hbox > xul|button {
margin-block: 0;
}
xul|popupnotificationcontent {
margin-top: .5em;
}
/* Notification popups */
%include ../../shared/notification-popup.inc.css

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

@ -73,15 +73,7 @@ xul|iframe {
}
}
/* ::::: Miscellaneous formatting ::::: */
:root[lwtheme-image]:-moz-lwtheme-darktext {
text-shadow: 0 -0.5px 1.5px white;
}
:root[lwtheme-image]:-moz-lwtheme-brighttext {
text-shadow: 1px 1px 1.5px black;
}
/* Separators */
xul|separator:not([orient="vertical"]) {
height: 1.5em;
@ -108,56 +100,18 @@ xul|separator.groove[orient="vertical"] {
margin-inline: 0.4em;
}
xul|description,
xul|label {
cursor: default;
margin-block: 1px 2px;
margin-inline: 6px 5px;
}
xul|description {
margin-bottom: 4px;
}
xul|label[disabled="true"] {
color: GrayText;
}
.tooltip-label {
margin: 0;
}
.header {
font-weight: bold;
}
.indent {
margin-inline-start: 23px;
}
.box-padded {
padding: 5px;
}
.text-link {
color: -moz-nativehyperlinktext;
cursor: pointer;
}
.text-link:hover {
text-decoration: underline;
}
/* Link focus outline */
.text-link:-moz-focusring {
box-shadow: var(--focus-ring-box-shadow);
}
/* Input margins */
html|input {
margin: 4px;
}
xul|popupnotificationcontent {
margin-top: .5em;
}
/* Notification popups */
%include ../../shared/notification-popup.inc.css

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

@ -11,6 +11,16 @@
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
/* Lightweight theme roots */
:root[lwtheme-image]:-moz-lwtheme-darktext {
text-shadow: 0 -0.5px 1.5px white;
}
:root[lwtheme-image]:-moz-lwtheme-brighttext {
text-shadow: 1px 1px 1.5px black;
}
/* General styles */
*|*.plain {
@ -26,6 +36,50 @@ html|textarea {
font: inherit;
}
.header {
font-weight: bold;
}
.indent {
margin-inline-start: 23px;
}
.box-padded {
padding: 5px;
}
/* Label/description formatting */
xul|description,
xul|label {
cursor: default;
margin-block: 1px 2px;
margin-inline: 6px 5px;
}
xul|description {
margin-bottom: 4px;
}
xul|label[disabled="true"] {
color: GrayText;
}
.tooltip-label {
margin: 0;
}
/* Links */
.text-link {
color: -moz-nativehyperlinktext;
cursor: pointer;
}
.text-link:hover {
text-decoration: underline;
}
/* Textbox context menu */
.textbox-contextmenu:-moz-locale-dir(rtl) {

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

@ -2,6 +2,10 @@
* 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/. */
xul|popupnotificationcontent {
margin-top: .5em;
}
.popup-notification-panel::part(arrowcontent) {
/* To keep the rounded borders of the panel, we use overflow: hidden; from the
* panel-no-padding class to ensure the contents are clipped to the border box.

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

@ -128,6 +128,8 @@ xul|iframe {
}
}
/* XXX(ntim): [mode="text"] is only used by comm-central */
xul|toolbar[mode="text"] .toolbarbutton-text {
padding: 0 !important;
margin: 3px 5px !important;
@ -164,17 +166,8 @@ html|*#print-preview-pageNumber {
margin: 0 4px;
}
/* ::::: Miscellaneous formatting ::::: */
/* Separators */
:root[lwtheme-image]:-moz-lwtheme-darktext {
text-shadow: 0 -0.5px 1.5px white;
}
:root[lwtheme-image]:-moz-lwtheme-brighttext {
text-shadow: 1px 1px 1.5px black;
}
/* separators */
xul|separator:not([orient="vertical"]) {
height: 1.5em;
}
@ -202,20 +195,7 @@ xul|separator.groove[orient="vertical"] {
margin-inline: 0.4em;
}
xul|description,
xul|label {
cursor: default;
margin-block: 1px 2px;
margin-inline: 6px 5px;
}
xul|description {
margin-bottom: 4px;
}
xul|label[disabled="true"] {
color: GrayText;
}
/* Windows classic disabled labels */
@media (-moz-windows-classic) {
xul|label[disabled="true"] {
@ -224,41 +204,18 @@ xul|label[disabled="true"] {
}
}
.tooltip-label {
margin: 0;
}
.header {
font-weight: bold;
}
.indent {
margin-inline-start: 23px;
}
.box-padded {
padding: 5px;
}
.text-link {
color: -moz-nativehyperlinktext;
cursor: pointer;
}
.text-link:hover {
text-decoration: underline;
}
/* Link focus outline */
.text-link:-moz-focusring {
outline: 1px dotted;
}
/* Input margins */
html|input {
margin: 2px 4px;
}
xul|popupnotificationcontent {
margin-top: .5em;
}
/* Notification popups */
%include ../../shared/notification-popup.inc.css