From 6dd7208b8b7238f217bfe00f4e05d315cc7756a6 Mon Sep 17 00:00:00 2001 From: Narcis Beleuzu Date: Wed, 24 Jul 2019 05:44:54 +0300 Subject: [PATCH] Backed out changeset 044beb95c8fc (bug 1568306) for mochitest failures on test_confirm_delete_dialog.html . CLOSED TREE --- .../aboutlogins/content/aboutLogins.html | 9 ++-- .../components/confirm-delete-dialog.css | 48 ++++++++++--------- .../themes/shared/in-content/common.inc.css | 13 ----- 3 files changed, 31 insertions(+), 39 deletions(-) diff --git a/browser/components/aboutlogins/content/aboutLogins.html b/browser/components/aboutlogins/content/aboutLogins.html index 8a0e77afb749..5932385e32fd 100644 --- a/browser/components/aboutlogins/content/aboutLogins.html +++ b/browser/components/aboutlogins/content/aboutLogins.html @@ -37,15 +37,16 @@
diff --git a/browser/components/aboutlogins/content/components/confirm-delete-dialog.css b/browser/components/aboutlogins/content/components/confirm-delete-dialog.css index ac3110cf3782..3e40608eabfd 100644 --- a/browser/components/aboutlogins/content/components/confirm-delete-dialog.css +++ b/browser/components/aboutlogins/content/components/confirm-delete-dialog.css @@ -13,29 +13,34 @@ .container { z-index: 2; - position: relative; display: flex; flex-direction: column; + width: 50%; min-width: 250px; max-width: 500px; + height: 40%; min-height: 200px; margin: auto; background: var(--in-content-page-background); color: var(--in-content-page-color); } -.title { - font-size: 1.5em; - font-weight: normal; - -moz-user-select: none; - margin: 0; +.title-bar { + position: relative; + text-align: center; + background-color: var(--in-content-dialog-header-background); + padding: 5px; + border-bottom: 1px solid var(--in-content-border-color); } -.message { - color: var(--in-content-deemphasized-text); - margin-bottom: 0; +.title { + font-size: .9em; + line-height: 1.8em; + font-weight: 600; + -moz-user-select: none; + margin: 0; } button.dismiss-button { @@ -44,7 +49,7 @@ button.dismiss-button { inset-inline-end: 0; min-width: 20px; min-height: 20px; - margin: 16px; + margin: 8px 16px; padding: 0; background: url(chrome://global/skin/icons/close.svg) no-repeat center; -moz-context-properties: fill, fill-opacity; @@ -52,20 +57,19 @@ button.dismiss-button { fill-opacity: 0; } -.warning-icon { - -moz-context-properties: fill; - fill: currentColor; - width: 40px; - height: 40px; - margin: 16px; -} - .content, .buttons { - text-align: center; - padding: 16px 32px; + padding: 16px; } -.buttons > button { - min-width: 140px; +.content { + margin: auto; +} + +.confirm-button { + float: inline-end; +} + +.buttons button { + margin: 0; } diff --git a/toolkit/themes/shared/in-content/common.inc.css b/toolkit/themes/shared/in-content/common.inc.css index e5c5f145aabd..b153c9f97b02 100644 --- a/toolkit/themes/shared/in-content/common.inc.css +++ b/toolkit/themes/shared/in-content/common.inc.css @@ -348,19 +348,6 @@ xul|button.primary:not([disabled="true"]):hover:active { background-color: var(--in-content-primary-button-background-active); } -html|button.danger-button { - background-color: var(--red-60); - color: white !important; -} - -html|button.danger-button:enabled:hover { - background-color: var(--red-70); -} - -html|button.danger-button:enabled:hover:active { - background-color: var(--red-80); -} - html|button.ghost-button { background-color: transparent; }