summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLootyhoof <lootyhoofer@gmail.com>2017-04-12 00:20:05 +0100
committerLootyhoof <lootyhoofer@gmail.com>2017-04-12 00:24:52 +0100
commit3e78f3b8e81382d802f323e20178bb2d4b1f3388 (patch)
treec915302c028a3dbe962ee097d65bc12216c29393 /src
parent5601c379933c4845de0b336fe8f131b4eb7a6140 (diff)
Add about:home styling
Diffstat (limited to 'src')
-rw-r--r--src/chrome.manifest1
-rw-r--r--src/chrome/abouthome/abouthome.css320
-rw-r--r--src/chrome/abouthome/addons.pngbin0 -> 770 bytes
-rw-r--r--src/chrome/abouthome/addons@2x.pngbin0 -> 3695 bytes
-rw-r--r--src/chrome/abouthome/apps.pngbin0 -> 832 bytes
-rw-r--r--src/chrome/abouthome/apps@2x.pngbin0 -> 3827 bytes
-rw-r--r--src/chrome/abouthome/bookmarks.pngbin0 -> 444 bytes
-rw-r--r--src/chrome/abouthome/bookmarks@2x.pngbin0 -> 2105 bytes
-rw-r--r--src/chrome/abouthome/downloads.pngbin0 -> 444 bytes
-rw-r--r--src/chrome/abouthome/downloads@2x.pngbin0 -> 1903 bytes
-rw-r--r--src/chrome/abouthome/history.pngbin0 -> 755 bytes
-rw-r--r--src/chrome/abouthome/history@2x.pngbin0 -> 4361 bytes
-rw-r--r--src/chrome/abouthome/restore.pngbin0 -> 734 bytes
-rw-r--r--src/chrome/abouthome/restore@2x.pngbin0 -> 3660 bytes
-rw-r--r--src/chrome/abouthome/settings.pngbin0 -> 740 bytes
-rw-r--r--src/chrome/abouthome/settings@2x.pngbin0 -> 3711 bytes
-rw-r--r--src/chrome/abouthome/sync.pngbin0 -> 810 bytes
-rw-r--r--src/chrome/abouthome/sync@2x.pngbin0 -> 4054 bytes
18 files changed, 321 insertions, 0 deletions
diff --git a/src/chrome.manifest b/src/chrome.manifest
index fbebced..897eebe 100644
--- a/src/chrome.manifest
+++ b/src/chrome.manifest
@@ -1,3 +1,4 @@
1skin abouthome darkmoon chrome/abouthome/
1skin browser darkmoon chrome/browser/ 2skin browser darkmoon chrome/browser/
2skin mozapps darkmoon chrome/mozapps/ 3skin mozapps darkmoon chrome/mozapps/
3skin global darkmoon chrome/global/ 4skin global darkmoon chrome/global/
diff --git a/src/chrome/abouthome/abouthome.css b/src/chrome/abouthome/abouthome.css
new file mode 100644
index 0000000..b42d582
--- /dev/null
+++ b/src/chrome/abouthome/abouthome.css
@@ -0,0 +1,320 @@
1html {
2 font: message-box;
3 font-size: 100%;
4 background-color: rgb(43, 43, 43);
5 color: #000;
6 height: 100%;
7}
8
9body {
10 margin: 0;
11 display: -moz-box;
12 -moz-box-orient: vertical;
13 width: 100%;
14 height: 100%;
15}
16
17input,
18button {
19 font-size: inherit;
20 font-family: inherit;
21}
22
23a {
24 color: #fff;
25 text-decoration: none;
26}
27
28.spacer {
29 -moz-box-flex: 1;
30}
31
32#topSection {
33 text-align: center;
34}
35
36#brandLogo {
37 height: 192px;
38 width: 192px;
39 margin: 22px auto 31px;
40 background-image: url("chrome://branding/content/about-logo.png");
41 background-size: 192px auto;
42 background-position: center center;
43 background-repeat: no-repeat;
44 filter: grayscale(1);
45}
46
47#searchForm {
48 width: 470px;
49}
50
51#searchForm {
52 display: -moz-box;
53}
54
55#searchLogoContainer {
56 display: -moz-box;
57 -moz-box-align: center;
58 padding-top: 2px;
59 -moz-padding-end: 8px;
60}
61
62#searchLogoContainer[hidden] {
63 display: none;
64}
65
66#searchEngineLogo {
67 display: inline-block;
68 filter: saturate(65%);
69 height: 28px;
70 width: 70px;
71 min-width: 70px;
72}
73
74#searchText {
75 -moz-box-flex: 1;
76 color: #fff;
77 padding: 6px 8px;
78 background-color: rgb(50, 50, 50);
79 border: 1px solid;
80 border-color: rgb(75, 75, 75);
81 border-radius: 5px 0 0 5px;
82}
83
84#searchText:-moz-dir(rtl) {
85 border-radius: 0 5px 5px 0;
86}
87
88#searchText:focus,
89#searchText[autofocus] {
90 border-color: rgb(110, 110, 110);
91}
92
93#searchSubmit {
94 -moz-margin-start: -1px;
95 padding: 0 9px;
96 color: #fff;
97 background-color: rgb(60, 60, 60);
98 border: 1px solid;
99 border-color: rgb(75, 75, 75);
100 border-radius: 0 5px 5px 0;
101 cursor: pointer;
102 transition-property: background-color, border-color, box-shadow;
103 transition-duration: 150ms;
104}
105
106#searchSubmit:-moz-dir(rtl) {
107 border-radius: 5px 0 0 5px;
108}
109
110#searchText:focus + #searchSubmit,
111#searchText + #searchSubmit:hover,
112#searchText[autofocus] + #searchSubmit {
113 border-color: rgb(110, 110, 110);
114 background-color: rgb(75, 75, 75);
115}
116
117#searchText + #searchSubmit:hover:active {
118 border-color: rgb(75, 75, 75);
119 background-color: rgb(23, 23, 23);
120}
121
122#launcher {
123 display: -moz-box;
124 -moz-box-align: center;
125 -moz-box-pack: center;
126 width: 100%;
127 background-color: rgb(50, 50, 50);
128 border-top: 1px solid rgb(75, 75, 75);
129}
130
131#launcher:not([session]),
132body[narrow] #launcher[session] {
133 display: block; /* display separator and restore button on separate lines */
134 text-align: center;
135 white-space: nowrap; /* prevent navigational buttons from wrapping */
136}
137
138.launchButton {
139 display: -moz-box;
140 -moz-box-orient: vertical;
141 margin: 16px 1px;
142 padding: 14px 6px;
143 min-width: 88px;
144 max-width: 176px;
145 max-height: 85px;
146 vertical-align: top;
147 white-space: normal;
148 background: transparent padding-box;
149 border: 1px solid transparent;
150 border-radius: 3px;
151 color: #fff;
152 font-size: 75%;
153 cursor: pointer;
154}
155
156body[narrow] #launcher[session] > .launchButton {
157 margin: 4px 1px;
158}
159
160.launchButton:hover {
161 background-color: rgb(75, 75, 75);
162}
163
164.launchButton:hover:active {
165 background-color: rgb(23, 23, 23);
166 border-color: rgb(75, 75, 75);
167}
168
169.launchButton[hidden],
170#launcher:not([session]) > #restorePreviousSessionSeparator,
171#launcher:not([session]) > #restorePreviousSession {
172 display: none;
173}
174
175#restorePreviousSessionSeparator {
176 width: 1px;
177 height: 100px;
178 margin: 0 10px;
179 border-left: 1px solid;
180 border-left-color: rgb(75, 75, 75);
181}
182
183body[narrow] #restorePreviousSessionSeparator {
184 margin: 0 auto;
185 width: 512px;
186 height: 3px;
187}
188
189#restorePreviousSession {
190 max-width: none;
191 font-size: 90%;
192}
193
194body[narrow] #restorePreviousSession {
195 font-size: 80%;
196}
197
198.launchButton::before {
199 display: block;
200 width: 32px;
201 height: 32px;
202 margin: 0 auto 6px;
203 line-height: 0; /* remove extra vertical space due to non-zero font-size */
204}
205
206#downloads::before {
207 content: url("chrome://abouthome/skin/downloads.png");
208}
209
210#bookmarks::before {
211 content: url("chrome://abouthome/skin/bookmarks.png");
212}
213
214#history::before {
215 content: url("chrome://abouthome/skin/history.png");
216}
217
218#apps::before {
219 content: url("chrome://abouthome/skin/apps.png");
220}
221
222#addons::before {
223 content: url("chrome://abouthome/skin/addons.png");
224}
225
226#sync::before {
227 content: url("chrome://abouthome/skin/sync.png");
228}
229
230#settings::before {
231 content: url("chrome://abouthome/skin/settings.png");
232}
233
234#restorePreviousSession::before {
235 content: url("chrome://abouthome/skin/restore.png");
236 height: 32px;
237 width: 32px;
238 display: inline-block; /* display on same line as text label */
239 vertical-align: middle;
240 margin-bottom: 0;
241 -moz-margin-end: 8px;
242}
243
244#restorePreviousSession:-moz-dir(rtl)::before {
245 transform: scaleX(-1);
246}
247
248#aboutMozilla {
249 display: block;
250 position: relative; /* pin wordmark to edge of document, not of viewport */
251 -moz-box-ordinal-group: 0;
252 opacity: .5;
253 transition: opacity 150ms;
254}
255
256#aboutMozilla:hover {
257 opacity: 1;
258}
259
260#aboutMozilla::before {
261 content: url("chrome://browser/content/abouthome/mozilla.png");
262 display: block;
263 position: absolute;
264 top: 12px;
265 right: 12px;
266 width: 69px;
267 height: 19px;
268}
269
270/* [HiDPI]
271 * At resolutions above 1dppx, prefer downscaling the 2x Retina graphics
272 * rather than upscaling the original-size ones (bug 818940).
273 */
274@media not all and (max-resolution: 1dppx) {
275 #brandLogo {
276 background-image: url("chrome://branding/content/about-logo@2x.png");
277 }
278
279 .launchButton::before,
280 #aboutMozilla::before {
281 transform: scale(.5);
282 transform-origin: 0 0;
283 }
284
285 #downloads::before {
286 content: url("chrome://abouthome/skin/downloads@2x.png");
287 }
288
289 #bookmarks::before {
290 content: url("chrome://abouthome/skin/bookmarks@2x.png");
291 }
292
293 #history::before {
294 content: url("chrome://abouthome/skin/history@2x.png");
295 }
296
297 #apps::before {
298 content: url("chrome://abouthome/skin/apps@2x.png");
299 }
300
301 #addons::before {
302 content: url("chrome://abouthome/skin/addons@2x.png");
303 }
304
305 #sync::before {
306 content: url("chrome://abouthome/skin/sync@2x.png");
307 }
308
309 #settings::before {
310 content: url("chrome://abouthome/skin/settings@2x.png");
311 }
312
313 #restorePreviousSession::before {
314 content: url("chrome://abouthome/skin/restore@2x.png");
315 }
316
317 #aboutMozilla::before {
318 content: url("chrome://browser/content/abouthome/mozilla@2x.png");
319 }
320}
diff --git a/src/chrome/abouthome/addons.png b/src/chrome/abouthome/addons.png
new file mode 100644
index 0000000..7dcdda8
--- /dev/null
+++ b/src/chrome/abouthome/addons.png
Binary files differ
diff --git a/src/chrome/abouthome/addons@2x.png b/src/chrome/abouthome/addons@2x.png
new file mode 100644
index 0000000..6fc29bb
--- /dev/null
+++ b/src/chrome/abouthome/addons@2x.png
Binary files differ
diff --git a/src/chrome/abouthome/apps.png b/src/chrome/abouthome/apps.png
new file mode 100644
index 0000000..a8ca5ca
--- /dev/null
+++ b/src/chrome/abouthome/apps.png
Binary files differ
diff --git a/src/chrome/abouthome/apps@2x.png b/src/chrome/abouthome/apps@2x.png
new file mode 100644
index 0000000..9876ba3
--- /dev/null
+++ b/src/chrome/abouthome/apps@2x.png
Binary files differ
diff --git a/src/chrome/abouthome/bookmarks.png b/src/chrome/abouthome/bookmarks.png
new file mode 100644
index 0000000..3f898cd
--- /dev/null
+++ b/src/chrome/abouthome/bookmarks.png
Binary files differ
diff --git a/src/chrome/abouthome/bookmarks@2x.png b/src/chrome/abouthome/bookmarks@2x.png
new file mode 100644
index 0000000..f21b281
--- /dev/null
+++ b/src/chrome/abouthome/bookmarks@2x.png
Binary files differ
diff --git a/src/chrome/abouthome/downloads.png b/src/chrome/abouthome/downloads.png
new file mode 100644
index 0000000..22f0b71
--- /dev/null
+++ b/src/chrome/abouthome/downloads.png
Binary files differ
diff --git a/src/chrome/abouthome/downloads@2x.png b/src/chrome/abouthome/downloads@2x.png
new file mode 100644
index 0000000..cdb32d6
--- /dev/null
+++ b/src/chrome/abouthome/downloads@2x.png
Binary files differ
diff --git a/src/chrome/abouthome/history.png b/src/chrome/abouthome/history.png
new file mode 100644
index 0000000..1f251b1
--- /dev/null
+++ b/src/chrome/abouthome/history.png
Binary files differ
diff --git a/src/chrome/abouthome/history@2x.png b/src/chrome/abouthome/history@2x.png
new file mode 100644
index 0000000..8450aad
--- /dev/null
+++ b/src/chrome/abouthome/history@2x.png
Binary files differ
diff --git a/src/chrome/abouthome/restore.png b/src/chrome/abouthome/restore.png
new file mode 100644
index 0000000..23256b7
--- /dev/null
+++ b/src/chrome/abouthome/restore.png
Binary files differ
diff --git a/src/chrome/abouthome/restore@2x.png b/src/chrome/abouthome/restore@2x.png
new file mode 100644
index 0000000..6f7e49d
--- /dev/null
+++ b/src/chrome/abouthome/restore@2x.png
Binary files differ
diff --git a/src/chrome/abouthome/settings.png b/src/chrome/abouthome/settings.png
new file mode 100644
index 0000000..d70912b
--- /dev/null
+++ b/src/chrome/abouthome/settings.png
Binary files differ
diff --git a/src/chrome/abouthome/settings@2x.png b/src/chrome/abouthome/settings@2x.png
new file mode 100644
index 0000000..fa2c0ae
--- /dev/null
+++ b/src/chrome/abouthome/settings@2x.png
Binary files differ
diff --git a/src/chrome/abouthome/sync.png b/src/chrome/abouthome/sync.png
new file mode 100644
index 0000000..75375dc
--- /dev/null
+++ b/src/chrome/abouthome/sync.png
Binary files differ
diff --git a/src/chrome/abouthome/sync@2x.png b/src/chrome/abouthome/sync@2x.png
new file mode 100644
index 0000000..6f19b13
--- /dev/null
+++ b/src/chrome/abouthome/sync@2x.png
Binary files differ