question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have tried out the plugin in Ionic 3.0.1 and is great! A much needed one!

Just one thing. It works great in a one page app . But if I used it in a separate page of a ‘multipage app’ it does show a white background.

This is the css trick used globally for the one page app to avoid the white background:

html, body, ion-app, ion-content, ion-page, .nav-decor {
  background-color: transparent !important;
}

That obviously can’t be used on a multipage app as otherwise every page has a transparent background.

I have tried every possible css combination to make it apply only on the desired page but I didn’t manage.

Do you know how this can be achieved?

The strange part is that while testing the device it can be easily achieved by modifying the css in the console, but then it doesn’t apply… No idea why…

Thank you for your attention! If you need further explanation please ask!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

23reactions
NicolasBehracommented, Aug 25, 2017

Like said @SVANNER, it works like a charm, thanks a lot, So to make it more comfortable, i did those steps:

1. variables.scss (at the end)

$background-color: transparent;

2. app.component.scss

ion-content:not(.background-color-transparent) {
  background-color: #fff !important;
}

3. in each html page where you need transparent background color

<ion-content class="background-color-transparent"></ion-content>

Now, it’s a clean code. 😃

22reactions
ricrpscommented, Jan 25, 2019

Ionic v4 solution: add this to the page’s scss file:

ion-content { --background: transparent !important; }

Read more comments on GitHub >

github_iconTop Results From Across the Web

White Background Images | Free iPhone & Zoom HD ...
White Background · iPhone, Zoom backgrounds & desktop HD wallpapers. Beautiful vector, photo and PNG textures. Safe for commercial use.
Read more >
10000+ Free White Background & Background Images - Pixabay
14,591 Free images of White Background ... White background and background high resolution images. Find your perfect picture for your project. ... This...
Read more >
900+ White Background Images - Unsplash
Choose from hundreds of free white backgrounds. Download beautiful, curated free backgrounds on Unsplash. ... Download free white background images.
Read more >
Free White Background Photos - Pexels
Download and use 200000+ White Background stock photos for free. ✓ Thousands of new images every day ✓ Completely Free to Use ✓...
Read more >
White background Images - Free Download on Freepik
Find & Download Free Graphic Resources for White Background. 6018000+ Vectors, Stock Photos & PSD files. ✓ Free for commercial use ✓ High...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found