second part of syncing LCARStrek with Firefox 42-44 windows theme changes
[themes.git] / LCARStrek / browser / controlcenter / panel.css
... / ...
CommitLineData
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5/* === BEGIN panel.inc.css === */
6
7/* Hide all conditional elements by default. */
8:-moz-any([when-connection],[when-mixedcontent],[when-ciphers],[when-loginforms]) {
9 display: none;
10}
11
12/* Show the right elements for the right connection states. */
13#identity-popup[connection=not-secure] [when-connection~=not-secure],
14#identity-popup[connection=secure-ev] [when-connection~=secure-ev],
15#identity-popup[connection=secure] [when-connection~=secure],
16#identity-popup[connection=chrome] [when-connection~=chrome],
17#identity-popup[connection=file] [when-connection~=file],
18/* Show insecure login forms messages when needed. */
19#identity-popup[loginforms=insecure] [when-loginforms=insecure],
20/* Show weak cipher messages when needed. */
21#identity-popup[ciphers=weak] [when-ciphers~=weak],
22/* Show mixed content warnings when needed */
23#identity-popup[mixedcontent~=active-loaded] [when-mixedcontent=active-loaded],
24#identity-popup[mixedcontent~=passive-loaded]:not([mixedcontent~=active-loaded]) [when-mixedcontent=passive-loaded],
25#identity-popup[mixedcontent~=active-blocked]:not([mixedcontent~=passive-loaded]) [when-mixedcontent=active-blocked],
26/* Show the right elements when there is mixed passive content loaded and active blocked. */
27#identity-popup[mixedcontent~=active-blocked][mixedcontent~=passive-loaded] [when-mixedcontent~=active-blocked][when-mixedcontent~=passive-loaded],
28/* Show 'disable MCB' button always when there is mixed active content blocked. */
29#identity-popup-securityView-body[mixedcontent~=active-blocked] > button[when-mixedcontent=active-blocked] {
30 display: inherit;
31}
32
33/* Hide redundant messages based on insecure login forms presence. */
34#identity-popup[loginforms=secure] [and-when-loginforms=insecure] {
35 display: none;
36}
37#identity-popup[loginforms=insecure] [and-when-loginforms=secure] {
38 display: none;
39}
40
41/* Hide 'not secure' message in subview when weak cipher or mixed content messages are shown. */
42#identity-popup-securityView-body:-moz-any([mixedcontent],[ciphers]) > description[when-connection=not-secure],
43/* Hide 'passive-loaded (only)' message when there is mixed passive content loaded and active blocked. */
44#identity-popup-securityView-body[mixedcontent~=passive-loaded][mixedcontent~=active-blocked] > description[when-mixedcontent=passive-loaded] {
45 display: none;
46}
47
48/* Make sure hidden elements don't accidentally become visible from one of the
49 above selectors (see Bug 1194258) */
50#identity-popup [hidden] {
51 display: none !important;
52}
53
54#identity-popup,
55#identity-popup:not([panelopen]) .panel-viewstack[viewtype="main"]:not([transitioning]) #identity-popup-mainView {
56 /* Tiny hack to ensure the panel shrinks back to its original
57 size after closing a subview that is bigger than the main view. */
58 max-height: 0;
59}
60
61.panel-mainview[panelid=identity-popup][viewtype=subview] > #identity-popup-mainView menulist,
62.panel-mainview[panelid=identity-popup][viewtype=subview] > #identity-popup-mainView button:not([panel-multiview-anchor]) {
63 -moz-user-focus: ignore;
64}
65
66#identity-popup > .panel-arrowcontainer > .panel-arrowcontent {
67 padding: 0;
68}
69
70.panel-mainview[panelid=identity-popup] {
71 min-width: 30em;
72}
73
74#identity-popup-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="main"] > .panel-subviews {
75 transform: translateX(100%);
76 box-shadow: none;
77}
78
79#identity-popup-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="main"] > .panel-subviews:-moz-locale-dir(rtl) {
80 transform: translateX(-100%);
81}
82
83#identity-popup-multiView > .panel-viewcontainer > .panel-viewstack > .panel-subviews {
84 background: var(--panel-arrowcontent-background);
85 border-bottom-right-radius: 3.5px;
86 padding: 0;
87}
88
89#identity-popup-multiView > .panel-viewcontainer > .panel-viewstack > .panel-subviews:-moz-locale-dir(rtl) {
90 border-bottom-right-radius: 0;
91 border-bottom-left-radius: 3.5px;
92}
93
94.identity-popup-section:not(:first-child) {
95 border-top: 1px solid var(--panel-separator-color);
96}
97
98#identity-popup-securityView,
99#identity-popup-security-content,
100#identity-popup-permissions-content,
101#tracking-protection-content {
102 padding: 0.5em 0 1em;
103 -moz-padding-start: calc(2em + 24px);
104 -moz-padding-end: 1em;
105 background-repeat: no-repeat;
106 background-position: 1em 1em;
107 background-size: 24px auto;
108}
109
110#identity-popup-securityView:-moz-locale-dir(rtl),
111#identity-popup-security-content:-moz-locale-dir(rtl),
112#identity-popup-permissions-content:-moz-locale-dir(rtl),
113#tracking-protection-content:-moz-locale-dir(rtl) {
114 background-position: calc(100% - 1em) 1em;
115}
116
117/* EXPAND BUTTON */
118
119.identity-popup-expander {
120 margin: 0;
121 min-width: auto;
122 width: 38px;
123 background-image: url("chrome://browser/skin/controlcenter/arrow-subview.svg#arrow");
124 background-size: 16px, auto;
125 background-position: center;
126 background-repeat: no-repeat;
127 background-color: transparent;
128 border-radius: 0 5px 5px 0;
129}
130
131.identity-popup-expander:-moz-locale-dir(rtl) {
132 transform: scaleX(-1);
133}
134
135.identity-popup-expander[panel-multiview-anchor] {
136 transition: background-color 250ms ease-in;
137 background-color: #008484;
138 background-image: url("chrome://browser/skin/controlcenter/arrow-subview-back.svg");
139}
140
141.identity-popup-expander > .button-box,
142.identity-popup-expander > .button-box:focus {
143 padding: 4px 0;
144 border-radius: 0 5px 5px 0;
145}
146
147.identity-popup-expander[panel-multiview-anchor] > .button-box,
148.identity-popup-expander[panel-multiview-anchor] > .button-box:focus {
149}
150
151.identity-popup-expander:hover {
152 background-image: url("chrome://browser/skin/controlcenter/arrow-subview.svg#arrow-active");
153 background-color: #FFCF00;
154}
155
156.identity-popup-expander:hover:active {
157 background-image: url("chrome://browser/skin/controlcenter/arrow-subview.svg#arrow-active");
158 background-color: #FF9F00;
159}
160
161/* CONTENT */
162
163#identity-popup-security-content > description,
164#identity-popup-security-descriptions > description,
165#identity-popup-securityView-header > description,
166#identity-popup-securityView-body > description,
167#identity-popup-permissions-content > description,
168#tracking-protection-content > label,
169.identity-popup-text {
170 white-space: pre-wrap;
171 font-size: 110%;
172 margin: 0;
173}
174
175.identity-popup-headline {
176 margin: 2px 0 4px;
177 font-size: 150%;
178}
179.identity-popup-warning-gray {
180 -moz-padding-start: 24px;
181 background: url(chrome://browser/skin/controlcenter/warning-gray.svg) no-repeat 0 50%;
182}
183
184.identity-popup-warning-yellow {
185 -moz-padding-start: 24px;
186 background: url(chrome://browser/skin/controlcenter/warning-yellow.svg) no-repeat 0 50%;
187}
188
189.identity-popup-warning-gray:-moz-locale-dir(rtl),
190.identity-popup-warning-yellow:-moz-locale-dir(rtl) {
191 background-position: 100% 50%;
192}
193
194/* SECURITY */
195
196#identity-popup-securityView > .identity-popup-text:not(#identity-popup-content-owner) {
197 margin: 2px 0 4px;
198}
199
200.identity-popup-connection-secure {
201 color: #008484;
202}
203
204.identity-popup-connection-not-secure {
205 color: #9C9CFF;
206}
207
208#identity-popup-security-content.chromeUI {
209 background-image: url(chrome://branding/content/icon48.png);
210}
211
212/* SECURITY SUBVIEW */
213
214#identity-popup-securityView {
215 padding-bottom: 2em;
216 overflow: hidden;
217}
218
219#identity-popup-securityView,
220#identity-popup-security-content {
221 background-image: url(chrome://browser/skin/controlcenter/conn-not-secure.svg);
222}
223
224#identity-popup-securityView.verifiedDomain,
225#identity-popup-securityView.verifiedIdentity,
226#identity-popup-security-content.verifiedDomain,
227#identity-popup-security-content.verifiedIdentity {
228 background-image: url(chrome://browser/skin/controlcenter/conn-secure.svg);
229}
230
231#identity-popup-securityView.weakCipher,
232#identity-popup-securityView.mixedDisplayContent,
233#identity-popup-securityView.mixedDisplayContentLoadedActiveBlocked,
234#identity-popup-security-content.weakCipher,
235#identity-popup-security-content.mixedDisplayContent,
236#identity-popup-security-content.mixedDisplayContentLoadedActiveBlocked {
237 background-image: url(chrome://browser/skin/controlcenter/conn-degraded.svg);
238}
239
240#identity-popup-securityView.mixedActiveContent,
241#identity-popup-security-content.mixedActiveContent {
242 background-image: url(chrome://browser/skin/controlcenter/mcb-disabled.svg);
243}
244
245#identity-popup-securityView-header {
246 border-bottom: 1px solid var(--panel-separator-color);
247 padding-bottom: 1em;
248 margin-bottom: 1em;
249}
250
251#identity-popup-content-owner {
252 font-weight: 700;
253}
254
255#identity-popup-content-verifier {
256 color: #A09090;
257}
258
259#identity-popup-content-owner,
260#identity-popup-securityView > #identity-popup-securityView-connection.identity-popup-text {
261 margin-top: 1em;
262}
263
264/* TRACKING PROTECTION */
265
266#tracking-protection-content {
267 background-image: url("chrome://browser/skin/controlcenter/tracking-protection.svg");
268}
269
270#tracking-protection-content[state="loaded-tracking-content"] {
271 background-image: url("chrome://browser/skin/controlcenter/tracking-protection-disabled.svg");
272}
273
274#tracking-action-block,
275#tracking-action-unblock,
276#tracking-action-unblock-private {
277 margin: 1em 0 0;
278}
279
280#tracking-protection-content[state] > #tracking-not-detected,
281#tracking-protection-content:not([state="blocked-tracking-content"]) > #tracking-blocked,
282#main-window[privatebrowsingmode] #tracking-action-unblock,
283#main-window:not([privatebrowsingmode]) #tracking-action-unblock-private,
284#tracking-protection-content:not([state="blocked-tracking-content"]) #tracking-action-unblock,
285#tracking-protection-content:not([state="blocked-tracking-content"]) #tracking-action-unblock-private,
286#tracking-protection-content:not([state="loaded-tracking-content"]) > #tracking-loaded,
287#tracking-protection-content:not([state="loaded-tracking-content"]) #tracking-action-block,
288#tracking-protection-content:not([state]) > #tracking-actions {
289 display: none;
290}
291
292/* PERMISSIONS */
293
294#identity-popup-permissions-content {
295 background-image: url(chrome://browser/skin/controlcenter/permissions.svg);
296}
297
298#identity-popup-permission-list {
299 margin-top: 5px;
300}
301
302.identity-popup-permission-label {
303 -moz-margin-start: 0;
304}
305
306/* FOOTER BUTTONS */
307
308#identity-popup-button-container {
309 background: #000000;
310 border-top: 1px solid #A09090;
311}
312
313#identity-popup-more-info-button {
314 margin-top: 5px;
315}
316/*
317#identity-popup-more-info-button:hover {
318}
319
320#identity-popup-more-info-button:hover:active {
321}
322*/
323
324/* === END panel.inc.css === */
325
326.identity-popup-expander:-moz-focusring {
327 padding: 1px;
328}
329
330.identity-popup-expander:-moz-focusring > .button-box {
331 outline: 1px #008484 dotted;
332}