aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
654 stars 201 forks source link

Inspector CSS styles should only apply when the Inspector is open #389

Closed ngokevin closed 7 years ago

ngokevin commented 7 years ago

I am embedding A-Frame scenes into documentation.

  1. I have an embedded scene where body { margin: 0 16px }.
  2. I open the Inspector and close it.
  3. The Inspector CSS styles are still applied (it adds margin: 0 to the body, and font-size: 12px.

Before

screen shot 2016-11-15 at 4 10 52 am

After

No longer centered.

screen shot 2016-11-15 at 4 09 57 am
dmarcos commented 7 years ago

Love those embedded scenes in the docs :)