1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
@import url("chrome://global/skin/in-content/info-pages.css");
:root {
--color-grey-lightest: #fbfbfb;
--color-grey: #b1b1b1;
--color-blue: #0996f8;
--color-blue-dark: #0670cc;
--color-blue-darker: #005bab;
--icon-margin: 64px;
}
html.private {
--in-content-page-color: #beb8cc;
--in-content-text-color: #beb8cc;
--in-content-page-background: #1c023c;
}
body {
padding: 40px;
}
a:link {
color: var(--color-blue);
text-decoration: none;
}
a:hover {
color: var(--color-blue-dark);
text-decoration: underline;
}
a:hover:active {
color: var(--color-blue-darker);
}
a:visited {
color: var(--color-blue-darker);
}
.about-content-container {
max-width: 780px;
}
.section-main {
margin-bottom: 48px;
margin-inline-start: var(--icon-margin);
padding-inline-start: 24px;
}
.section-main:last-child {
margin-bottom: 0;
}
p {
line-height: 1.5em;
}
.list-row {
overflow: auto;
}
.list-row > ul > li {
float: left;
width: 220px;
line-height: 1.5em;
margin-inline-start: 1em;
margin-bottom: 0;
}
.list-row > ul > li:dir(rtl) {
float: right;
}
.title {
background-image: url("chrome://browser/skin/privatebrowsing/private-browsing.svg");
background-size: 64px;
background-position: left, center;
font-weight: lighter;
line-height: 1.5em;
min-height: 64px;
margin-inline-start: 0;
padding-inline-start: calc(var(--icon-margin) + 24px);
}
.title:dir(rtl) {
background-position: right, center;
}
.about-subheader {
display: flex;
align-items: center;
font-size: 1.5em;
font-weight: lighter;
min-height: 32px;
background-image: url("chrome://browser/skin/privatebrowsing/tracking-protection.svg");
background-repeat: no-repeat;
background-size: 32px;
margin-inline-start: calc(var(--icon-margin) - 32px);
padding-inline-start: 56px;
}
.about-subheader:dir(rtl) {
background-position: right;
}
.about-subheader.tp-off {
background-image: url("chrome://browser/skin/privatebrowsing/tracking-protection-off.svg");
}
.about-info {
font-size: .875em;
}
.tpTitle {
margin-inline-end: 12px;
}
.private strong {
color: var(--color-grey-lightest);
font-weight: normal;
}
a.button {
padding: 5px 40px;
background-color: #381e59;
border: 1px solid #43256a;
border-radius: 4px;
text-decoration: none;
display: inline-block;
}
/**
* We want to hide the checkbox in lieu of the toggle-btn
* "slider toggle". We need to make the toggle keyboard
* focusable, however, which is not possible if it's
* display:none. We work around this by making the toggle
* invisible but still present in the display list, allowing
* it to receive keyboard events. When it is focused by keyboard,
* we use the -moz-focusring selector on the invisible checkbox
* to show a focus ring around the slider toggle.
*/
.toggle-input {
opacity: 0;
width: 0;
pointer-events: none;
position: absolute;
}
.toggle + .toggle-btn {
box-sizing: border-box;
cursor: pointer;
min-width: 60px;
height: 24px;
border-radius: 12px;
background-color: var(--color-grey);
border: 1px var(--color-grey) solid;
padding: 2px;
}
.toggle + .toggle-btn::after,
.toggle + .toggle-btn::before {
position: relative;
display: block;
content: "";
width: 19px;
height: 100%;
}
.toggle + .toggle-btn::after {
left: 0;
box-shadow: 0 0 1px 1px hsla(0, 0%, 0%, .1),
0 1px 0 hsla(0, 0%, 0%, .2);
border-radius: 50%;
background: white;
transition: left .2s ease;
}
.toggle + .toggle-btn::before {
float: left;
left: 9px;
visibility: hidden;
background-size: 16px;
background-repeat: no-repeat;
background-color: transparent;
background-image: url("chrome://browser/skin/privatebrowsing/check.svg");
}
.toggle + .toggle-btn:dir(rtl)::after {
left: auto;
right: 0;
transition-property: right;
}
.toggle + .toggle-btn:dir(rtl)::before {
float: right;
left: auto;
right: 9px;
}
.toggle:checked + .toggle-btn {
background: #3fc455;
border: 1px solid #269939;
}
.toggle:checked + .toggle-btn::after {
left: 35px;
}
.toggle:checked + .toggle-btn:dir(rtl)::after {
right: 35px;
}
.toggle:checked + .toggle-btn::before {
visibility: visible;
}
.toggle:-moz-focusring + .toggle-btn {
outline: 2px solid rgba(0, 149, 221, 0.5);
outline-offset: 1px;
-moz-outline-radius: 2px;
}
|