navbar.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <style>
  2. nav-bar {
  3. position: absolute;
  4. height: 160px;
  5. width: 100%;
  6. bottom: 0;
  7. background-color: rgba(0, 0, 0, 0.3);
  8. color: white;
  9. transition: 1s;
  10. align-items: flex-start;
  11. justify-content: space-around;
  12. display: flex;
  13. flex-direction: column;
  14. }
  15. /* Big screens have room for the entire navbar */
  16. @media screen and (min-width: 768px) {
  17. nav-bar {
  18. align-items: center;
  19. flex-direction: row;
  20. justify-content: space-between;
  21. height: 80px;
  22. }
  23. }
  24. div.flex-container {
  25. display: flex;
  26. width: 100%;
  27. }
  28. div.thumbnail {
  29. position: relative;
  30. overflow: hidden;
  31. display: block;
  32. width: 40px;
  33. height: 40px;
  34. background-size: cover;
  35. background-position: center;
  36. border-radius: 20px;
  37. margin: 0 10px;
  38. }
  39. div.title-container {
  40. flex-direction: column;
  41. display: flex;
  42. justify-content: space-between;
  43. }
  44. span.model-title {
  45. font-size: 125%;
  46. }
  47. span.model-subtitle {
  48. font-size: 90%;
  49. }
  50. div.button-container,
  51. div.animation-container {
  52. align-items: center;
  53. justify-content: flex-end;
  54. }
  55. div.button {
  56. cursor: pointer;
  57. height: 30px;
  58. margin: 0 10px;
  59. }
  60. div.button img {
  61. height: 100%;
  62. }
  63. </style>
  64. {{#if disableOnFullscreen}}
  65. <style>
  66. viewer:fullscreen nav-bar {
  67. display: none;
  68. }
  69. viewer:-moz-full-screen nav-bar {
  70. display: none;
  71. }
  72. viewer:-webkit-full-screen nav-bar {
  73. display: none;
  74. }
  75. </style>
  76. {{/if}}
  77. <div class="flex-container" id="model-metadata">
  78. <!-- holding the description -->
  79. <div class="thumbnail">
  80. <!-- holding the thumbnail
  81. <img src="{{thumbnail}}" alt="{{title}}">-->
  82. </div>
  83. <div class="title-container">
  84. <span class="model-title">{{#if title}}{{title}}{{/if}}</span>
  85. <span class="model-subtitle"> {{#if subtitle}}{{subtitle}} {{/if}}</span>
  86. </div>
  87. </div>
  88. {{#if animations}} {{#if hideAnimations}}{{else}}
  89. <div class="animation-container flex-container">
  90. <select id="animation-selector" name="animations">
  91. {{#each animations}}
  92. <option value="{{this}}">{{this}}</option>> {{/each}}
  93. </select>
  94. </div>
  95. {{/if}} {{/if}}
  96. <div class="button-container flex-container">
  97. <!-- holding the buttons -->
  98. {{#eachInMap buttons}}
  99. <div id="{{id}}" class="button">
  100. {{#if text}}
  101. <span>{{text}}</span>> {{/if}} {{#if image}}
  102. <img src="{{image}}" alt="{{altText}}"> {{/if}}
  103. </div>
  104. {{/eachInMap}}
  105. </div>