defaultViewer.html 825 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <style>
  2. .babylonjs-canvas {
  3. flex: 1;
  4. width: 100%;
  5. height: 100%;
  6. touch-action: none;
  7. }
  8. nav-bar {
  9. position: absolute;
  10. height: 160px;
  11. width: 100%;
  12. bottom: 0;
  13. opacity: 0.3;
  14. background-color: black;
  15. color: white;
  16. transition: 1s;
  17. align-items: center;
  18. justify-content: center;
  19. display: flex;
  20. flex-direction: column;
  21. }
  22. /* Big screens have room for the entire navbar */
  23. @media screen and (min-width: 768px) {
  24. nav-bar {
  25. flex-direction: row;
  26. justify-content: space-between;
  27. height: 80px;
  28. }
  29. }
  30. </style>
  31. <canvas class="babylonjs-canvas" id="{{canvasId}}">
  32. </canvas>
  33. <nav-bar></nav-bar>