threejs-tutorials.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /* Licensed under a BSD license. See ../license.html for license */
  2. html {
  3. box-sizing: border-box;
  4. }
  5. *, *:before, *:after {
  6. box-sizing: inherit;
  7. user-select: none;
  8. }
  9. body {
  10. background-color: #aaa;
  11. font-family: Sans-Serif;
  12. }
  13. #uiContainer {
  14. position: absolute;
  15. top: 10px;
  16. right: 10px;
  17. z-index: 3;
  18. font-family: monospace;
  19. pointer-events: none;
  20. text-shadow:
  21. -1px -1px 0 #FFF,
  22. 1px -1px 0 #FFF,
  23. -1px 1px 0 #FFF,
  24. 1px 1px 0 #FFF;
  25. }
  26. #ui {
  27. opacity: 0.8;
  28. }
  29. #ui>div {
  30. pointer-events: none;
  31. }
  32. #ui input, #ui select, #ui option, #ui canvas {
  33. pointer-events: auto;
  34. }
  35. .gman-slider-label, .gman-widget-label, .gman-checkbox-label {
  36. font-size: small;
  37. min-width: 10em;
  38. text-align: right;
  39. }
  40. .gman-checkbox-label {
  41. pointer-events: auto;
  42. }
  43. .gman-widget-value {
  44. float: right;
  45. font-size: small;
  46. order: 1;
  47. min-width: 3em;
  48. }
  49. .gman-slider-upper {
  50. height: 1.5em;
  51. }
  52. .gman-slider-outer, .gman-widget-outer {
  53. float: right;
  54. display: flex;
  55. align-items: center;
  56. height: 1.7em;
  57. }
  58. .gman-widget-slider, .gman-widget-checkbox, .gman-widget-select {
  59. opacity: 0.5;
  60. font-size: large;
  61. margin-left: .3em;
  62. margin-right: .3em;
  63. }
  64. .gman-widget-select {
  65. font-size: small;
  66. }
  67. .gman-widget-slider {
  68. min-width: 120px;
  69. }
  70. /* styles to apply if in an iframe */
  71. html.iframe {
  72. height: 100%;
  73. }
  74. body.iframe {
  75. width: 100%;
  76. height: 100%;
  77. margin: 0;
  78. overflow: hidden;
  79. }
  80. .iframe>.description {
  81. display: none;
  82. }
  83. .iframe .divcavnas {
  84. width: 100%;
  85. height: 100%;
  86. }
  87. .iframe>#example {
  88. width: 100%;
  89. height: 100%;
  90. }
  91. #ui #rotation>canvas {
  92. background-color: rgba(255, 255, 255, 0.6);
  93. }
  94. #ui {
  95. width: 200px;
  96. }
  97. .console {
  98. font-family: monospace;
  99. max-height: 50%;
  100. position: fixed;
  101. bottom: 0;
  102. left: 0;
  103. width: 100%;
  104. overflow: auto;
  105. background: #DDD;
  106. }
  107. .console>div {
  108. white-space: pre-wrap;
  109. border-top: 1px solid black;
  110. padding-left: 0.2em;
  111. padding-right: 0.2em;
  112. }
  113. .console>.error {
  114. background: red;
  115. color: white;
  116. }
  117. .contextlost {
  118. display: flex;
  119. justify-content: center;
  120. align-items: center;
  121. width: 100%;
  122. height: 100%;
  123. position: absolute;
  124. left: 0;
  125. top: 0;
  126. background-color: rgba(0, 0, 0, 0.8);
  127. color: white;
  128. z-index: 10000;
  129. }
  130. .contextlost>div {
  131. padding: 1em;
  132. border-radius: 0.5em;
  133. background: red;
  134. color: white;
  135. }
  136. @media (max-width: 390px) {
  137. pre {
  138. font-size: xx-small !important;
  139. max-width: 300px !important;
  140. }
  141. canvas {
  142. width: 100%;
  143. }
  144. .iframe canvas {
  145. width: 100%;
  146. height: 100%;
  147. border: none;
  148. }
  149. #uiContainer {
  150. top: 120px;
  151. }
  152. .iframe #uiContainer {
  153. top: 10px;
  154. }
  155. }