elbaitemoon

Elbaite theme for Pale Moon
Log | Files | Refs

commit 3e78f3b8e81382d802f323e20178bb2d4b1f3388
parent 5601c379933c4845de0b336fe8f131b4eb7a6140
Author: Lootyhoof <lootyhoofer@gmail.com>
Date:   Wed, 12 Apr 2017 00:20:05 +0100

Add about:home styling

Diffstat:
Msrc/chrome.manifest | 1+
Asrc/chrome/abouthome/abouthome.css | 320+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asrc/chrome/abouthome/addons.png | 0
Asrc/chrome/abouthome/addons@2x.png | 0
Asrc/chrome/abouthome/apps.png | 0
Asrc/chrome/abouthome/apps@2x.png | 0
Asrc/chrome/abouthome/bookmarks.png | 0
Asrc/chrome/abouthome/bookmarks@2x.png | 0
Asrc/chrome/abouthome/downloads.png | 0
Asrc/chrome/abouthome/downloads@2x.png | 0
Asrc/chrome/abouthome/history.png | 0
Asrc/chrome/abouthome/history@2x.png | 0
Asrc/chrome/abouthome/restore.png | 0
Asrc/chrome/abouthome/restore@2x.png | 0
Asrc/chrome/abouthome/settings.png | 0
Asrc/chrome/abouthome/settings@2x.png | 0
Asrc/chrome/abouthome/sync.png | 0
Asrc/chrome/abouthome/sync@2x.png | 0
18 files changed, 321 insertions(+), 0 deletions(-)

