mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1693663 - Add dark mode support for about:serviceworkers r=ntim,asuth
Differential Revision: https://phabricator.services.mozilla.com/D105689
This commit is contained in:
parent
de0f7846d5
commit
127183db97
@ -9,26 +9,24 @@
|
||||
]>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src chrome:; object-src 'none'" />
|
||||
<title data-l10n-id="about-service-workers-title"></title>
|
||||
<link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css" />
|
||||
<link rel="stylesheet" href="chrome://mozapps/skin/aboutServiceWorkers.css" type="text/css" />
|
||||
<link rel="localization" href="toolkit/about/aboutServiceWorkers.ftl"/>
|
||||
<link rel="localization" href="branding/brand.ftl"/>
|
||||
<script src="chrome://global/content/aboutServiceWorkers.js" />
|
||||
</head>
|
||||
<body id="body">
|
||||
<div id="warning_not_enabled" class="warningBackground">
|
||||
<div class="warningMessage" data-l10n-id="about-service-workers-warning-not-enabled"></div>
|
||||
</div>
|
||||
|
||||
<div id="warning_no_serviceworkers" class="warningBackground">
|
||||
<div class="warningMessage" data-l10n-id="about-service-workers-warning-no-service-workers"></div>
|
||||
</div>
|
||||
|
||||
<div id="serviceworkers" class="tab active">
|
||||
<h1 data-l10n-id="about-service-workers-main-title"></h1>
|
||||
</div>
|
||||
</body>
|
||||
<head>
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src chrome:; object-src 'none'" />
|
||||
<title data-l10n-id="about-service-workers-title"></title>
|
||||
<link rel="stylesheet" href="chrome://global/skin/in-content/info-pages.css" type="text/css" />
|
||||
<link rel="stylesheet" href="chrome://mozapps/skin/aboutServiceWorkers.css" type="text/css" />
|
||||
<link rel="localization" href="toolkit/about/aboutServiceWorkers.ftl"/>
|
||||
<link rel="localization" href="branding/brand.ftl"/>
|
||||
<script src="chrome://global/content/aboutServiceWorkers.js" />
|
||||
</head>
|
||||
<body class="wide-container">
|
||||
<div id="warning_not_enabled" class="warningBackground">
|
||||
<div class="warningMessage" data-l10n-id="about-service-workers-warning-not-enabled"></div>
|
||||
</div>
|
||||
<div id="warning_no_serviceworkers" class="warningBackground">
|
||||
<div class="warningMessage" data-l10n-id="about-service-workers-warning-no-service-workers"></div>
|
||||
</div>
|
||||
<div id="serviceworkers" class="tab active">
|
||||
<h1 data-l10n-id="about-service-workers-main-title"></h1>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -2,36 +2,25 @@
|
||||
* 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/. */
|
||||
|
||||
body {
|
||||
min-width: 330px;
|
||||
max-width: 100%;
|
||||
min-height: 330px;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.warningBackground {
|
||||
display: none;
|
||||
background: -moz-Dialog;
|
||||
background-color: var(--in-content-page-background);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
top: 0;
|
||||
inset-inline-start: 0;
|
||||
position:fixed;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.warningMessage {
|
||||
color: FieldText;
|
||||
position: relative;
|
||||
min-width: 330px;
|
||||
max-width: 50em;
|
||||
margin: 4em auto;
|
||||
border: 1px solid ThreeDShadow;
|
||||
border: 1px solid var(--in-content-box-border-color);
|
||||
border-radius: 10px;
|
||||
padding: 3em;
|
||||
padding-inline-start: 30px;
|
||||
background: Field;
|
||||
margin-inline-start: auto;
|
||||
background-color: var(--in-content-box-background);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user