Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Activity Stream - Use pseudo-element for background image #778

Merged
merged 2 commits into from
Sep 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions css/leptonChromeESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions css/leptonContent.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions css/leptonContentESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions src/contents/_activity_stream.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,20 +218,23 @@
}
}

/** Activity Stream - Hide Firefox's logo ***********************************/
/** Activity Stream - Custom background image *******************************/
@include Option("userContent.newTab.background_image") {
body {
body::before {
content: '';
position: fixed;
width: 100%;
height: 100%;

// https://best-wallpaper.net/Forest-trees-sunset-art-picture_wallpapers.html
background-image: var(--uc-newTab-wallpaper, url("../icons/horizon-sunrise.svg"));
background-size: cover; /* or auto auto */
background-repeat: no-repeat;
background-position: right top;
background-attachment: fixed;
}

/** Use night sky version in dark mode ************************************/
@include Dark {
body {
/** Use night sky version in dark mode **********************************/
@include Dark {
background-image: var(--uc-newTab-wallpaper, url("../icons/horizon-night.svg"));
}
}
Expand Down