diff --git a/src/chrome.manifest b/src/chrome.manifest @@ -1,3 +1,4 @@ +skin abouthome darkmoon chrome/abouthome/ skin browser darkmoon chrome/browser/ skin mozapps darkmoon chrome/mozapps/ skin global darkmoon chrome/global/ diff --git a/src/chrome/abouthome/abouthome.css b/src/chrome/abouthome/abouthome.css @@ -0,0 +1,320 @@ +html { + font: message-box; + font-size: 100%; + background-color: rgb(43, 43, 43); + color: #000; + height: 100%; +} + +body { + margin: 0; + display: -moz-box; + -moz-box-orient: vertical; + width: 100%; + height: 100%; +} + +input, +button { + font-size: inherit; + font-family: inherit; +} + +a { + color: #fff; + text-decoration: none; +} + +.spacer { + -moz-box-flex: 1; +} + +#topSection { + text-align: center; +} + +#brandLogo { + height: 192px; + width: 192px; + margin: 22px auto 31px; + background-image: url("chrome://branding/content/about-logo.png"); + background-size: 192px auto; + background-position: center center; + background-repeat: no-repeat; + filter: grayscale(1); +} + +#searchForm { + width: 470px; +} + +#searchForm { + display: -moz-box; +} + +#searchLogoContainer { + display: -moz-box; + -moz-box-align: center; + padding-top: 2px; + -moz-padding-end: 8px; +} + +#searchLogoContainer[hidden] { + display: none; +} + +#searchEngineLogo { + display: inline-block; + filter: saturate(65%); + height: 28px; + width: 70px; + min-width: 70px; +} + +#searchText { + -moz-box-flex: 1; + color: #fff; + padding: 6px 8px; + background-color: rgb(50, 50, 50); + border: 1px solid; + border-color: rgb(75, 75, 75); + border-radius: 5px 0 0 5px; +} + +#searchText:-moz-dir(rtl) { + border-radius: 0 5px 5px 0; +} + +#searchText:focus, +#searchText[autofocus] { + border-color: rgb(110, 110, 110); +} + +#searchSubmit { + -moz-margin-start: -1px; + padding: 0 9px; + color: #fff; + background-color: rgb(60, 60, 60); + border: 1px solid; + border-color: rgb(75, 75, 75); + border-radius: 0 5px 5px 0; + cursor: pointer; + transition-property: background-color, border-color, box-shadow; + transition-duration: 150ms; +} + +#searchSubmit:-moz-dir(rtl) { + border-radius: 5px 0 0 5px; +} + +#searchText:focus + #searchSubmit, +#searchText + #searchSubmit:hover, +#searchText[autofocus] + #searchSubmit { + border-color: rgb(110, 110, 110); + background-color: rgb(75, 75, 75); +} + +#searchText + #searchSubmit:hover:active { + border-color: rgb(75, 75, 75); + background-color: rgb(23, 23, 23); +} + +#launcher { + display: -moz-box; + -moz-box-align: center; + -moz-box-pack: center; + width: 100%; + background-color: rgb(50, 50, 50); + border-top: 1px solid rgb(75, 75, 75); +} + +#launcher:not([session]), +body[narrow] #launcher[session] { + display: block; /* display separator and restore button on separate lines */ + text-align: center; + white-space: nowrap; /* prevent navigational buttons from wrapping */ +} + +.launchButton { + display: -moz-box; + -moz-box-orient: vertical; + margin: 16px 1px; + padding: 14px 6px; + min-width: 88px; + max-width: 176px; + max-height: 85px; + vertical-align: top; + white-space: normal; + background: transparent padding-box; + border: 1px solid transparent; + border-radius: 3px; + color: #fff; + font-size: 75%; + cursor: pointer; +} + +body[narrow] #launcher[session] > .launchButton { + margin: 4px 1px; +} + +.launchButton:hover { + background-color: rgb(75, 75, 75); +} + +.launchButton:hover:active { + background-color: rgb(23, 23, 23); + border-color: rgb(75, 75, 75); +} + +.launchButton[hidden], +#launcher:not([session]) > #restorePreviousSessionSeparator, +#launcher:not([session]) > #restorePreviousSession { + display: none; +} + +#restorePreviousSessionSeparator { + width: 1px; + height: 100px; + margin: 0 10px; + border-left: 1px solid; + border-left-color: rgb(75, 75, 75); +} + +body[narrow] #restorePreviousSessionSeparator { + margin: 0 auto; + width: 512px; + height: 3px; +} + +#restorePreviousSession { + max-width: none; + font-size: 90%; +} + +body[narrow] #restorePreviousSession { + font-size: 80%; +} + +.launchButton::before { + display: block; + width: 32px; + height: 32px; + margin: 0 auto 6px; + line-height: 0; /* remove extra vertical space due to non-zero font-size */ +} + +#downloads::before { + content: url("chrome://abouthome/skin/downloads.png"); +} + +#bookmarks::before { + content: url("chrome://abouthome/skin/bookmarks.png"); +} + +#history::before { + content: url("chrome://abouthome/skin/history.png"); +} + +#apps::before { + content: url("chrome://abouthome/skin/apps.png"); +} + +#addons::before { + content: url("chrome://abouthome/skin/addons.png"); +} + +#sync::before { + content: url("chrome://abouthome/skin/sync.png"); +} + +#settings::before { + content: url("chrome://abouthome/skin/settings.png"); +} + +#restorePreviousSession::before { + content: url("chrome://abouthome/skin/restore.png"); + height: 32px; + width: 32px; + display: inline-block; /* display on same line as text label */ + vertical-align: middle; + margin-bottom: 0; + -moz-margin-end: 8px; +} + +#restorePreviousSession:-moz-dir(rtl)::before { + transform: scaleX(-1); +} + +#aboutMozilla { + display: block; + position: relative; /* pin wordmark to edge of document, not of viewport */ + -moz-box-ordinal-group: 0; + opacity: .5; + transition: opacity 150ms; +} + +#aboutMozilla:hover { + opacity: 1; +} + +#aboutMozilla::before { + content: url("chrome://browser/content/abouthome/mozilla.png"); + display: block; + position: absolute; + top: 12px; + right: 12px; + width: 69px; + height: 19px; +} + +/* [HiDPI] + * At resolutions above 1dppx, prefer downscaling the 2x Retina graphics + * rather than upscaling the original-size ones (bug 818940). + */ +@media not all and (max-resolution: 1dppx) { + #brandLogo { + background-image: url("chrome://branding/content/about-logo@2x.png"); + } + + .launchButton::before, + #aboutMozilla::before { + transform: scale(.5); + transform-origin: 0 0; + } + + #downloads::before { + content: url("chrome://abouthome/skin/downloads@2x.png"); + } + + #bookmarks::before { + content: url("chrome://abouthome/skin/bookmarks@2x.png"); + } + + #history::before { + content: url("chrome://abouthome/skin/history@2x.png"); + } + + #apps::before { + content: url("chrome://abouthome/skin/apps@2x.png"); + } + + #addons::before { + content: url("chrome://abouthome/skin/addons@2x.png"); + } + + #sync::before { + content: url("chrome://abouthome/skin/sync@2x.png"); + } + + #settings::before { + content: url("chrome://abouthome/skin/settings@2x.png"); + } + + #restorePreviousSession::before { + content: url("chrome://abouthome/skin/restore@2x.png"); + } + + #aboutMozilla::before { + content: url("chrome://browser/content/abouthome/mozilla@2x.png"); + } +} diff --git a/src/chrome/abouthome/addons.png 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 Binary files differ. diff --git a/src/chrome/abouthome/apps.png 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 Binary files differ. diff --git a/src/chrome/abouthome/bookmarks.png 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 Binary files differ. diff --git a/src/chrome/abouthome/downloads.png 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 Binary files differ. diff --git a/src/chrome/abouthome/history.png 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 Binary files differ. diff --git a/src/chrome/abouthome/restore.png 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 Binary files differ. diff --git a/src/chrome/abouthome/settings.png 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 Binary files differ. diff --git a/src/chrome/abouthome/sync.png 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 Binary files differ.